<?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>38463</bug_id>
          
          <creation_ts>2010-05-03 07:38:08 -0700</creation_ts>
          <short_desc>Fails on Canvas test case: http://philip.html5.org/tests/canvas/suite/tests/2d.text.draw.baseline.top.html</short_desc>
          <delta_ts>2025-03-18 15:24:09 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20553</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chang Shu">cshu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>eae</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>leviw</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>robert</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>220098</commentid>
    <comment_count>0</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-05-03 07:38:08 -0700</bug_when>
    <thetext>http://philip.html5.org/tests/canvas/suite/tests/2d.text.draw.baseline.top.html
Run above test case on Safari.
Actual result: failed
Expected result: pass

The same test case passes on Firefox4.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224189</commentid>
    <comment_count>1</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2010-05-11 15:31:52 -0700</bug_when>
    <thetext>Also fails on both Opera 10.53 and Chrome 5.0.375.38 beta on Snow Leopard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819112</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2013-01-29 11:10:53 -0800</bug_when>
    <thetext>I&apos;d love to know what&apos;s going on with our font metrics here. The reason we fail this and the other canvas baseline tests is down to the ascent and descent we calculate for the font before drawing it. I imagine this varies between platforms but I&apos;ve tested it on Chromium Linux.

Tony - this must be FontMetrics 101, can you shed any light on why Firefox and Chromium Linux (for example) return different ascent/descent for the same font?

The person at http://mudcu.be/journal/2011/01/html5-typographic-metrics/#baselineCanvas looked into this a bit and concluded it was &apos;invisible space&apos;. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>819188</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2013-01-29 12:21:43 -0800</bug_when>
    <thetext>I actually know very little about font metrics and don&apos;t know where this extra &apos;invisible space&apos; comes from.  Levi or Emil probably know more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>821685</commentid>
    <comment_count>4</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2013-01-31 10:57:23 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I actually know very little about font metrics and don&apos;t know where this extra &apos;invisible space&apos; comes from.  Levi or Emil probably know more.

I&apos;m afraid this one is beyond my expertise as well :-/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873411</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-01 15:58:34 -0700</bug_when>
    <thetext>I am still able to reproduce this bug using the test link in Comment 01 in Safari 15.5 on macOS 12.4. All other browsers like Chrome Canary 104 and Firefox Nightly 103 pass the test. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>