修改完成
This commit is contained in:
@@ -4,18 +4,16 @@ $page = [System.IO.File]::ReadAllText((Join-Path $root 'pages/records/r01-people
|
||||
|
||||
foreach ($expected in @(
|
||||
'grid-template-columns: minmax(0, 1fr) 126rpx',
|
||||
'pointer-events: none'
|
||||
'class="people-state-card__copy"',
|
||||
'background: url("/static/assets/modules/records/transparent/r01-search-input-frame.png") center / 100% 100% no-repeat',
|
||||
'background: url("/static/assets/modules/records/transparent/r01-person-name-card.png") center / 100% 100% no-repeat'
|
||||
)) {
|
||||
if (-not $page.Contains($expected)) { throw "R01 document-flow contract missing: $expected" }
|
||||
}
|
||||
|
||||
foreach ($selector in @('.people-search input','.people-search__action','.person-card__copy')) {
|
||||
$escaped = [regex]::Escape($selector)
|
||||
if ($page -match "(?s)$escaped\s*\{[^}]*position\s*:\s*(absolute|fixed|sticky)\s*;") {
|
||||
throw "R01 normal content selector uses positioning: $selector"
|
||||
}
|
||||
if ($page -match '<image\s+(?:[^>]*\s)?class="person-card__skin"|people-search\s*>\s*<image|people-result-empty\s*>\s*<image|people-state-card\s*>\s*<image') {
|
||||
throw 'R01 decorative frames must be container backgrounds instead of positioned image layers'
|
||||
}
|
||||
|
||||
if ($page -notmatch '(?s)\.person-card__copy\s*\{[^}]*position\s*:\s*relative\s*;') { throw 'R01 person-card copy must stay in normal flow above its local skin' }
|
||||
if ($page -match 'position\s*:') { throw 'R01 must not use positioning declarations' }
|
||||
|
||||
Write-Output 'R01-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user