feat: solver consumes CSS contain:paint for clippedBy diagnostics

- Add Contain=5 to geometry world ClipKind enum (avoids collision with
  topology engine's CONTAIN=3 vs Mask=3)
- Fix CDP isClippingElement() to detect contain:paint (style.contain)
- CDP topology builder sets clipKind=5 for contain:paint, 1 for overflow
- Enrich clippedByPredicate with clipKind metric:
  1=contain:paint, 2=overflow (hidden/scroll/auto)
- Reads world.clipping.clipKind of the reference's clip node
This commit is contained in:
John Dvorak
2026-05-21 13:52:28 -07:00
parent a75c3be9e0
commit c4a3d304ef
3 changed files with 18 additions and 2 deletions
+1
View File
@@ -330,6 +330,7 @@ export const enum ClipKind {
ClipPath = 2,
Mask = 3,
SvgClip = 4,
Contain = 5,
}
export interface Clipping {