<?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>50313</bug_id>
          
          <creation_ts>2010-11-30 23:04:27 -0800</creation_ts>
          <short_desc>[Gtk] Text height in zoomed SVG is 1px too high</short_desc>
          <delta_ts>2011-02-01 04:02:49 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12448</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>50314</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Cosmin Truta">ctruta</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mdelaney7</cc>
    
    <cc>mrobinson</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>315548</commentid>
    <comment_count>0</comment_count>
    <who name="Cosmin Truta">ctruta</who>
    <bug_when>2010-11-30 23:04:27 -0800</bug_when>
    <thetext>In the following test cases:
    css3/zoom-coords.xhtml
    svg/zoom/page/zoom-zoom-coords.xhtml
the text height is one pixel too high.

The text height is set to 12px (using the Ahem font), and showed in scaled coordinates. For example, when the scale is 50%, the expected text height is 6.

These test cases pass on all platforms except for GTK.
On GTK, the function getBoundingClientRect indicates the text height to be 6.5 instead of 6, and 13 instead of 12.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315553</commentid>
    <comment_count>1</comment_count>
    <who name="Cosmin Truta">ctruta</who>
    <bug_when>2010-11-30 23:29:26 -0800</bug_when>
    <thetext>For the time being, the two failing tests are listed in platform/gtk/Skipped
This is done in bug 50314.

The patch for 50314 should be undone when this bug is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315567</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-12-01 01:05:19 -0800</bug_when>
    <thetext>Thanks for opening this bug. Does this only affect GTK+?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315660</commentid>
    <comment_count>3</comment_count>
    <who name="Cosmin Truta">ctruta</who>
    <bug_when>2010-12-01 08:29:53 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Thanks for opening this bug. Does this only affect GTK+?

I assume that&apos;s the case, because I did not see other failures elsewhere.
The platforms where I run tests myself are webkit-mac and chromium-linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315685</commentid>
    <comment_count>4</comment_count>
      <attachid>75279</attachid>
    <who name="Cosmin Truta">ctruta</who>
    <bug_when>2010-12-01 09:19:30 -0800</bug_when>
    <thetext>Created attachment 75279
Reduced test case

Actually, it&apos;s not even necessary to use the CSS3 zoom attribute to reproduce the failure. The first SVG test (&quot;svg1&quot;) in css3/zoom-coords.xhtml is only scaled using
    ... height=&quot;50px&quot; viewBox=&quot;0 0 150 100&quot;
and it&apos;s still failing.

It may be possible that it isn&apos;t even a zooming issue, after all. I wonder, is the attached test (&quot;text-height.xhtml&quot;) passing under GTK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343121</commentid>
    <comment_count>5</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-02-01 04:02:49 -0800</bug_when>
    <thetext>The patch on bug 12448 fixes this problem.

*** This bug has been marked as a duplicate of bug 12448 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>75279</attachid>
            <date>2010-12-01 09:19:30 -0800</date>
            <delta_ts>2010-12-01 09:19:30 -0800</delta_ts>
            <desc>Reduced test case</desc>
            <filename>text-height.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>1130</size>
            <attacher name="Cosmin Truta">ctruta</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHhtbG5zOnhsaW5rPSJo
dHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KPGhlYWQ+CjxsaW5rIHJlbD0ic3R5bGVzaGVl
dCIgaHJlZj0iLi4vZmFzdC9qcy9yZXNvdXJjZXMvanMtdGVzdC1zdHlsZS5jc3MiLz4KPHN0eWxl
IHR5cGU9InRleHQvY3NzIj4KICAgICN0ZXh0SW5IVE1MLCAjdGV4dEluU1ZHIHsgZm9udDogMTJw
eCBBaGVtOyB9Cjwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+Cgo8c3BhbiBpZD0idGV4dEluSFRNTCI+
VGV4dCBpbiBIVE1MPC9zcGFuPgo8c3ZnIHdpZHRoPSIxMDAiIGhlaWdodD0iNTAiPgogICAgPHRl
eHQgaWQ9InRleHRJblNWRyIgeD0iMjAiIHk9IjIwIj5UZXh0IGluIFNWRzwvdGV4dD4KPC9zdmc+
Cgo8ZGl2IGlkPSJkZXNjcmlwdGlvbiI+PC9kaXY+CjxkaXYgaWQ9ImNvbnNvbGUiPjwvZGl2PgoK
PHNjcmlwdCBzcmM9Ii4uL2Zhc3QvanMvcmVzb3VyY2VzL2pzLXRlc3QtcHJlLmpzIj48L3Njcmlw
dD4KPHNjcmlwdD4KCmZ1bmN0aW9uIG1zZ0R1bXBSZW5kZXJUcmVlUmVxdWlyZWQoKQp7CiAgICBp
ZiAoIXdpbmRvdy5sYXlvdXRUZXN0Q29udHJvbGxlcikKICAgICAgICBkZWJ1ZygiVGhlI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