Bug 106923

Summary: With of inline SVG element is not update after width attribute is updated
Product: WebKit Reporter: fearsome.lucidity
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: pdr
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

fearsome.lucidity
Reported 2013-01-15 10:34:41 PST
Create an SVG inline element with large width and height attributes inside a div element with a width and height smaller, thus generating vertical and horizontal scrollbars. Use some javascript to update the SVG width and hight to be smaller then the width and height of the containing div. Notice the vertical scrollbar disappears but the horizontal scrollbar does not. Open developer tools and verify the SVG attributes have changed. Observe that the computed height is the new updated height, but the computed width is the original width. Tested in Safari 6.0.2 (8536.26.17) Chrome 24.0.1312.52. Both fail. Firefox works correctly.
Attachments
fearsome.lucidity
Comment 1 2013-01-15 11:05:03 PST
Created this JsFiddle to repo: http://jsfiddle.net/Qsg4j/
Philip Rogers
Comment 2 2013-01-15 20:12:42 PST
Marking as a duplicate of https://bugs.webkit.org/show_bug.cgi?id=103304. *** This bug has been marked as a duplicate of bug 103304 ***
Note You need to log in before you can comment on or make changes to this bug.