保存视觉审核与文档流迁移进度
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path $PSScriptRoot -Parent
|
||||
$page = [System.IO.File]::ReadAllText((Join-Path $root 'pages/family/f01-family-feed.vue'), [System.Text.Encoding]::UTF8)
|
||||
|
||||
foreach ($expected in @('box-sizing: border-box','pointer-events: none')) {
|
||||
if (-not $page.Contains($expected)) { throw "F01 document-flow contract missing: $expected" }
|
||||
}
|
||||
foreach ($selector in @('.feed-card__copy','.feed-state-card > view')) {
|
||||
$escaped = [regex]::Escape($selector)
|
||||
if ($page -match "(?s)$escaped\s*\{[^}]*position\s*:\s*(absolute|fixed|sticky)\s*;") {
|
||||
throw "F01 normal content selector uses positioning: $selector"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Output 'F01-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user