servo/components/layout/display_list
Martin Robinson 57b99d641e
layout: Use the viewport size as the background-attachment: fixed positioning area (#37097)
This fixes the combination of `background-attachment: fixed` and
`no-repeat`. The positioning of the background should be relative to the
viewport, so using an infinite rectangle breaks things like `center`.

I'm not sure what the original motivation of using an infinite rectangle
here
and it doesn't seem to break any tests to stop using it.

Testing: This fixes `/css/CSS2/backgrounds/background-bg-pos-206.xht`.
Fixes #37082.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-05-24 09:45:53 +00:00
..
background.rs layout: Use the viewport size as the background-attachment: fixed positioning area (#37097) 2025-05-24 09:45:53 +00:00
clip.rs layout: Split stacking context and display list construction (#37047) 2025-05-20 13:42:39 +00:00
conversions.rs layout: Support wavy and double for text-decoration-line (#37079) 2025-05-22 17:42:50 +00:00
gradient.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
mod.rs layout: Support wavy and double for text-decoration-line (#37079) 2025-05-22 17:42:50 +00:00
stacking_context.rs layout: Move text decoration propagation to stacking context tree construction (#37069) 2025-05-21 16:38:29 +00:00