ladybird/Tests/LibWeb/Text/expected/IntersectionObserver
Andreas Kling bf15a35ae2 LibWeb: Fix precision loss in CSSPixelFraction::to_float/to_double
CSSPixelFraction::to_float() and to_double() were converting to
CSSPixels (6-bit fixed-point) before converting to float/double,
which truncated the result to 1/64 precision. For example, 500/2500
(= 0.2) became 12/64 (= 0.1875).

Fix by dividing the numerator and denominator as floats/doubles
directly, which is what every other browser engine does when
converting layout units to floating-point ratios.

This was an oversight in the original CSSPixelFraction implementation
(commit 8cd1f65507). The class was designed for lossless comparison
and multiply-then-divide operations (which stay in CSSPixels land),
and the to_float/to_double methods were convenience additions that
took the easy path through CSSPixels conversion without considering
the precision loss.
2026-03-22 14:09:22 -05:00
..
box-without-layout-node-should-not-intersect.txt LibWeb: Ignore boxes without layout node in intersection observer steps 2025-04-14 17:01:53 +02:00
explicit-root-descendant-should-intersect.txt Tests: Add IntersectionObserver tests for explicit element root 2026-03-22 14:09:22 -05:00
explicit-root-non-descendant-should-not-intersect.txt LibWeb: Fix IntersectionObserver skip condition for explicit roots 2026-03-22 14:09:22 -05:00
img-lazy-loading-not-blocked-by-img-outside-viewport.txt
implicit-root-after-originating-iframe-is-removed-from-dom.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
implicit-root-clips-at-overflow-clip-container.txt LibWeb: Clip against scroll containers in IntersectionObserver 2026-03-22 14:09:22 -05:00
implicit-root-clips-at-scroll-container.txt LibWeb: Clip against scroll containers in IntersectionObserver 2026-03-22 14:09:22 -05:00
implicit-root-target-visible-in-scroll-container.txt Tests: Add IntersectionObserver tests for scroll container clipping 2026-03-22 14:09:22 -05:00
observe-box-inside-container-with-scrollable-overflow.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
scroll-margin-expands-scrollport.txt LibWeb: Fix precision loss in CSSPixelFraction::to_float/to_double 2026-03-22 14:09:22 -05:00
unobserve-element-without-matching-observe.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00