Content-Length: 308835 | pFad | http://github.com/w3c/csswg-drafts/commit/3e2381b1e7b4eff098eb9c8f5642d5b467cda2e9

97 [css-fonts-4] Seralize `@ffv` with last-defined, #7964 · w3c/csswg-drafts@3e2381b · GitHub
Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3e2381b

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
 

‎css-fonts-4/Overview.bs

+29
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)
Failed to load comments.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/w3c/csswg-drafts/commit/3e2381b1e7b4eff098eb9c8f5642d5b467cda2e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy