Bug 15086
| Summary: | Proper rendering of CSS em units breaks at em < 1 for all but fonts. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Darryl McAdams <psygnisfive> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | frances_c, hyatt, webkit |
| Priority: | P2 | Keywords: | NeedsReduction |
| Version: | 523.x (Safari 3) | ||
| Hardware: | All | ||
| OS: | All | ||
Darryl McAdams
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dave Hyatt
Currently WebKit enforces a minimum font size of 1.
Robert Blaut
The bug is related to bug 11004
Frances Cornwall
*** This bug has been marked as a duplicate of bug 11004 ***