feat: extract CSS contain from browser in Playwright adapter

- Add contain: cs.contain to browser-side style extraction
- Parse contain string into bitfield matching CDP extractor schema
- Add inline-size to CDP styles.ts contain parser for consistency
This commit is contained in:
John Dvorak
2026-05-21 14:05:55 -07:00
parent afb985cdf3
commit d23d2a431e
2 changed files with 18 additions and 1 deletions
+1
View File
@@ -221,6 +221,7 @@ export async function extractStyles(
if (part === 'style') containFlags |= 8
if (part === 'strict') containFlags |= 15
if (part === 'content') containFlags |= 7
if (part === 'inline-size') containFlags |= 16
}
}