[Webkit-unassigned] [Bug 80360] New: 1ex should equal .5em when the font has no x-height metric
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 5 17:24:42 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=80360
Summary: 1ex should equal .5em when the font has no x-height
metric
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tabatkins at google.com
Testcase
========
<!doctype html>
<svg xmlns = 'http://www.w3.org/2000/svg' style='display:none'>
<defs>
<font id="Font1">
<font-face font-family="block" />
</font>
</defs>
</svg>
<style>
.em { height: .5em; width: .5em; }
.ex { height: 1ex; width: 1ex; }
.cover { background: green; }
.back { background: red; }
.one { left: 10px; }
.two { left: 70px; }
#test > div { font-family: block; font-size: 100px; position: absolute; top: 10px; }
</style>
<div id='test'>
<div class='back em one'></div>
<div class='cover ex one'></div>
<div class='back ex two'></div>
<div class='cover em two'></div>
</div>
Expected result
===============
Because the SVG font doesn't define an x-height metric, the 'ex' unit for elements that use it should be sized to half the 'em' unit.
Actual result
=============
The 'ex' unit is sized to 0. This also occurs with TrueType fonts that have been modified to not have an x-height metric.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list