Open
Bug 380439
Opened 18 years ago
Updated 2 years ago
vertical-align inherits percentages rather than computed value
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: fantasai.bugs, Unassigned)
References
Details
(Keywords: css2, testcase)
Attachments
(1 file)
905 bytes,
text/html
|
Details |
Overview: CSS2.1 specifies that percentages in vertical-align inherit as absolute lengths, not as percentages. We inherit as a percentage. http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align Steps to Reproduce: Open up testcase in Mozilla Actual Results: Inner <span> in second test does not move up the same amount as the outer <span>. Expected Results; Both tests should render identically.
Blocks: 93865
Keywords: css2
To fix this, we need to: * compute percentages on mVerticalAlign in nsRuleNode (which requires setting inherited = PR_TRUE if it depends on things in other style structs) into lengths * change the comment in nsStyleStruct.h to say mVerticalAlign can't be a percentage nsStyleCoord * remove the handling of percentage mVerticalAlign nsStyleCoords elsewhere
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•