1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -7833,6 +7833,35 @@ Serializing font-related at-rules
7833
7833
7834
7834
</div>
7835
7835
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
+
7836
7865
7837
7866
<h2 id="platform-props-to-css" class="no-num">
7838
7867
Appendix A: Mapping platform font properties to CSS properties</h2>
0 commit comments