Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/cssom/serialize-variable-reference.txt
Callum Law 62da650992 LibWeb: Don't serialize longhands if we directly serialized shorthand
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.
2025-06-16 12:37:40 +01:00

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