Skip to content

Commit 6cfad9b

Browse files
committed
[css-cascade] Give 'applies to' its own subsection. #5565
1 parent 985be24 commit 6cfad9b

File tree

1 file changed

+36
-30
lines changed

1 file changed

+36
-30
lines changed

css-cascade-4/Overview.bs

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -577,41 +577,47 @@ Used Values
577577
As another example, a <div> might have a computed 'break-before' value of ''auto'',
578578
but acquire a used 'break-before' value of ''break-before/page'' by propagation from its first child. [[css-break-3]]
579579

580-
If a property does not apply to
581-
this element or box type--
582-
as noted in its “Applies to” line--
583-
then it does not directly take effect on that type of box or element,
584-
and therefore has no used value for that property.
580+
If a property does not [=apply to=]
581+
this element or box type
582+
then it has no used value for that property.
585583

586584

587585
For example, the 'flex' property has no used value
588586
on elements that aren't flex items.
589587

590-
591-
Note: Some properties that do not apply to certain elements or boxes
592-
may still have indirect formatting effects:
593-
their computed value may be taken into account
594-
in the computation of other properties or units
595-
that do have an effect on the element or box;
596-
inherited properties are also often set on elements
597-
that they don't apply to
598-
in order to get them to inherit into descendants to which they do apply,
599-
including cases where these descendants are anonymous boxes.
600-
601-
602-
Even though 'writing-mode' and 'text-orientation' do not apply to table rows,
603-
setting them on such boxes
604-
will still affect the calculation of font relative units such as ''ch'',
605-
and thus possibly any property that takes a <>.
606-
607-
608-
Setting 'text-transform' on an HTML <{p}> element
609-
(which is ''display: block'' by default)
610-
will have an effect,
611-
even though 'text-transform' only applies to [=inline boxes=],
612-
because the property inherits
613-
into the paragraph's anonymous [=root inline box=].
614-
588+

589+
Applicable Properties
590+
591+
If a property does not apply to
592+
an element or box type--
593+
as noted in its “Applies to” line--
594+
this means it does not directly take effect on that type of box or element.
595+
596+
Note: A property that does not apply
597+
can still have indirect formatting effects
598+
if its computed value affects the computation of other properties
599+
that do apply;
600+
and of course its [=computed value=],
601+
which always exists,
602+
can still inherit to descendants
603+
and take effect on them.
604+
605+
606+
Even though 'writing-mode' and 'text-orientation' do not apply to table rows
607+
(they do not affect how the table row or its children are laid out),
608+
setting them on such boxes
609+
will still affect the calculation of font relative units such as ''ch'',
610+
and thus possibly any property that takes a <>.
611+
612+
613+
614+
Setting 'text-transform' on an HTML <{p}> element
615+
(which is ''display: block'' by default)
616+
will have an effect,
617+
even though 'text-transform' only applies to [=inline boxes=],
618+
because the property inherits
619+
into the paragraph's anonymous [=root inline box=]
620+
and applies to the text it contains.
615621
616622

617623
Note: A property defined to apply to “all elements”

0 commit comments

Comments
 (0)