Skip to content

Commit

Permalink
Split nested rules test snapshots into different files
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed Apr 11, 2024
1 parent 7152a5d commit 76d64e4
Show file tree
Hide file tree
Showing 14 changed files with 1,892 additions and 1,866 deletions.
1,861 changes: 0 additions & 1,861 deletions tests/__snapshots__/nested-rules.test.ts.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`[[Mode: combined]] Nested rules tests: {source: ltr} processRuleNames: true 1`] = `
".test1 {
color: red;

.test2 {
padding: 5px;
width: 100%;
}
}

[dir="ltr"] .test1 {
left: 10px;

.test2 {
text-align: left;
}
}

[dir="rtl"] .test1 {
right: 10px;

.test2 {
text-align: right;
}
}

.test3 {
&.test4 {
color: black;
}

&.test5 {
padding: 5px
}
}

[dir="ltr"] .test3 {
left: 10px;

&.test4 {
margin-left: 20px;
}

&.test5 {
span {
text-align: left;
}
}
}

[dir="rtl"] .test3 {
right: 10px;

&.test4 {
margin-right: 20px;
}

&.test5 {
span {
text-align: right;
}
}
}

.test6 {
display: flex;

.global & {
color: white;

div {
margin: 0 auto;
}
}

.test7 {
.global & {
background-color: #FFF;

::after {
content: "";
display: block;
}
}
}
}

[dir="ltr"] .test6 {
.global & {
padding: 5px 10px 5px 5px;
border-left-color: #666;

div {
padding-left: 20px;
}
}

.test7 {
.global & {
::after {
text-align: left;
}
}
}
}

[dir="rtl"] .test6 {
.global & {
padding: 5px 5px 5px 10px;
border-right-color: #666;

div {
padding-right: 20px;
}
}

.test7 {
.global & {
::after {
text-align: right;
}
}
}
}

@supports (display: contents) and (display: grid) {
.test8 {
color: red;
}

[dir="ltr"] .test8 {
left: 10px;
text-align: left;
}

[dir="rtl"] .test8 {
right: 10px;
text-align: right;
}

@media screen and (max-width: 800px) {
[dir="ltr"] .test9 {
padding: 0 0.6em 0 1.7em;
}

[dir="rtl"] .test9 {
padding: 0 1.7em 0 0.6em;
}
}
}

@media screen and (max-width: 800px) {
@supports (display: contents) and (display: grid) {
[dir="ltr"] .test10 {
padding: 0 0.6em 0 1.7em;
}

[dir="rtl"] .test10 {
padding: 0 1.7em 0 0.6em;
}
}
}

.test11 {
.test12 {
@media screen and (min-width: 800px) {
color: red;
}
}
}

[dir="ltr"] .test11 {
.test13 {
text-align: right;
}

.test13-left {
content: "\\f007";
}

.test13-right {
content: "\\f010";
}
}

[dir="rtl"] .test11 {
.test13 {
text-align: left;
}

.test13-left {
content: "\\f010";
}

.test13-right {
content: "\\f007";
}
}

@mixin padding {
padding-left: 10px;
}

.test14 {
@include padding;
}"
`;
Loading

0 comments on commit 76d64e4

Please sign in to comment.