Summary: | REGRESSION(r260276): Overflow scrolling layers misplaced inside SVG foreign object | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Muhammet Olcay <olcaymhmmet> | ||||||||||
Component: | SVG | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | ap, cdumez, changseok, dino, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, kangil.han, kondapallykalyan, pdr, sabouhallawa, schenney, sergio, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh, zalan, zimmermann | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | Safari 12 | ||||||||||||
Hardware: | iPhone / iPad | ||||||||||||
OS: | iOS 13 | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=23113 | ||||||||||||
Attachments: |
|
Description
Muhammet Olcay
2020-06-30 06:03:32 PDT
It looks like the WKWebView rendering is wrong. Can you reproduce this in Safari, and share the complete test case please? Created attachment 403354 [details]
Example Html
Created attachment 403360 [details] safari from simulator iphone 11 Hi Alexey, I just added [https://bugs.webkit.org/attachment.cgi?id=403354] example html file for test case Open that html file on mobile safari or wkwebview and you will face that problem instantly I get a different yet result from Safari on iOS 14 beta on iPhone 11 Pro. And even though Mac Safari looks good, Mac WebKit2 MiniBrowser does not. In MiniBrowser, I see that the textarea is absolutely positioned, but the text moves as I resize the window. My guess would be different viewport handling between WKWebView and UIWebView, but CC'ing some experts. Created attachment 404042 [details]
Patch
Comment on attachment 404042 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404042&action=review > Source/WebCore/dom/Document.h:1275 > + bool mayHaveRenderedSVGForeignObjects() const { return m_mayHaveRenderedSVGForeignObjects; } > + void setMayHaveRenderedSVGForeignObjects() { m_mayHaveRenderedSVGForeignObjects = true; } It's a pity though that we set this bit on the Document and the only client is the RenderLayer (while we always have a top level layer). Committed r264269: <https://trac.webkit.org/changeset/264269> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404042 [details]. |