Commit Graph

5 Commits

Author SHA1 Message Date
Aliaksandr Kalenik
0bec9a1e5d LibWeb: Add dumpPaintableTree() to Internals API
Expose the paintable tree dump through the internals object, analogous
to the existing dumpLayoutTree(). This is useful for testing and
debugging painting behavior.
2026-02-15 17:47:30 +01:00
Aliaksandr Kalenik
5be98aaa07 LibWeb: Add internals.dumpLayoutTree(node) API
This new testing API dumps the layout subtree rooted at a given DOM
node. It will be useful for testing partial layout tree rebuilds, where
we need to verify the layout tree structure for specific subtrees rather
than the entire document.
2026-02-09 21:05:45 +01:00
Aliaksandr Kalenik
730b28f4dc LibWeb: Add tests for stacking context invalidation
This test verifies that stacking contexts are correctly created and
removed when CSS properties that affect stacking context are changed:
- opacity: transitioning to/from 1
- transform: transitioning to/from none
- filter: transitioning to/from none
- isolation: transitioning to/from isolate

It also verifies that changes within the "creating" range (e.g., opacity
0.5 -> 0.3, or transform translateX(10px) -> translateX(20px)) correctly
preserve the stacking context.
2026-01-28 18:05:41 +01:00
Andreas Kling
1402c143a9 LibWeb: Add Internals.getShadowRoot(element)
This lets you access closed shadow roots from JavaScript, even though
they're not normally accessible to JavaScript. This can be used to poke
into UA shadow roots in tests.
2025-08-07 22:15:36 +02:00
Tim Ledbetter
a44b18236c LibWeb: Add an Internals.headless attribute
This returns true if the browser is running in headless mode.
2024-12-10 10:31:47 -08:00