mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
The spec assumes that we only store values against expanded longhands, there are however limited circumstances where we store against shorthands directly in addition to the expanded longhands. For example if the value of the shorthand is unresolved we store an UnresolvedStyleValue against the shorthand directly and a PendingSubstitutionStyleValue against each of the longhands. This commit updates the logic so that in the case we serialize a shorthand directly we should also mark it's longhands as serialized to avoid serializing them separately. This also avoids the scenario where we tried to create and serialize a ShorthandStyleValue with PendingSubstitutionStyleValue longhands, so we can remove the check and related FIXME for that.
9 lines
403 B
Plaintext
9 lines
403 B
Plaintext
Harness status: OK
|
|
|
|
Found 4 tests
|
|
|
|
4 Pass
|
|
Pass Longhand with variable preserves original serialization: with whitespace
|
|
Pass Shorthand with variable preserves original serialization: with whitespace
|
|
Pass Longhand with variable preserves original serialization but trims whitespace: without whitespace
|
|
Pass Shorthand with variable preserves original serialization but trims whitespace: without whitespace |