@@ -253,10 +253,18 @@ <h2 id="at-import">Importing style sheets</h2>
253253 '@import' that has a name and all other '@import's that have the
254254 same name.
255255
256- < div class =example >
257- < p > If the UA is using the default style, only “Yellow
258- Fish” and the nameless '@import's (shown in
259- < code > < b > bold</ b > </ code > ) are used, the others are skipped:
256+ < li >
257+ < p > If the user has chosen a style be name, then all '@import's
258+ without a name are imported, as well as all '@import's with the
259+ name chosen by the user.
260+
261+ </ ul >
262+
263+
264+ < div class =example >
265+ < p > If the UA is using the default style, only “Yellow
266+ Fish” and the nameless '@import's (shown in
267+ < code > < b > bold</ b > </ code > ) are used, the others are skipped:
260268
261269< pre >
262270< b > @import "common1.css";</ b >
@@ -269,15 +277,10 @@ <h2 id="at-import">Importing style sheets</h2>
269277</ pre >
270278</ div >
271279
272- < li >
273- < p > If the user has chosen a style be name, then all '@import's
274- without a name are imported, as well as all '@import's with the
275- name chosen by the user.
276-
277- < div class =example >
278- < p > If the user has chosen the “Simple” style, only
279- “Simple” and the nameless '@import's (all shown in
280- < code > < b > bold</ b > </ code > ) are used, the others are skipped:
280+ < div class =example >
281+ < p > If the user has chosen the “Simple” style, only
282+ “Simple” and the nameless '@import's (all shown in
283+ < code > < b > bold</ b > </ code > ) are used, the others are skipped:
281284
282285< pre >
283286< b > @import "common1.css";</ b >
@@ -289,30 +292,16 @@ <h2 id="at-import">Importing style sheets</h2>
289292< b > @import "common2.css";</ b >
290293</ pre >
291294</ div >
292- </ ul >
295+
293296
294297< p > Style sheets are only imported if the media query on the '@import'
295298(if any) matches the media for which the UA renders the document.
296299
297300< p > If an '@import' is skipped, then all '@import's inside the style
298301sheet it points to are also skipped, no matter what their names.
299302
300- < p class =note > HTML [[HTML401]] uses the term < dfn > preferred
301- style sheet</ dfn > for the named style sheets that the author
302- marked as the default. In CSS, these are all style sheets whose name
303- is the first name to occur on any '@import' or '@media'.
304- < dfn > Alternate style sheets</ dfn > are all other
305- named style sheets. Finally, HTML calls style sheets without a name
306- < dfn > persistent style sheets</ dfn > , because they are
307- imported together with the preferred ones as well as with any
308- alternatives.
309-
310- < p class =note > The UA should not only provide the user with a choice of
311- alternative style sheets, but should also allow the user to turn all
312- style sheets off. See < span class =issue > [where?]</ span >
313-
314303< p > The list of alternative style sheets that the user can
315- choose from consists of
304+ choose from consists of:
316305
317306< ul >
318307 < li > any names in the document source itself (such as < code
@@ -332,6 +321,24 @@ <h2 id="at-import">Importing style sheets</h2>
332321with a < code class =html > title</ code > attribute or named '@import'
333322rules.
334323
324+
325+ < p class =note > HTML [[HTML401]] uses the term < dfn > preferred
326+ style sheet</ dfn > for the named style sheets that the author
327+ marked as the default. In CSS, these are all style sheets whose name
328+ is the first name to occur on any '@import' or '@media'.
329+ < dfn > Alternate style sheets</ dfn > are all other
330+ named style sheets. Finally, HTML calls style sheets without a name
331+ < dfn > persistent style sheets</ dfn > , because they are
332+ imported together with the preferred ones as well as with any
333+ alternatives.
334+
335+ < p class =note > The UA should not only provide the user with a choice of
336+ alternative style sheets, but should also allow the user to turn all
337+ style sheets off.
338+
339+ <!-- See <span class=issue>[where?]</span>-->
340+
341+
335342< p class =issue > Are names matched case-sensitively or
336343case-insensitively? Property names and font names are
337344case-insensitive, so it is probably most consistent to treat style
@@ -405,6 +412,14 @@ <h2 id="at-media-rule">Named <code>@media</code> rules</h2>
405412 first named '@import' or the first named '@media', whichever comes
406413 first.
407414
415+ < li >
416+ < p > If the user has chosen a style by name, the UA must read all
417+ '@media' rules (1) of which the media query matches the UA and (2)
418+ that either have no name or whose name is equal to the user's
419+ chosen name.
420+
421+ </ ul >
422+
408423 < div class =example >
409424 < p > If the user wants the UA to use the default style, the
410425 following example results in the UA reading the “Reverse
@@ -428,12 +443,6 @@ <h2 id="at-media-rule">Named <code>@media</code> rules</h2>
428443</ pre >
429444</ div >
430445
431- < li >
432- < p > If the user has chosen a style by name, the UA must read all
433- '@media' rules (1) of which the media query matches the UA and (2)
434- that either have no name or whose name is equal to the user's
435- chosen name.
436-
437446 < div class =example >
438447 < p > If the user wants the UA to use the “Rainbow style”
439448 style, the following example results in the UA reading the
@@ -459,8 +468,6 @@ <h2 id="at-media-rule">Named <code>@media</code> rules</h2>
459468}</ b >
460469</ pre >
461470</ div >
462- </ ul >
463-
464471
465472< h2 > Cascading</ h2 >
466473
0 commit comments