Resolve line-height to used value in the style system
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: jfkthame, Assigned: emilio)
References
Details
Attachments
(1 file)
Followup to bug 1813536, as Emilio noted in https://phabricator.services.mozilla.com/D168542#5545333:
we should be able to also clean-up nsComputedDOMStyle::DoGetLineHeight and co (since it's no longer layout-dependent with the exception of -moz-block-height, which is not exposed to content).
So we should be able to remove that code and this after this change, and it'd make longhands and shorthands return consistent values in the computed style.
An initial naïve attempt to do this ran into problems with html/rendering/non-replaced-elements/form-controls/input-line-height-computed.html, because (per Emilio in Matrix) "we implement this <input> line-height hack at used-value time".
This should also facilitate implementing the lh
and rlh
units.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
For ToResolvedValue implementation purposes we wouldn't need to split
out the vertical / font / line-height arguments and we could just pass
around the ComputedStyle, but the lh unit would need that distinction,
(because computing lh on font properties should use the parent style).
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
bugherder |
Description
•