Files
servo/components
Oriol Brufau 16d2e030eb layout: Clamp sticky positioning offset bounds by zero (#39443)
Sticky positioning tries to keep an element visible within the nearest
scrollport. However, the element can't be offset to go beyond its
containing block. We implement this as offset bounds.

The problem was that, if the element would already be overflowing its
containing block before applying the sticky positioning, then we were
forcing it to move inside the containing block. That was wrong, and is
solved by flooring or ceiling the offset bounds by zero.

Testing: Adding new tests

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-09-23 07:22:10 +00:00
..
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-03-13 10:28:11 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00
2025-09-20 03:09:37 +00:00