Skip to content

Commit fef9c15

Browse files
committed
test(selector-parsing): added tests
1 parent 4746d52 commit fef9c15

10 files changed

+1654
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"eslint-visitor-keys": "^4.0.0",
6060
"espree": "^10.0.0",
6161
"postcss": "^8.4.49",
62-
"postcss-scss": "^4.0.9"
62+
"postcss-scss": "^4.0.9",
63+
"postcss-selector-parser": "^7.0.0"
6364
},
6465
"devDependencies": {
6566
"@changesets/changelog-github": "^0.5.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script>
2+
let a = 10
3+
</script>
4+
5+
<span class="myClass">Hello!</span>
6+
7+
<b>{a}</b>
8+
9+
<style>
10+
.myClass {
11+
color: red;
12+
}
13+
14+
b {
15+
font-size: xx-large;
16+
}
17+
18+
a:active,
19+
a::before,
20+
b + a,
21+
b + .myClass,
22+
a[data-key="value"] {
23+
color: blue;
24+
}
25+
</style>

0 commit comments

Comments
 (0)