diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-05-09 12:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-09 10:36:53 +0000 |
commit | 53be79a5b5cc9be1b1cc2b6cae75383324e286f8 (patch) | |
tree | b322e3dc811bfe3024265210add642bede20b7c9 /tests/wpt/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.js | |
parent | c6f61e6b6e9fca33da7655b1a8aa1ebce584f40d (diff) | |
download | servo-53be79a5b5cc9be1b1cc2b6cae75383324e286f8.tar.gz servo-53be79a5b5cc9be1b1cc2b6cae75383324e286f8.zip |
layout: Resolve canvas background properties during painting (#36917)
Instead of resolving the canvas background properties (essentially
keeping a possible reference to the `<body>`'s style) during fragment
tree construction, wait until painting to possibly find the style on an
appropriate `<body>` fragment. This is possible now because `Fragment`
keeps a list of flags with relevant information about the root and
`<body>` elements.
A benefit of this approach is that styles aren't cached in the fragment
tree, which would be problematic for incremental layout. In addition,
the old code was making an effort to transform the `<body>`'s background
by the root element's transform. Only Safari does this and there was
a resolution the WG that this should not happen in
https://github.com/w3c/csswg-drafts/issues/6683.
Testing:
- `/css/css-transforms/transform-translate-background-001.html`
- `/css/css-transforms/transform-translate-background-002.html`
- `/css/CSS2/floats/float-root.html`
Fixes: #30475.
Closes: #30569.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'tests/wpt/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.js')
0 files changed, 0 insertions, 0 deletions