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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27690</bug_id>
          
          <creation_ts>2014-12-24 09:57:22 +0000</creation_ts>
          <short_desc>Problematic definition of TextMetrics.emHeightDescent</short_desc>
          <delta_ts>2014-12-24 09:57:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</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></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Moti Zilberman">motiz88</reporter>
          <assigned_to name="Jay Munro">jaymunro</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116673</commentid>
    <comment_count>0</comment_count>
    <who name="Moti Zilberman">motiz88</who>
    <bug_when>2014-12-24 09:57:22 +0000</bug_when>
    <thetext>Quoting the current spec and adding my own comments inline:

&gt; emHeightDescent attribute
...
&gt; positive numbers indicating that the given baseline is below the bottom of that em square

This breaks the following convention otherwise followed by all Ascent/Descent attribute pairs:
Ascent = positive numbers indicating a distance going up
Descent = positive numbers indicating a distance going down
(Thus Ascent+Descent = Height in a sense)

I propose that emHeightDescent be brought in line with this convention.

&gt; (Zero if the given baseline is the top of that em square.)
This was probably meant to say &quot;bottom&quot;.

To give some context - I am the author of https://github.com/motiz88/canvas-text-metrics-polyfill and actively working on bringing conforming measureText implementations to Chrome and Firefox (Chrome Canary has it, behind a flag and with some issues).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>