<?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>103493</bug_id>
          
          <creation_ts>2012-11-28 01:11:06 -0800</creation_ts>
          <short_desc>display: none ignored on outermost SVG element</short_desc>
          <delta_ts>2022-07-15 15:47:05 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>eric</cc>
    
    <cc>pdr</cc>
    
    <cc>schenney</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>777615</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2012-11-28 01:11:06 -0800</bug_when>
    <thetext>If you do &lt;svg style=&quot;display: none&quot;&gt; on the outermost SVG element we ignore it which is wrong. 

I tried to fix this, but it&apos;s hard since we depend on the SVGDocument::rootElement() having a renderer. Instead SVG should use a RenderView like HTML for the thing that must always exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777617</commentid>
    <comment_count>1</comment_count>
      <attachid>176422</attachid>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2012-11-28 01:13:59 -0800</bug_when>
    <thetext>Created attachment 176422
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777926</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-11-28 08:21:38 -0800</bug_when>
    <thetext>This is a side effect of the fact that SVG needs renderers for content hat the SVG spec defines as display:none. Examples include filters, masks, patterns, anything in defs elemens, etc.

Mozilla have apparently also had issue with this: https://bugzilla.mozilla.org/show_bug.cgi?id=376027

We should still fix it though, as it should be possible to put display:none on the root SVG and have nothing display.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884326</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 15:45:14 -0700</bug_when>
    <thetext>Safari and Chrome fail this test. Firefox handles it properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884332</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 15:47:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/97098400&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>176422</attachid>
            <date>2012-11-28 01:13:59 -0800</date>
            <delta_ts>2012-11-28 01:13:59 -0800</delta_ts>
            <desc>Reduction</desc>
            <filename>reduction.svg</filename>
            <type>image/svg+xml</type>
            <size>182</size>
            <attacher name="Elliott Sprehn">esprehn</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+CjxzdmcgeG1sbnM9Imh0dHA6
Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHN0eWxlPSJkaXNwbGF5OiBub25l
Ij4KICA8cmVjdCBmaWxsPSJyZWQiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAw
Ii8+Cjwvc3ZnPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>