Bug 10322

Summary: SVG <svg> does not render when changing the display attribute from "none" to "inline"
Product: WebKit Reporter: Eric Lim <elim@mathworks.com>
Component: SVGAssignee: Nobody <webkit-unassigned@lists.webkit.org>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Macintosh   
OS: Mac OS X 10.4   
Attachments:
Description Flags
simple test case
none
First attempt
eric: review-
Expected Result in PNG
none
Comparision between WebKit (9/13/2006) vs IE w/ASV3 none

Description From 2006-08-09 08:03:30 PST
I want to interactively decide which <svg> elements to show or hide.  I use javascripts to change the <svg> display attribute.  This works fine in Firefox on a windows platform.

See attached SVG file.
------- Comment #1 From 2006-08-09 08:05:43 PST -------
Created an attachment (id=9956) [details]
simple test case
------- Comment #2 From 2006-08-31 11:17:12 PST -------
Created an attachment (id=10335) [details]
First attempt

This should fix the bug. I looked at FF on mac and it too could show the svg after
setting display=inline.
Cheers,

Rob.
------- Comment #3 From 2006-09-02 02:38:11 PST -------
(From update of attachment 10335 [details])
r=me
------- Comment #4 From 2006-09-02 02:48:26 PST -------
(From update of attachment 10335 [details])
I don't think this is right.  We need to ask hyatt here.
------- Comment #5 From 2006-09-02 03:32:16 PST -------
After testing against ToT, it seems to work! I think it is due to r16191 (FOUC fixes).
Cheers,

Rob.
------- Comment #6 From 2006-09-07 11:36:31 PST -------
Created an attachment (id=10439) [details]
Expected Result in PNG

This is the expected result.  There are two text strings, "Gain" which lies below the triangle, and "1" which lies inside the triangle.
------- Comment #7 From 2006-09-07 11:38:16 PST -------
Not quite there yet.  The "1" text is not rendered.  See the expect results attachments.  I am not sure if this warrants a new bug report...
------- Comment #8 From 2006-09-12 23:25:17 PST -------
A simpler test case might make this more clear what's wrong here.
------- Comment #9 From 2006-09-13 07:51:52 PST -------
Created an attachment (id=10525) [details]
Comparision between WebKit (9/13/2006) vs IE w/ASV3

Look at the attached image.  Notice that the text "1" is missing.  I believe this is a new issue where "clip-path" attribute are not obeyed for <text> elements.  

I believe this bug fixed and I will create a new bug for the <text> clip-path issue. 
------- Comment #10 From 2006-09-13 10:59:21 PST -------
(In reply to comment #9)
> I believe this bug fixed and I will create a new bug for the <text> clip-path
> issue. 

Eric Lim, please change the resolution of the bug to "FIXED" if this issue is fixed.  Thanks!