| Summary: | CSS - overflow: clip is not working on SVG elements | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> | ||||||||
| Component: | CSS | Assignee: | Rob Buis <rbuis> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cathiechen, changseok, clopez, dino, esprehn+autocc, ews-watchlist, fmalita, glenn, gyuyoung.kim, kondapallykalyan, pdr, rbuis, sabouhallawa, schenney, sergio, simon.fraser, webkit-bug-importer, youennf, zimmermann | ||||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, SVGHitList | ||||||||
| Version: | Safari Technology Preview | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| URL: | https://wpt.fyi/results/svg/render/reftests/overflow-clip.html?label=experimental&label=master&aligned | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Karl Dubost
2022-09-02 01:52:27 PDT
Created attachment 462177 [details]
Patch
Comment on attachment 462177 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=462177&action=review > Source/WebCore/rendering/svg/LegacyRenderSVGRoot.cpp:216 > + return effectiveOverflowX() == Overflow::Hidden || style().overflowX() == Overflow::Auto Would be nice to have a isNonVisibleOverflow(Overflow) helper we can use everywhere. Created attachment 462199 [details]
Patch
Comment on attachment 462199 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=462199&action=review > Source/WebCore/rendering/style/RenderStyle.h:2553 > +inline bool isNonVisibleOverflow(const Overflow& overflow) Overflow is a uint8_t enum, so it's more efficient to pass by value. Created attachment 462221 [details]
Patch
Committed 254295@main (88bf94fa06f3): <https://commits.webkit.org/254295@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 462221 [details]. |