<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>6018</bug_id>
          
          <creation_ts>2005-12-08 18:14:24 -0800</creation_ts>
          <short_desc>WebKit+SVG should pass all of Hixie&apos;s test (and adopt them)</short_desc>
          <delta_ts>2022-09-25 14:57:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://hixie.ch/tests/adhoc/svg/svg-plugin-ua.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9938</dependson>
    
    <dependson>9976</dependson>
    
    <dependson>9999</dependson>
    
    <dependson>11005</dependson>
    
    <dependson>11006</dependson>
    
    <dependson>11014</dependson>
    
    <dependson>11015</dependson>
    
    <dependson>11017</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>helder.magalhaes</cc>
    
    <cc>ian</cc>
    
    <cc>ivan.enderlin</cc>
    
    <cc>rwlbuis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25738</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-08 18:14:24 -0800</bug_when>
    <thetext>WebKit+SVG should pass all of Hixie&apos;s test (and adopt them)
http://hixie.ch/tests/adhoc/svg/svg-plugin-ua.html

Looks like we pass many of them already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56345</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-24 06:10:45 -0700</bug_when>
    <thetext>Looking again we seem to fail quite a number of these.  Some of which should be easy to fix.

Failures:
http://hixie.ch/tests/adhoc/svg/cascade/001.xml
http://hixie.ch/tests/adhoc/svg/cascade/002.xml
http://hixie.ch/tests/adhoc/svg/data-types/002.xhtml
http://hixie.ch/tests/adhoc/svg/dynamic/005.xml (opera also fails, firefox passes)
http://hixie.ch/tests/adhoc/svg/error/002.xml
http://hixie.ch/tests/adhoc/svg/error/003.xml
http://hixie.ch/tests/adhoc/svg/error/006.xml
http://hixie.ch/tests/adhoc/svg/error/012.xml
http://hixie.ch/tests/adhoc/svg/error/013.xml
http://hixie.ch/tests/adhoc/svg/error/017.xml
http://hixie.ch/tests/adhoc/svg/links/001.xml (we don&apos;t support link tabbing yet)
http://hixie.ch/tests/adhoc/svg/links/002.xml
http://hixie.ch/tests/adhoc/svg/links/003.xml
(I stopped testing at that point)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103897</commentid>
    <comment_count>2</comment_count>
    <who name="Helder Magalhães">helder.magalhaes</who>
    <bug_when>2008-12-31 05:03:18 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Looking again we seem to fail quite a number of these.
Revisiting this issue with revision 39474, using a nightly [1] on Windows XP SP3...


&gt; Failures:
&gt; http://hixie.ch/tests/adhoc/svg/cascade/001.xml
Now OK.


&gt; http://hixie.ch/tests/adhoc/svg/cascade/002.xml
Now OK.


&gt; http://hixie.ch/tests/adhoc/svg/data-types/002.xhtml
I believe there is an error in the test itself. To force SVG content to resize to the SVG canvas, one needs to set &quot;preserveAspectRatio&quot; property to &quot;none&quot; (the lacuna value is &quot;xMidYMid&quot;). By making the following modification, the test passes (same in Firefox 3.2a):

-  &lt;svg height=&quot;40px&quot; width=&quot;10em&quot; viewBox=&quot;0 0 100 100&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
+  &lt;svg height=&quot;40px&quot; width=&quot;10em&quot; viewBox=&quot;0 0 100 100&quot; preserveAspectRatio=&quot;none&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;


&gt; http://hixie.ch/tests/adhoc/svg/dynamic/005.xml (opera also fails, firefox
&gt; passes)
Now OK.


&gt; http://hixie.ch/tests/adhoc/svg/error/002.xml
Not sure about this one. The test states that:

  I&apos;m assuming, here, that the UA doesn&apos;t support XLink itself
  in an SVG context, but that it merely supports XLink&apos;s attributes in
  an SVG context as defined by SVG, and that therefore the
  xlink:type=&quot;simple&quot; xlink:show=&quot;embed&quot; xlink:actuate=&quot;onLoad&quot;
  attributes are all simply ignored.

Thing is I&apos;m not sure if it should be ignored, at least not according to a recent version of the specification [3]...
Another thing that confuses me in this test is that linking to an external style sheet should be done using the &quot;xml-stylesheet&quot; element...
Finally, the text seems to contradict the test itself. If the external style information was to be ignored, than one should read &quot;This line should be red.&quot; or the test needed to be modified in accordance.
In my personal opinion, I believe this is a &quot;pass&quot;.


&gt; http://hixie.ch/tests/adhoc/svg/error/003.xml
Now OK. I&apos;d add that the default stroke length (1) is also pretty thin to be seen, specially in TFT monitors using anti-aliasing. I&apos;d propose increasing the stroke width to 3 or 5 in order to make the &quot;rectangle with a blue border&quot; more obvious:

- &lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;300&quot; height=&quot;200&quot; stroke=&quot;blue&quot; fill=&quot;url(#test)&quot;/&gt;
+ &lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;300&quot; height=&quot;200&quot; stroke=&quot;blue&quot; stroke-width=&quot;3&quot; fill=&quot;url(#test)&quot;/&gt;

I also find the explanatory text a bit confusing...

  on the next line the given paint server is not valid, therefore it is
  unsupported and XXX raised as last call issue XXX


&gt; http://hixie.ch/tests/adhoc/svg/error/006.xml
Not sure about this one. Nothing is displayed and, FWIW, Firefox 3.2a also displays nothing...

&gt; http://hixie.ch/tests/adhoc/svg/error/012.xml
I believe there&apos;s an error in this test. According to document error processing, nothing is stated regarding partial document rendering: Webkit does display a &quot;highly perceivable indication of error&quot;, although it displays the rendering up to the erroneous XML portion, which is a red rectangle and seems to point towards failure. The broken element as red sounds reasonable though. I&apos;d say this is a &quot;pass&quot; and would suggest the following modification to the test:

- &lt;rect x=&quot;10&quot; y=&quot;10&quot; width=&quot;200&quot; height=&quot;200&quot; fill=&quot;red&quot;/&gt;
+ &lt;rect x=&quot;10&quot; y=&quot;10&quot; width=&quot;200&quot; height=&quot;200&quot; fill=&quot;green&quot;/&gt;


&gt; http://hixie.ch/tests/adhoc/svg/error/013.xml
Partially failing. No &quot;highly perceivable indication of error&quot; is presented, although the document in failure isn&apos;t rendered (as expected).


&gt; http://hixie.ch/tests/adhoc/svg/error/017.xml
Still fails. A circular reference (from element with identifier &quot;d&quot; to &quot;a&quot; which refers &quot;b&quot;, &quot;c&quot; and &quot;d&quot; again) is an error [5].


&gt; http://hixie.ch/tests/adhoc/svg/links/001.xml (we don&apos;t support link tabbing
&gt; yet)
Still fails. No tab support exists, as stated. Opera 10a passes, but only if the iFrame is focused first (there&apos;s no tab navigation between the main and the iFrame document).


&gt; http://hixie.ch/tests/adhoc/svg/links/002.xml
I believe there&apos;s an error in this test. Linking to an external style sheet should be done using the &quot;xml-stylesheet&quot; element... By making the following modification, the test passes (same in Firefox 3.2a):

- &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
-  &lt;style xlink:href=&quot;002.css&quot;/&gt;
+ &lt;?xml-stylesheet type=&quot;text/css&quot; href=&quot;002.css&quot;?&gt;
+ &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
+  &lt;text y=&quot;30&quot; x=&quot;10&quot; fill=&quot;red&quot; font-size=&quot;20&quot;&gt;This line should be green.&lt;/text&gt;


&gt; http://hixie.ch/tests/adhoc/svg/links/003.xml
Not sure about this one. Text states that:

  Spec says that &lt;a&gt; can only link to animation elements,
  otherwise it is invalid; that known attributes with
  unsupported values are treated as if they hadn&apos;t been
  specified when rendering; that if the attribute is not
  specified, the effect is as if an empty value (&quot;&quot;) was
  specified; and that an empty attribute value (xlink:href=&quot;&quot;)
  means that no link traversal occurs upon activation of the &apos;a&apos;
  element. So. Nothing should happen if you click it

But, at least according to SVG 1.2, there&apos;s nothing wrong about it [6]. I&apos;d only mark this as &quot;partially failed&quot; as the target element&apos;s bounding box isn&apos;t centered as expected [7] after activating the link.



Few more test failures or commented tests (ones not listed here and previously are passing!):
 * http://hixie.ch/tests/adhoc/svg/links/pass.txt - probably this one shoudn&apos;t appear in the list...
 * http://hixie.ch/tests/adhoc/svg/markers/001.xml - invalid XML in the text case: apparently due to an &quot;INCOMPLETE&quot; status of the test. ;-)
 * http://hixie.ch/tests/adhoc/svg/mixed/001-demo.xml - apparently failed: missing content (&quot;TEST a&quot; to &quot;TEST d&quot;), although selecting all and pasting into a text editor shows that text is there (which may give a clue on what&apos;s happening). :-)
 * http://hixie.ch/tests/adhoc/svg/mixed/002-demo.xml - same as &quot;mixed/001-demo.xml&quot;.
 * http://hixie.ch/tests/adhoc/svg/perf/007.xml - using the javascript array notation is not SVG conformant and apparently fails in Firefox 3.2a (and probably in ASV and Renesis also) [8]. By making the following modification, the test gains interoperability (with Firefox 3.2a only, ASV and Renesis would need a string as &quot;setTimeout&quot; argument...):

- var svg = document.getElementsByTagNameNS(&apos;http://www.w3.org/2000/svg&apos;, &apos;svg&apos;)[0];
- var t = document.getElementsByTagNameNS(&apos;http://www.w3.org/2000/svg&apos;, &apos;text&apos;)[2];
+ var svg = document.getElementsByTagNameNS(&apos;http://www.w3.org/2000/svg&apos;, &apos;svg&apos;).item(0);
+ var t = document.getElementsByTagNameNS(&apos;http://www.w3.org/2000/svg&apos;, &apos;text&apos;).item(2);

 * http://hixie.ch/tests/adhoc/svg/processing-model/001-demo-support.xml - I&apos;m not quite sure what the result should be...
 * http://hixie.ch/tests/adhoc/svg/processing-model/001-demo.xml - there seems to be an issue with the test: file &quot;001-demo-redirect.xml&quot; doesn&apos;t exist so, currently, a black fill seems to be a &quot;pass&quot;...
 * http://hixie.ch/tests/adhoc/svg/processing-model/002-demo-support.xml - I&apos;m not quite sure what the result should be...
 * http://hixie.ch/tests/adhoc/svg/processing-model/002-demo.xml - same as &quot;processing-model/001-demo.xml&quot;.
 * http://hixie.ch/tests/adhoc/svg/processing-model/003.dtd - same as &quot;links/pass.txt&quot;.
 * http://hixie.ch/tests/adhoc/svg/rendering-model/004.xhtml - no zoom support to perform test...
 * http://hixie.ch/tests/adhoc/svg/text/001.xml - partially failed: font is used in rendering (after local install) but the alignment is not perfect - glyph is positioned slightly above the expected location (Firefox 3.2a passes).
 * http://hixie.ch/tests/adhoc/svg/use/002.xml - there seems to be an issue with the test: file &quot;002-test.xml&quot; is not there so, currently, a the red rectangle seems to be a &quot;pass&quot;...

As stated, all items which are not here are considered OK, so this is quite a good progress! :-)

I&apos;d ask Ian Hixie to review the tests with potential issues and post some follow up whenever possible. Thanks! ;-)

Happy new year,

 Helder Magalhães


[1] http://nightly.webkit.org/
[2] http://www.w3.org/TR/SVGTiny12/coords.html#PreserveAspectRatioAttribute
[3] http://www.w3.org/TR/SVGTiny12/linking.html
[4] http://www.w3.org/TR/SVGTiny12/implnote.html#ErrorProcessing
[5] http://www.w3.org/TR/SVGTiny12/linking.html#circular-iri
[6] http://www.w3.org/TR/SVGTiny12/linking.html#LinksIntoSVG
[7] http://www.w3.org/TR/SVGTiny12/linking.html#FragmentIdentifierTraversal
[8] http://blog.codedread.com/archives/2007/01/19/guide-to-deploying-svg-with-html/#nodelist</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104869</commentid>
    <comment_count>3</comment_count>
    <who name="Helder Magalhães">helder.magalhaes</who>
    <bug_when>2009-01-08 07:04:04 -0800</bug_when>
    <thetext>@Ian Hixie

Just another tip regarding the tests themselves (sorry if this is going a bit off-topic, but as some comments about the tests were made in the previous comment...):

&gt;  * http://hixie.ch/tests/adhoc/svg/text/001.xml - partially failed: font is
&gt; used in rendering (after local install) but the alignment is not perfect -
&gt; glyph is positioned slightly above the expected location (Firefox 3.2a passes).

As apparently most updated (nightly or pre-release) browser versions seem to support CSS Web fonts (at least Firefox, Webkit and Opera [1]), I&apos;d suggest adding CSS Web font information to the test, which seems to be the only one from the suite which requires the Ahem font. Tests directory folder states that &quot;These tests may require the Ahem font.&quot; [2], which would still be true for current state browsers, but it could ease testing a bit. :-)

-  &lt;!-- if you don&apos;t have Ahem, see http://www.hixie.ch/resources/fonts/ --&gt;
+  &lt;!-- if you don&apos;t have a CSS Web font capable browser or Ahem font locally available, see http://www.hixie.ch/resources/fonts/ --&gt;
+ &lt;style type=&quot;text/css&quot;&gt;
+  @font-face {
+   font-family: Ahem;
+   src: url(http://www.hixie.ch/resources/fonts/AHEM____.TTF) format(&quot;ttf&quot;);
+  }
+&lt;/style&gt;

Using my local file system and a downloaded copy of the font in the same directory and changing the font URL to &quot;AHEM____.TTF&quot;, (without the font installed in the system, naturally) Firefox 3.2a pass, Webkit r39474 and Opera 10.0a fail but I believe this has to do with security restrictions. This will likely work for all 3 browsers when both files are available in an HTTP server. :-)

[1] http://lists.w3.org/Archives/Public/www-svg/2009Jan/0019.html
[2] http://hixie.ch/tests/adhoc/svg/text/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113900</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-03-16 11:37:47 -0700</bug_when>
    <thetext>Yeah some of those tests are buggy. Dunno when I&apos;ll get around to fixing them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412244</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-05-30 08:57:24 -0700</bug_when>
    <thetext>I agree with Helder&apos;s analysis of this one (sorry I react so late):

&gt; http://hixie.ch/tests/adhoc/svg/links/002.xml
I believe there&apos;s an error in this test. Linking to an external style sheet should be done using the &quot;xml-stylesheet&quot; element... By making the following modification, the test passes (same in Firefox 3.2a):

- &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
-  &lt;style xlink:href=&quot;002.css&quot;/&gt;
+ &lt;?xml-stylesheet type=&quot;text/css&quot; href=&quot;002.css&quot;?&gt;
+ &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
+  &lt;text y=&quot;30&quot; x=&quot;10&quot; fill=&quot;red&quot; font-size=&quot;20&quot;&gt;This line should be green.&lt;/text&gt;

I simply can&apos;t find anything in SVG or even HTML spec to use style foe external stylesheet linking.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412252</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-30 09:18:54 -0700</bug_when>
    <thetext>Seems we should tell hixie</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415592</commentid>
    <comment_count>7</comment_count>
    <who name="Helder Magalhães">helder.magalhaes</who>
    <bug_when>2011-06-05 03:03:16 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I simply can&apos;t find anything in SVG or even HTML spec to use style foe external stylesheet linking.

Doug Schepers has blogged [1] some time ago about this, and the final conclusion seems to point towards @import rules being the most interoperable (and apparently standard) way of doing it.

[1] http://schepers.cc/css-link-hack-in-svg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901054</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-25 14:57:34 -0700</bug_when>
    <thetext>Tested via STP 154.


http://hixie.ch/tests/adhoc/svg/cascade/002.xml - Show &quot;Green&quot; circle in Safari 154.

http://hixie.ch/tests/adhoc/svg/svg-plugin-ua.html - Other browsers does not show &quot;Black&quot; filled square with blue text and border.

http://hixie.ch/tests/adhoc/svg/error/013.xml - Pass in isolation but frame in &apos;Iframe&apos;, which is also the case in Chrome Canary 108 and only Firefox Nightly 107 show this proper in iframe.

http://hixie.ch/tests/adhoc/svg/links/003.xml - fails because document / page view scroll on clicking circle.

http://hixie.ch/tests/adhoc/svg/processing-model/001-demo.xml - All browsers differ.

____

Firefox Nightly 108 and Chrome Canary 107 match with each other:

http://hixie.ch/tests/adhoc/svg/mixed/009.xml

http://hixie.ch/tests/adhoc/svg/mixed/006.xml

http://hixie.ch/tests/adhoc/svg/mixed/011.xml

http://hixie.ch/tests/adhoc/svg/text/001.xml

http://hixie.ch/tests/adhoc/svg/processing-model/002-demo.xml</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>