Closed Bug 305459 Opened 19 years ago Closed 17 years ago

Implement SVG element 'switch' and 'requiredFeatures' property (W3C SVG 1.1 Test Suite: struct-image-02-b render incorrectly)

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: frenchfrog, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050817 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050817 Firefox/1.0+

The svg output differ from the png reference image. (Full test suite at
http://www.w3.org/Graphics/SVG/Test/)

Reproducible: Always

Steps to Reproduce:
1.Open
http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-struct-image-02-b.html
2.If the svg don't show up (because of the use of embed) open the svg in a new
tab (http://www.w3.org/Graphics/SVG/Test/20030813/svggen/struct-image-02-b.svg)

Actual Results:  
The svg and the refenrece png differ (even in the W3C SVG 1.0 Test suite the
image differ,
http://www.w3.org/Graphics/SVG/Test/20011026/structure-image-BE-06-ps.html).
Version: Trunk → 1.8 Branch
Attached image minimal test case
I CONFIRM this bug.

actually, bug is caused by probably -unimplemented- attr. 'requiredFeatures' in
conjunction with the 'switch' element:

<switch>

<rect fill="green"  x="240" y="150" width="240" height="150"
requiredFeatures="org.w3c.svg.static"/>

<rect fill="yellow"  x="240" y="150" width="240" height="150"
requiredFeatures="org.w3c.svg.static" systemLanguage=""/>

</switch>
Implementation of the 'switch' and 'requiredFeatures' feature
should be relatively easy by my opinion:

http://www.w3.org/TR/SVG11/feature.html
http://www.w3.org/TR/SVG11/struct.html#SwitchElement
http://www.w3.org/TR/SVG11/struct.html#SystemLanguageAttribute
A SUMMARY should be:

Implement SVG element 'switch' and 'requiredFeatures' property
Summary: W3C SVG 1.1 Test Suite: struct-image-02-b render incorrectly → Implement SVG element 'switch' and 'requiredFeatures' property (W3C SVG 1.1 Test Suite: struct-image-02-b render incorrectly)
Ping. This bug should probably get confirmed (Status = NEW). Also, should a blogging flag should put on this? Or, 'switch' and 'requiredFeatures' feature irrelevant?
I think this is not a bug, Firefox is doing the right thing here.  We should mark as WONTFIX or make it dependent upon a whole heap of other bugs.  Let me explain:

The "switch" element is indeed implemented in Firefox 1.5+ and up.  You can see which feature strings Mozilla supports at http://www.codedread.com/svgtest.svg (which uses switch extensively).  All green feature strings are supported.  As you can see, the org.w3c.svg.static string is shown as NOT SUPPORTED currently.

As you can read from http://www.w3.org/TR/SVG11/feature.html, the org.w3c.svg.static feature string includes all DOM interfaces and many SVG features, including Filters (which Firefox does not currently support).  Thus, Firefox is correct in not supporting this string yet and therefore, not displaying any of the elements inside the switch in the test case.
OS: Windows XP → All
Hardware: PC → All
Version: 1.8 Branch → Trunk
Everything Jeff says is correct.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: