Skip to content

Commit

Permalink
[css-values-4][editorial] Add a note explaining why position serializ…
Browse files Browse the repository at this point in the history
…ation violates the shortest-serialization-principle. #8996
  • Loading branch information
tabatkins committed Jun 22, 2023
1 parent c9f5f54 commit 745fde5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css-values-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2857,6 +2857,12 @@ Serializing <<position>></h4>
* Components are serialized horizontal first, then vertical.
</dl>

Note: <<position>> values are never serialized as a single value,
even when a single value would produce the same behavior,
to avoid causing parsing ambiguities in some grammars
where a <<position>> is placed next to a <<length>>,
such as 'transform-origin'.

Note: [=Computed values=] are always serialized as two offsets (without keywords)
because the [=computed value=] does not preserve syntactic distinctions.

Expand Down

0 comments on commit 745fde5

Please sign in to comment.