Open Bug 380439 Opened 18 years ago Updated 3 years ago

vertical-align inherits percentages rather than computed value

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: fantasai.bugs, Unassigned)

References

Details

(Keywords: css2, testcase)

Attachments

(1 file)

Attached file testcase
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.
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: