修改完成
This commit is contained in:
@@ -29,4 +29,17 @@ if ($source.Contains('application-status-card.png')) {
|
||||
throw 'N01 must not reuse the genealogy application card'
|
||||
}
|
||||
|
||||
if ($source -match '<image\s+(?:[^>]*\s)?class="notice-(?:card|state-card)__skin"') {
|
||||
throw 'N01 decorative frames must be container backgrounds instead of positioned image layers'
|
||||
}
|
||||
if ($source -match 'position\s*:') {
|
||||
throw 'N01 must keep ordinary content in document flow'
|
||||
}
|
||||
foreach ($background in @(
|
||||
'background: url("/static/assets/modules/notification/transparent/n01-notice-card.png") center / 100% 100% no-repeat',
|
||||
'background: url("/static/assets/modules/notification/transparent/n01-notice-card.png") top center / 100% 220rpx no-repeat'
|
||||
)) {
|
||||
if (-not $source.Contains($background)) { throw "N01 missing document-flow background: $background" }
|
||||
}
|
||||
|
||||
Write-Output 'N01-MODULE-BASELINE-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user