mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Introduce the concept of legacy shorthands.
We need this because there's a weird mapping between these properties' values ('always' maps to 'page'). See https://drafts.csswg.org/css-cascade-4/#legacy-shorthand. Differential Revision: https://phabricator.services.mozilla.com/D12213
This commit is contained in:
parent
d0ac1b06d1
commit
a427e4f763
2 changed files with 24 additions and 9 deletions
|
@ -917,6 +917,10 @@ impl PropertyDeclarationBlock {
|
|||
}
|
||||
already_serialized.insert(shorthand.into());
|
||||
|
||||
if shorthand.is_legacy_shorthand() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Substep 2 & 3
|
||||
let mut current_longhands = SmallVec::<[_; 10]>::new();
|
||||
let mut important_count = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue