修正A01固定高度合同匹配
This commit is contained in:
@@ -88,7 +88,9 @@ foreach ($rule in @($pageRule, $paperRule, $contentRule)) {
|
||||
Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'display: flex;' -Message 'A01 root must use flex flow.'
|
||||
Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'flex-direction: column;' -Message 'A01 root must stack header and paper.'
|
||||
Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'min-height: var(--app-viewport-height);' -Message 'A01 root must fill without locking content height.'
|
||||
Assert-NotContains -Content $pageRule.Groups['Body'].Value -Unexpected 'height: var(--app-viewport-height);' -Message 'A01 root must not lock content to the viewport.'
|
||||
if ($pageRule.Groups['Body'].Value -match '(?m)^\s*height:\s*var\(--app-viewport-height\);') {
|
||||
throw 'A01 root must not lock content to the viewport.'
|
||||
}
|
||||
Assert-Contains -Content $paperRule.Groups['Body'].Value -Expected 'flex: 1;' -Message 'A01 paper must receive remaining viewport space.'
|
||||
Assert-Contains -Content $contentRule.Groups['Body'].Value -Expected 'justify-content: space-between;' -Message 'A01 must distribute spare height in normal flow.'
|
||||
Assert-NotContains -Content $contentRule.Groups['Body'].Value -Unexpected 'grid-area:' -Message 'A01 interactive content must not overlap page artwork.'
|
||||
|
||||
Reference in New Issue
Block a user