Closed
Bug 27874
Opened 26 years ago
Closed 26 years ago
line-height should use em-square height, not bounding box height {ll}
Categories
(Core :: Layout, defect, P3)
Tracking
()
M16
People
(Reporter: ian, Assigned: erik)
References
()
Details
(Keywords: css1)
Mozilla currently *sets* the font size in the correct way (i.e. em square), but
the line height is based on GetHeight, which returns the bounding box height of
the font and not its em-square height.
We should change line-height to use the em-square height, and stop treating
line-height: normal
...as 1.0. Instead, we should treat 'normal' as meaning 'the value recommended
by the font'.
Bug History: see bug 4234, bug 13072.
See also bug 27164: "update nsIFontMetrics API".
The test case to look at is:
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight7.html
Some other related test pages:
http://www.fas.harvard.edu/~dbaron/css/fonts/sizes/
http://www.fas.harvard.edu/~dbaron/css/test/inlinetest
http://www.fas.harvard.edu/~dbaron/css/test/linebox4
http://www.fas.harvard.edu/~dbaron/css/test/emunit
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight1.html
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight2.html
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight3.html
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight4.html
| Reporter | ||
Comment 1•26 years ago
|
||
| Assignee | ||
Comment 2•26 years ago
|
||
I intend to fix this as part of fixing bug 20394.
Status: NEW → ASSIGNED
| Reporter | ||
Updated•26 years ago
|
No longer blocks: 20402
Summary: line-height should use em-square height, not bounding box height → line-height should use em-square height, not bounding box height {ll}
| Assignee | ||
Comment 3•26 years ago
|
||
Targetting M16, since 20394 is also M16.
Target Milestone: M15 → M16
| Assignee | ||
Comment 4•26 years ago
|
||
Copied comments to bug 27164, marking this one a dup of 27164.
*** This bug has been marked as a duplicate of 27164 ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•