File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,16 @@ without surrending all control.
50
50
Motivation {#motivation}
51
51
------------------------
52
52
53
- For obvious reasons,
54
- it's valuable to let the outside page style the internals of a shadow tree,
55
- at least in some limited ways.
56
- (The ubiquity of UA-specific pseudo-elements for the various input elements shows this.)
57
-
58
- The previous proposed method for doing so,
53
+ For custom elements to be fully useful and as capable as built-in elements
54
+ it should be possible for parts of them to be styled from outside.
55
+ Exactly what can be styled from outside should be controlled by the element author.
56
+ Also, it should be possible for a custom element to present a stable "API" for styling.
57
+ That is, the selector used to style a part of a custom element
58
+ should not expose or require knowledge of the internal details of the element.
59
+ The custom element author should be able to change the internal details of the element
60
+ while leaving the selectors untouched.
61
+
62
+ The previous proposed method for styling inside the shadow tree,
59
63
the >>> combinator,
60
64
turned out to be <em> too powerful</em> for its own good;
61
65
it exposed too much of a component's internal structure to scrutiny,
You can’t perform that action at this time.
0 commit comments