mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
style: Make all font-metrics-affecting properties cascade early.
And make font-size computation work on the whole font of the parent, not just accounting for the parent's font-size. Differential Revision: https://phabricator.services.mozilla.com/D20656
This commit is contained in:
parent
aa5ea337da
commit
d3f254d2e4
4 changed files with 36 additions and 38 deletions
|
@ -1257,8 +1257,12 @@ impl LonghandId {
|
|||
LonghandId::MozScriptLevel |
|
||||
% endif
|
||||
|
||||
// Needed to compute font-relative lengths correctly.
|
||||
// Needed to compute the first available font, in order to
|
||||
// compute font-relative units correctly.
|
||||
LonghandId::FontSize |
|
||||
LonghandId::FontWeight |
|
||||
LonghandId::FontStretch |
|
||||
LonghandId::FontStyle |
|
||||
LonghandId::FontFamily |
|
||||
|
||||
// Needed to resolve currentcolor at computed value time properly.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue