完成50%
This commit is contained in:
@@ -31,6 +31,10 @@ Assert-Match $header '(?s)\.header-icon-button\s*\{[^}]*display:\s*grid;[^}]*pla
|
||||
if ($header -match '(?s)\.header-icon-button\s*\{[^}]*position\s*:') {
|
||||
throw 'PageHeader icon button must not be a positioning context'
|
||||
}
|
||||
Assert-Match $header '(?s)\.header-brand\s*\{[^}]*display:\s*grid;[^}]*min-height:\s*88rpx;[^}]*place-items:\s*center;' 'PageHeader decorative brand must preserve the header grid without becoming interactive'
|
||||
if ($header -match '(?s)\.header-brand\s*\{[^}]*position\s*:') {
|
||||
throw 'PageHeader decorative brand must not be a positioning context'
|
||||
}
|
||||
Assert-Match $header '(?s)\.header-logo,\s*\.header-notice-icon,\s*\.notice-dot\s*\{[^}]*grid-area:\s*1 / 1;' 'PageHeader icon and notice dot must share one grid cell'
|
||||
if ($header -match '(?s)\.notice-dot\s*\{[^}]*position\s*:') {
|
||||
throw 'PageHeader notice dot must use grid alignment instead of positioning'
|
||||
|
||||
Reference in New Issue
Block a user