Skip to content

Commit 38c9a63

Browse files
authored
[css-cascade-4] Replace @import supports() example (#8594)
1 parent c5beb01 commit 38c9a63

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-cascade-4/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ Conditional ''@import'' Rules</h3>
221221
(even if it is loaded through some other link).
222222

223223
<div class="example">
224-
The following rule illustrates how an author can provide fallback rules for legacy user agents
225-
without impacting network performance on newer user agents:
224+
The following rule illustrates how an author can provide rules
225+
for modern user agents that support newer web features
226+
without impacting network performance on older user agents.
227+
In this example, a CSS file which loads COLRv1 fonts
228+
is only fetched when COLRv1 is supported:
226229

227230
<pre class='lang-css'>
228-
@import url("fallback-layout.css") supports(not (display: flex));
229-
@supports (display: flex) {
230-
...
231-
}
231+
@import url("COLRv1_fonts.css") supports(font-tech(color-COLRv1));
232232
</pre>
233233
</div>
234234

0 commit comments

Comments
 (0)