diff options
Diffstat (limited to 'node_modules/postcss-unnth/test/fixtures')
3 files changed, 81 insertions, 0 deletions
diff --git a/node_modules/postcss-unnth/test/fixtures/basic.actual.css b/node_modules/postcss-unnth/test/fixtures/basic.actual.css new file mode 100644 index 00000000..362f3558 --- /dev/null +++ b/node_modules/postcss-unnth/test/fixtures/basic.actual.css @@ -0,0 +1,27 @@ +:first-child { + color: red; +} + +p:first-child { + color: red; +} + +.foo:first-child { + color: red; +} + +.before1 .before2 > :first-child > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * + * > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * + * + .during1.during2 > .during3 { + color: red; +} diff --git a/node_modules/postcss-unnth/test/fixtures/basic.css b/node_modules/postcss-unnth/test/fixtures/basic.css new file mode 100644 index 00000000..8f8da788 --- /dev/null +++ b/node_modules/postcss-unnth/test/fixtures/basic.css @@ -0,0 +1,27 @@ +:nth-child(1) { + color: red; +} + +p:nth-child(1) { + color: red; +} + +.foo:nth-child(1) { + color: red; +} + +.before1 .before2 > :nth-child(1) > .during3 { + color: red; +} + +.before1 .before2 > :nth-child(2) > .during3 { + color: red; +} + +.before1 .before2 > :nth-child(3) > .during3 { + color: red; +} + +.before1 .before2 > .during1:nth-child(4).during2 > .during3 { + color: red; +} diff --git a/node_modules/postcss-unnth/test/fixtures/basic.expect.css b/node_modules/postcss-unnth/test/fixtures/basic.expect.css new file mode 100644 index 00000000..362f3558 --- /dev/null +++ b/node_modules/postcss-unnth/test/fixtures/basic.expect.css @@ -0,0 +1,27 @@ +:first-child { + color: red; +} + +p:first-child { + color: red; +} + +.foo:first-child { + color: red; +} + +.before1 .before2 > :first-child > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * + * > .during3 { + color: red; +} + +.before1 .before2 > :first-child + * + * + .during1.during2 > .during3 { + color: red; +} |
