Bug 15086 - Proper rendering of CSS em units breaks at em < 1 for all but fonts.
Summary: Proper rendering of CSS em units breaks at em < 1 for all but fonts.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2007-08-26 21:26 PDT by Darryl McAdams
Modified: 2008-02-09 16:09 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darryl McAdams 2007-08-26 21:26:16 PDT
Given a style:

#foo {
  width: 10em;
  height: 10em;
}

The corresponding element will render its width as 10em for all font-sizes that compute out to >=1px, but as 10px for all font-sizes that compute out to <1px.

If the font-size is set to 10px, the element foo renders to be 100px wide/high, etc. but if font size is set to 0.5px, the element remains at 10px wide/high. 

However fonts themselves are rendered appropriately.
Comment 1 Dave Hyatt 2007-08-27 02:44:22 PDT
Currently WebKit enforces a minimum font size of 1.
Comment 2 Robert Blaut 2008-02-09 16:09:23 PST
The bug is related to bug 11004