This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7369 - if context font is set to '' or null, the font from the css should be used. In this case, you have no idea what font is being use, so measureText should return a height of the font, as well as the width so that proper displaying can be done.
Summary: if context font is set to '' or null, the font from the css should be used. ...
Status: VERIFIED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://whatwg.org/specs/web-apps/curr...
Whiteboard:
Keywords: NoReply
Depends on:
Blocks:
 
Reported: 2009-08-19 15:41 UTC by contributor
Modified: 2010-10-04 14:46 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2009-08-19 15:41:52 UTC
Section: http://whatwg.org/specs/web-apps/current-work/#text

Comment:
if context font is set to '' or null, the font from the css should be used.  In this case, you have no idea what font is being use, so measureText should return a height of the font, as well as the width so that proper displaying can be done.

Posted from: 72.44.128.122
Comment 1 Ian 'Hixie' Hickson 2009-09-19 22:04:29 UTC
Can't you figure out the em height by getting .font and parsing it?

I mean, I agree we need to improve the metrics in due course, but it doesn't seem that it's as pressing as is described above.
Comment 2 Maciej Stachowiak 2010-03-14 14:49:45 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
  http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.