Bug 142873

Summary: Switching the src of an iframe from an SVG with intrinsic size to an SVG with no intrinsic leaves dirt if the sizes of the images are different
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, simon.fraser, webkit-bug-importer, zimmermann
Priority: P2 Keywords: BrowserCompat, InRadar, LayerBasedSVGEngine
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case none

Description Said Abou-Hallawa 2015-03-19 12:52:02 PDT
Created attachment 249050 [details]
test case

Open the attached test case.
Click on the button 'Red' and then click on the button 'Lime'.

Result: The area of the lime rectangle is only repainted and since the lime rectangle is smaller than the red rectangle, the bottom of the red rectangle is not cleared.
Expected: Changing the source of an iframe to an SVG with no intrinsic size should repaint its old rectangle.

Note: The dirt is cleared is the window is refreshed (resized for example).
Comment 1 Radar WebKit Bug Importer 2015-03-19 12:58:19 PDT
<rdar://problem/20228302>
Comment 2 Said Abou-Hallawa 2015-03-20 13:20:27 PDT
The bug is not reproducible if the css "float" property is set to "none".
Comment 3 Ahmad Saleem 2023-09-19 04:01:51 PDT
This bug still exist in WebKit ToT (268117@main) while Chrome Canary 119 and Firefox Nightly 119 do not exhibit this issue.