Bug 243363 - Prevent background propagation on <html> with any containment
Summary: Prevent background propagation on <html> with any containment
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 14
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-29 19:43 PDT by Tim Nguyen (:ntim)
Modified: 2022-08-02 07:10 PDT (History)
13 users (show)

See Also:


Attachments
Patch (3.16 KB, patch)
2022-08-01 16:51 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (3.13 KB, patch)
2022-08-01 21:32 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2022-07-29 19:43:27 PDT
WPTs:

css/css-contain/contain-html-bg-001.html
css/css-contain/contain-html-bg-002.html
css/css-contain/contain-html-bg-003.html

The results make it pretty clear what this is about:

https://wpt.fyi/analyzer?screenshot=sha1%3A93c3c4c555b8fa38035d23b475072ba6c920aaf7&screenshot=sha1%3A422ed5a9b8fce6673dbb700360cefb1ba06af8fa

If <html> has a fixed size and contain: layout, the background shouldn't spread above that size.
Comment 1 Radar WebKit Bug Importer 2022-08-01 11:56:04 PDT
<rdar://problem/97927457>
Comment 2 zalan 2022-08-01 16:51:51 PDT
Created attachment 461344 [details]
Patch
Comment 3 zalan 2022-08-01 21:32:37 PDT
Created attachment 461348 [details]
Patch
Comment 4 EWS 2022-08-02 07:10:42 PDT
Committed 253031@main (320ad146e7fa): <https://commits.webkit.org/253031@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 461348 [details].