| Summary: | [CSS contain] Fix handling of layout/paint containment with internal ruby boxes | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Rob Buis <rbuis> | ||||||||||||
| Component: | CSS | Assignee: | Rob Buis <rbuis> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | changseok, clopez, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, ntim, pdr, simon.fraser, webkit-bug-importer, youennf, zalan | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | Safari 15 | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| See Also: | https://github.com/web-platform-tests/wpt/pull/35338 | ||||||||||||||
| Bug Depends on: | 240906 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Rob Buis
2022-08-04 04:15:34 PDT
Created attachment 461396 [details]
Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Comment on attachment 461396 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461396&action=review > LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-layout-017.html:7 > +<meta name="fuzzy" content="maxDifference=0-3; totalPixels=0-6738" /> Why do we need so many fuzzy pixels? Comment on attachment 461396 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461396&action=review >> LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-layout-017.html:7 >> +<meta name="fuzzy" content="maxDifference=0-3; totalPixels=0-6738" /> > > Why do we need so many fuzzy pixels? Quite sure we do not need that many, I had a 1 pixel difference locally. However also locally no fuzzy value for me fixed the test. So now I am wondering what the bots will say, let's see! Created attachment 461398 [details]
Patch
Comment on attachment 461398 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461398&action=review > Source/WebCore/rendering/RenderLayer.cpp:584 > + return !renderer().style().hasAutoUsedZIndex() || renderer().shouldApplyLayoutOrPaintContainment({ Containment::Layout, Containment::Paint }) | isRenderViewLayer(); I don't think you wanted to do the bitwise operator | || ? Created attachment 461492 [details]
Patch
Comment on attachment 461398 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461398&action=review >> Source/WebCore/rendering/RenderLayer.cpp:584 >> + return !renderer().style().hasAutoUsedZIndex() || renderer().shouldApplyLayoutOrPaintContainment({ Containment::Layout, Containment::Paint }) | isRenderViewLayer(); > > I don't think you wanted to do the bitwise operator | > > || ? Well spotted, thnx! Fixed. No reviewer information in commit message, blocking PR #None Created attachment 461543 [details]
Patch
Created attachment 461544 [details]
Patch
Committed 253354@main (6d0e1e4280d9): <https://commits.webkit.org/253354@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 461544 [details]. |