Skip to content

Commit 836045c

Browse files
authored
nesting: @starting-style (#1059)
1 parent 4d0f3be commit 836045c

7 files changed

Lines changed: 42 additions & 5 deletions

File tree

plugins/postcss-nesting/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to PostCSS Nesting
22

3+
### Unreleased (patch)
4+
5+
- Fix nesting of `@starting-style` rules
6+
37
### 12.0.0
48

59
_July 3, 2023_

plugins/postcss-nesting/dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugins/postcss-nesting/dist/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ['container', 'document', 'media', 'supports', 'layer'];
1+
export default ['container', 'document', 'media', 'supports', 'layer', 'starting-style'];

plugins/postcss-nesting/test/basic.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,12 @@ a {
233233

234234
declaration: 2;
235235
}
236+
237+
h1 {
238+
transition: background-color 1.5s;
239+
background-color: green;
240+
241+
@starting-style {
242+
background-color: transparent;
243+
}
244+
}

plugins/postcss-nesting/test/basic.expect.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,16 @@ a b[a="a&b"] {
214214
declaration: 2;
215215
}
216216

217-
@layer foo
217+
@layer foo;
218+
219+
h1 {
220+
transition: background-color 1.5s;
221+
background-color: green;
222+
}
223+
224+
@starting-style {
225+
226+
h1 {
227+
background-color: transparent;
228+
}
229+
}

plugins/postcss-nesting/test/basic.no-is-pseudo-selector.expect.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,16 @@ a b[a="a&b"] {
214214
declaration: 2;
215215
}
216216

217-
@layer foo
217+
@layer foo;
218+
219+
h1 {
220+
transition: background-color 1.5s;
221+
background-color: green;
222+
}
223+
224+
@starting-style {
225+
226+
h1 {
227+
background-color: transparent;
228+
}
229+
}

0 commit comments

Comments
 (0)