Skip to content

Commit 8804865

Browse files
committed
[css-cascade-4] Define that elements that are disconnected or not in the flat tree do not have any CSS values at all. w3c#1964 w3c#1548
1 parent 2b22587 commit 8804865

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

css-cascade-4/Overview.bs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,18 @@ Value Processing</h2>
462462
for a given property on an element.
463463
</ol>
464464

465+
Elements that are not [=connected=]
466+
or are not part of the document’s [=flattened element tree=]
467+
do not participate in CSS value processing,
468+
and do not have [=declared=], [=cascaded=], [=specified=], [=computed=], [=used=], or [=actual=] values,
469+
even if they potentially have style declarations assigned to them
470+
(for example, by a <code>style</code> attribute).
471+
465472
<h3 id="declared">
466473
Declared Values</h3>
467474

468475
Each property declaration <a href="#filtering">applied to an element</a>
469-
contributes a <dfn export>declared value</dfn> for that property
476+
contributes a <dfn export local-lt="declared">declared value</dfn> for that property
470477
associated with the element.
471478
See <a href="#filtering">Filtering Declarations</a> for details.
472479

@@ -476,7 +483,7 @@ Declared Values</h3>
476483
<h3 id="cascaded">
477484
Cascaded Values</h3>
478485

479-
The <dfn export>cascaded value</dfn> represents the result of <a href="#cascade">the cascade</a>:
486+
The <dfn export local-lt="cascaded">cascaded value</dfn> represents the result of <a href="#cascade">the cascade</a>:
480487
it is the <a>declared value</a> that wins the cascade
481488
(is sorted first in the <a>output of the cascade</a>).
482489
If the <a>output of the cascade</a> is an empty list,
@@ -485,7 +492,7 @@ Cascaded Values</h3>
485492
<h3 id="specified">
486493
Specified Values</h3>
487494

488-
The <dfn export>specified value</dfn> is the value of a given property that the style sheet authors intended for that element.
495+
The <dfn export local-lt="specified">specified value</dfn> is the value of a given property that the style sheet authors intended for that element.
489496
It is the result of putting the <a>cascaded value</a> through the <a href="#defaulting">defaulting</a> processes,
490497
guaranteeing that a <a>specified value</a> exists for every property on every element.
491498

@@ -500,7 +507,7 @@ Specified Values</h3>
500507
<h3 id="computed">
501508
Computed Values</h3>
502509

503-
The <dfn export>computed value</dfn> is the result of resolving the <a>specified value</a>
510+
The <dfn export local-lt="computed">computed value</dfn> is the result of resolving the <a>specified value</a>
504511
as defined in the “Computed Value” line of the property definition table,
505512
generally absolutizing it in preparation for <a>inheritance</a>.
506513

@@ -554,7 +561,7 @@ Computed Values</h3>
554561
<h3 id='used'>
555562
Used Values</h3>
556563

557-
The <dfn export>used value</dfn> is the result of taking the <a>computed value</a>
564+
The <dfn export local-lt="used">used value</dfn> is the result of taking the <a>computed value</a>
558565
and completing any remaining calculations to make it the absolute theoretical value
559566
used in the formatting of the document.
560567

@@ -624,7 +631,7 @@ Actual Values</h3>
624631
and may therefore have to approximate the <a lt="used value">used</a> width.
625632
Also, the font size of an element may need adjustment based on the availability of fonts
626633
or the value of the 'font-size-adjust' property.</span>
627-
The <dfn export>actual value</dfn> is the used value after any such adjustments have been made.
634+
The <dfn export local-lt="actual">actual value</dfn> is the used value after any such adjustments have been made.
628635

629636
Note: By probing the actual values of elements,
630637
much can be learned about how the document is laid out.

0 commit comments

Comments
 (0)