File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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">
78387867Appendix A: Mapping platform font properties to CSS properties</h2>
You can’t perform that action at this time.
0 commit comments