Skip to content

Commit

Permalink
Match TextMetrics emHeightDescent with the rest of the API
Browse files Browse the repository at this point in the history
"emHeightDescent" was the only descent where "positive" meant "above the baseline". This fixes that and makes it more aligned with the other descents, where "positive" means "below the baseline".
  • Loading branch information
fserb authored and domenic committed Aug 31, 2018
1 parent 7711a1f commit cd9aab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -63279,8 +63279,8 @@ v6DVT (also check for '- -' bits in the part above) -->
<dd><p>The distance from the horizontal line indicated by the <code
data-x="dom-context-2d-textBaseline">textBaseline</code> attribute to the lowest bottom of the em
squares in the <span>line box</span>, in <span data-x="'px'">CSS pixels</span>; positive numbers
indicating that the given baseline is below the bottom of that em square (so this value will
usually be negative). (Zero if the given baseline is the bottom of that em square.)</p></dd>
indicating that the given baseline is above the bottom of that em square. (Zero if the given baseline
is the bottom of that em square.)</p></dd>

<dt><dfn><code data-x="dom-textmetrics-getBaselines">getBaselines()</code></dfn> method</dt>

Expand Down

0 comments on commit cd9aab6

Please sign in to comment.