@@ -21,6 +21,7 @@ spec:dom; type:dfn;
21
21
text:root; for:tree
22
22
text:find slottables
23
23
text:find flattened slottables
24
+ text:element; for:/
24
25
spec:html; type:element; text:style
25
26
spec:selectors-4; type:dfn;
26
27
text: static profile
@@ -69,7 +70,7 @@ Default Styles for Custom Elements</h2>
69
70
to create a stylesheet of "default element styles" for a given element.
70
71
This stylesheet applies across the entire document,
71
72
in all <a>shadow trees</a> ,
72
- and the rules in it apply at the <a>user agent origin</a> ,
73
+ and the rules in it apply at the <a>user- agent origin</a> ,
73
74
so author-level rules automatically win.
74
75
75
76
{{Window}} s gain a private slot <dfn attribute for=Window>\[[defaultElementStylesMap]]</dfn>
@@ -80,7 +81,7 @@ Default Styles for Custom Elements</h2>
80
81
81
82
Note: This implies, in particular,
82
83
that they apply to all <a>shadow trees</a> in every document,
83
- and that the declarations in them are from the <a>user agent origin</a> .
84
+ and that the declarations in them are from the <a>user- agent origin</a> .
84
85
85
86
For the purpose of the <a>cascade</a> ,
86
87
these stylesheets are ordered after the user agent's own stylesheets;
@@ -528,6 +529,15 @@ Slots and Slotted Elements in a Shadow Tree</h4>
528
529
and any deeper <a>slots</a> that their <a>slot</a> gets assigned to,
529
530
don't affect inheritance.
530
531
532
+ <!--
533
+ ████████ ████████ ████████ ████████ ██████ ██████ ███████ ████████ ████████ ████████
534
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
535
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
536
+ ██ ████████ ██████ ██████ ███████ ██████ ██ ██ ██ ████████ ██████ ██ ██
537
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
538
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
539
+ ██ ██ ██ ████████ ████████ ██████ ██████ ███████ ██ ████████ ████████
540
+ -->
531
541
532
542
<h3 id='shadow-names'>
533
543
Name-Defining Constructs and Inheritance</h3>
@@ -555,7 +565,7 @@ Name-Defining Constructs and Inheritance</h3>
555
565
and doesn't give surprising results.
556
566
557
567
If an at-rule or property defines a name that other CSS constructs can refer to it by,
558
- such as a 'font-family!!descriptor' name
568
+ such as a ''@font-face'' '@font-face/ font-family!!descriptor' name
559
569
or an ''@keyframes'' name,
560
570
it must be defined as a <dfn export for=CSS>tree-scoped name</dfn> .
561
571
[=Tree-scoped names=] are "global" within a particular [=node tree=] ;
@@ -576,8 +586,13 @@ Name-Defining Constructs and Inheritance</h3>
576
586
577
587
Whenever a [=tree-scoped reference=] is dereferenced
578
588
to find the CSS construct it is referencing,
579
- only the [=tree-scoped names=] associated with the same [=root=]
589
+ first search only the [=tree-scoped names=] associated with the same [=root=]
580
590
as the [=tree-scoped reference=] must be searched.
591
+ If no relevant [=tree-scoped name=] is found,
592
+ and the [=root=] is a [=shadow root=] ,
593
+ then repeat this search in the [=root=] 's [=host=]' s [=node tree=] .
594
+ (In other words, [=tree-scoped names=] "inherit" into descendant shadow trees,
595
+ so long as they don't define the same name themselves.)
581
596
582
597
<div class=issue>
583
598
TODO: Fix all the at-rules that define global names,
@@ -596,7 +611,7 @@ Name-Defining Constructs and Inheritance</h3>
596
611
<h4 id='shadow-names-serialization'>
597
612
Serialized Tree-Scoped References</h4>
598
613
599
- If a [=tree-scoped reference=] is [= serialized=] ,
614
+ If a [=tree-scoped reference=] is serialized,
600
615
it serializes only its value;
601
616
the associated [=root=] is lost.
602
617
0 commit comments