Skip to content

Commit 33f595b

Browse files
committed
[css-cascade-3][css-cascade-4] Tweak applies-to wording, shift note to L4, which needs more editorial work. w3c#5565
1 parent 45ff284 commit 33f595b

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

css-cascade-3/Overview.bs

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -457,44 +457,16 @@ Used Values</h3>
457457
As another example, a <code>&lt;div></code> might have a computed 'break-before' value of ''auto'',
458458
but acquire a used 'break-before' value of ''break-before/page'' by propagation from its first child. [[css-break-3]]
459459

460-
If a property does not <dfn id="applies-to" lt="apply to | applies to">apply to</dfn>
460+
If a property does not <dfn lt="applies to | apply to">apply to</dfn>
461461
this element or box type--
462462
as noted in its “Applies to” line--
463-
then it has no direct formatting effect on that type of box or element,
463+
then does not take effect on that type of box or element,
464464
and therefore has no <a>used value</a> for that property.
465465

466466
<p class='example'>
467467
For example, the 'flex' property has no <a>used value</a>
468468
on elements that aren't <a>flex items</a>.
469469

470-
<div class=note>
471-
Note: Some properties that do not apply to certain elements or boxes
472-
may still have <em>indirect</em> formatting effects:
473-
their computed value may be taken into account
474-
in the computation of other properties or units
475-
that do have an effect on the element or box;
476-
inherited properties are also often set on elements
477-
that they don't apply to
478-
in order to get them to inherit into descendants to which they do apply,
479-
including cases where these descendants are anonymous boxes.
480-
481-
<div class=example>
482-
Even though 'writing-mode' and 'text-orientation' do not apply to table rows,
483-
setting them on such boxes
484-
will still affect the calculation of font relative units such as ''ch'',
485-
and thus possibly any property that takes a <<length>>.
486-
</div>
487-
<div class=example>
488-
Setting 'text-transform' on an HTML <{p}> element
489-
(which is ''display: block'' by default)
490-
will have an effect,
491-
even though 'text-transform' only applies to [=inline boxes=],
492-
because the property inherits
493-
into the paragraph's anonymous [=root inline box=].
494-
</div>
495-
</div>
496-
497-
498470
Note: A property defined to apply to “all elements”
499471
applies to all elements and [=display types=],
500472
but not necessarily to all [=pseudo-element=] types,

css-cascade-4/Overview.bs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,40 @@ Used Values</h3>
570570
If a property does not <dfn lt="applies to | apply to">apply to</dfn>
571571
this element or box type--
572572
as noted in its “Applies to” line--
573-
then it has no formatting effect on that type of box or element,
573+
then does not take effect on that type of box or element,
574574
and therefore has no <a>used value</a> for that property.
575575

576576
<p class='example'>
577577
For example, the 'flex' property has no <a>used value</a>
578578
on elements that aren't <a>flex items</a>.
579579

580+
<div class=note>
581+
Note: Some properties that do not apply to certain elements or boxes
582+
may still have <em>indirect</em> formatting effects:
583+
their computed value may be taken into account
584+
in the computation of other properties or units
585+
that do have an effect on the element or box;
586+
inherited properties are also often set on elements
587+
that they don't apply to
588+
in order to get them to inherit into descendants to which they do apply,
589+
including cases where these descendants are anonymous boxes.
590+
591+
<div class=example>
592+
Even though 'writing-mode' and 'text-orientation' do not apply to table rows,
593+
setting them on such boxes
594+
will still affect the calculation of font relative units such as ''ch'',
595+
and thus possibly any property that takes a <<length>>.
596+
</div>
597+
<div class=example>
598+
Setting 'text-transform' on an HTML <{p}> element
599+
(which is ''display: block'' by default)
600+
will have an effect,
601+
even though 'text-transform' only applies to [=inline boxes=],
602+
because the property inherits
603+
into the paragraph's anonymous [=root inline box=].
604+
</div>
605+
</div>
606+
580607
Note: A property defined to apply to “all elements”
581608
applies to all elements and [=display types=],
582609
but not necessarily to all [=pseudo-element=] types,

0 commit comments

Comments
 (0)