File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4008,11 +4008,23 @@ <h4 id=select-after-pseudo>Style the contents of slots (region-based
40084008would mean that 'P::first-line EM' is also valid and selects the parts
40094009of an EM that are rendered on the first line of a P.
40104010
4011+ < p > Another possibility might be to set styles on '::slot()' itself and
4012+ only rely on inheritance. (This is what is proposed by David Baron in
4013+ [[CSS-OVERFLOW-3]].) Elements inside a grid element then inherit from
4014+ the slot inside which they are, before they inherit from the grid
4015+ element itself.
4016+
40114017< p > Yet another possibility is a generic 'region()' pseudo-element:
40124018
40134019< pre > P::region(BODY::slot(c)) { color: yellow }
40144020EM::region(P::first-line) { font-weight: normal }</ pre >
40154021
4022+ < p > And [[CSS3-REGIONS]] proposes an at-rule, '@region':
4023+
4024+ < pre > @region ::slot(a) {
4025+ P {font-size: large}
4026+ }</ pre >
4027+
40164028< p > Note that the specificity of the different alternative selectors
40174029would not be the same. [[CSS3-REGIONS]] defines that the selector
40184030immediately after '@region' does not add specificity. In other words,
You can’t perform that action at this time.
0 commit comments