Skip to content

Commit 8b93fd1

Browse files
committed
Consolidate all selector specs into one file
1 parent 18b91d4 commit 8b93fd1

File tree

4 files changed

+59
-51
lines changed

4 files changed

+59
-51
lines changed

spec/css/selector.hrx

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<===> attribute/dash_dash/input.scss
2+
// Attribute selector values are allowed to be unquoted as long as they're plain
3+
// CSS identifiers. However, IE 11 doesn't recognize custom-property-style
4+
// identifiers like `--foo` as identifiers, so they should always be quoted.
5+
6+
[class="--foo"], [class*="--foo"] {
7+
x: y;
8+
}
9+
10+
<===> attribute/dash_dash/output.css
11+
[class="--foo"], [class*="--foo"] {
12+
x: y;
13+
}
14+
15+
<===>
16+
================================================================================
17+
<===> reference_combinator/options.yml
18+
---
19+
:todo:
20+
- libsass
21+
22+
<===> reference_combinator/input.scss
23+
// Reference combinators used to be supported by Sass when they were part of the
24+
// CSS spec, but they're no longer supported and should now produce errors.
25+
.foo /bar/ .baz {
26+
a: b;
27+
}
28+
29+
<===> reference_combinator/error
30+
Error: expected selector.
31+
,
32+
3 | .foo /bar/ .baz{
33+
| ^
34+
'
35+
input.scss 3:6 root stylesheet
36+
37+
<===>
38+
================================================================================
39+
<===> slotted/input.scss
40+
::slotted(.a) {x: y}
41+
42+
::slotted(.c.d) {x: y}
43+
.e {@extend .c}
44+
45+
::slotted(.f) {x: y}
46+
::slotted(.g) {@extend .f}
47+
48+
<===> slotted/output.css
49+
::slotted(.a) {
50+
x: y;
51+
}
52+
53+
::slotted(.c.d, .d.e) {
54+
x: y;
55+
}
56+
57+
::slotted(.f, ::slotted(.g)) {
58+
x: y;
59+
}

spec/css/selector/attribute/dash-dash.hrx

Lines changed: 0 additions & 13 deletions
This file was deleted.

spec/css/selector/reference_combinator.hrx

Lines changed: 0 additions & 17 deletions
This file was deleted.

spec/css/selector/slotted.hrx

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)