修改完成
This commit is contained in:
@@ -28,6 +28,17 @@ foreach ($forbidden in @('<ModulePage page-id="f10"', 'import ModulePage from'))
|
||||
if ($page.Contains($forbidden)) { throw "F10 retains forbidden dependency: $forbidden" }
|
||||
}
|
||||
|
||||
if ($page -match '(?m)^\s*position\s*:\s*relative\s*;') {
|
||||
throw 'F10 ordinary page content must not use position: relative'
|
||||
}
|
||||
|
||||
foreach ($selector in @('.video-status-lead text', '.video-status-card__body')) {
|
||||
$escapedSelector = [regex]::Escape($selector)
|
||||
if ($page -notmatch "(?s)$escapedSelector\s*\{[^}]*z-index\s*:\s*1\s*;") {
|
||||
throw "F10 grid content must render above its decorative skin: $selector"
|
||||
}
|
||||
}
|
||||
|
||||
if ($catalog -match '(?m)^\s*f10\s*:') {
|
||||
throw 'F10 obsolete page-catalog owner must be removed'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user