File tree 2 files changed +8
-2
lines changed
plugins/postcss-cascade-layers
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
### Unreleased
4
4
5
5
- Fix broken ` @keyframes ` in ` @layer ` .
6
- - Add support for ` @container ` as a conditional rule.
7
6
8
7
### 1.0.5 (July 8, 2022)
9
8
Original file line number Diff line number Diff line change @@ -6,10 +6,17 @@ export const WITH_SELECTORS_LAYER_NAME = 'csstools-layer-with-selector-rules';
6
6
export const ANONYMOUS_LAYER_SUFFIX = '6efdb677-bb05-44e5-840f-29d2175862fd' ;
7
7
export const IMPLICIT_LAYER_SUFFIX = 'b147acf6-11a6-4338-a4d0-80aef4cd1a2f' ;
8
8
9
+ // https://drafts.csswg.org/css-cascade-5/#layer-ordering
10
+ // Layers that are defined inside of a conditional group rule do not contribute to the layer order
11
+ // unless the condition is true or unless the conditional group rule can evaluate differently for different elements in the document.
12
+ //
13
+ // Since the layer order is global to the document,
14
+ // any layers defined inside an element-sensitive conditional group rule need to be accommodated
15
+ // when establishing the global layer order, regardless of the rule’s condition.
16
+ // Conditions that are global to the document, however (such as @media and @supports) can accommodate such @layer rules conditionally.
9
17
export const CONDITIONAL_ATRULES = [
10
18
'media' ,
11
19
'supports' ,
12
- 'container' ,
13
20
] ;
14
21
15
22
export const ATRULES_WITH_NON_SELECTOR_BLOCK_LISTS = [
You can’t perform that action at this time.
0 commit comments