Skip to content

Commit 3e2381b

Browse files
committed
[css-fonts-4] Seralize @ffv with last-defined, w3c#7964
1 parent 4a19da1 commit 3e2381b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7833,6 +7833,35 @@ Serializing font-related at-rules
78337833

78347834
</div>
78357835

7836+
Also,
7837+
following the principle of retaining only the last-defined value,
7838+
as well as the principle of shortest representation,
7839+
multiply-specified tuples and multiple blocks
7840+
are serialized as a single block
7841+
containing only the last-defined value.
7842+
7843+
<div class=example id="ex-serialize-same-font-feature-values
7844+
">
7845+
For example, the declaration:
7846+
7847+
<pre highlight-css>
7848+
/* Repeated declaration names, and multiple blocks of the same type*/
7849+
@font-feature-values foo {
7850+
@swash { pretty: 0; cool: 2; }
7851+
@swash { pretty: 1; }
7852+
}
7853+
</pre>
7854+
7855+
would be serialized as:
7856+
7857+
<pre highlight=css>
7858+
/* Canonical serialization */
7859+
@font-feature-values foo {
7860+
@swash { cool: 2; pretty: 1; }
7861+
}
7862+
</pre>
7863+
</div>
7864+
78367865

78377866
<h2 id="platform-props-to-css" class="no-num">
78387867
Appendix A: Mapping platform font properties to CSS properties</h2>

0 commit comments

Comments
 (0)