<?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>166750</bug_id>
          
          <creation_ts>2017-01-05 18:20:36 -0800</creation_ts>
          <short_desc>Zooming factor is not respected when displaying an non inline SVG with a &lt;mask&gt; element</short_desc>
          <delta_ts>2018-11-10 06:37:56 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=135616</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jespertheend</cc>
    
    <cc>kaelig</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thaddee.tyl</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1264312</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2017-01-05 18:20:36 -0800</bug_when>
    <thetext>Open the attached test case. It contains three identical SVGs. The first one is a data uri referenced from an &lt;img&gt; element. The second is an external SVG referenced from another &lt;img&gt; element. The third one is an inline SVG.

The non-inline SVG images are not drawn correctly. The reason is the SVG includes a &lt;mask&gt; element which creates an ImageBuffer for applying the mask. For the non-inline case, SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem() returns an identity transform because RenderSVGRoot::localToParentTransform() does not return the zooming factor of the HTMLDocument since its document is an SVGDocument. Also deviceScaleFactor returns 1 in this case on Retina devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264313</commentid>
    <comment_count>1</comment_count>
      <attachid>298161</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2017-01-05 18:20:56 -0800</bug_when>
    <thetext>Created attachment 298161
mask</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1264314</commentid>
    <comment_count>2</comment_count>
      <attachid>298162</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2017-01-05 18:21:52 -0800</bug_when>
    <thetext>Created attachment 298162
test case</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>298161</attachid>
            <date>2017-01-05 18:20:56 -0800</date>
            <delta_ts>2017-01-05 18:20:56 -0800</delta_ts>
            <desc>mask</desc>
            <filename>mask.svg</filename>
            <type>image/svg+xml</type>
            <size>234</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdo
dD0iMTAwIj4KICAgIDxtYXNrIGlkPSJhIj4KICAgICAgICA8Y2lyY2xlIGN4PSI1MCUiIGN5PSI1
MCUiIHI9IjUwJSIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNh
KSI+CiAgICAgICAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPgogICAgPC9nPgo8
L3N2Zz4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>298162</attachid>
            <date>2017-01-05 18:21:52 -0800</date>
            <delta_ts>2017-01-05 18:21:52 -0800</delta_ts>
            <desc>test case</desc>
            <filename>test207.html</filename>
            <type>text/html</type>
            <size>839</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgICA8c3R5bGU+CiAgICAgICAgYm9keSB7IAogICAgICAgICAgICB6b29tOiA0Owog
ICAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGltZyBzcmM9ImRhdGE6aW1hZ2Uvc3ZnK3htbCwK
ICAgICAgICAgICAgPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRo
PScxMDAnIGhlaWdodD0nMTAwJz4KICAgICAgICAgICAgICAgIDxtYXNrIGlkPSdhJz4KICAgICAg
ICAgICAgICAgICAgICA8Y2lyY2xlIGN4PSc1MCUnIGN5PSc1MCUnIHI9JzUwJScgZmlsbD0nI2Zm
ZicvPgogICAgICAgICAgICAgICAgPC9tYXNrPgogICAgICAgICAgICAgICAgPGcgbWFzaz0ndXJs
KCNhKSc+CiAgICAgICAgICAgICAgICAgICAgPHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAw
JScvPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L3N2Zz4iCiAgICAgICAgYWx0
PSJCbHVycnkgYmxhY2sgY2lyY2xlIj4KCiAgICA8aW1nIHNyYz0iaHR0cHM6Ly9idWctMTY2NzUw
LWF0dGFjaG1lbnRzLndlYmtpdC5vcmcvYXR0YWNobWVudC5jZ2k/aWQ9Mjk4MTYxIj4KCiAgICA8
c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCIgaGVpZ2h0
PSIxMDAiPgogICAgICAgIDxtYXNrIGlkPSJhIj4KICAgICAgICAgICAgPGNpcmNsZSBjeD0iNTAl
IiBjeT0iNTAlIiByPSI1MCUiIGZpbGw9IiNmZmYiLz4KICAgICAgICA8L21hc2s+CiAgICAgICAg
PGcgbWFzaz0idXJsKCNhKSI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9
IjEwMCUiLz4KICAgICAgICA8L2c+CiAgICA8L3N2Zz4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>