Skip to content

Commit d0512ec

Browse files
committed
Added Selectors 5
1 parent 5b731d7 commit d0512ec

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

tests.js

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ import resizeObserver1 from './tests/resize-observer-1.js';
138138
import scrollAnimations1 from './tests/scroll-animations-1.js';
139139
import selectors3 from './tests/selectors-3.js';
140140
import selectors4 from './tests/selectors-4.js';
141+
import selectors5 from './tests/selectors-5.js';
141142
import svg2Coords from './tests/svg2-coords.js';
142143
import svg2Geometry from './tests/svg2-geometry.js';
143144
import svg2Interact from './tests/svg2-interact.js';
@@ -291,6 +292,7 @@ export default {
291292
'scroll-animations-1': scrollAnimations1,
292293
'selectors-3': selectors3,
293294
'selectors-4': selectors4,
295+
'selectors-5': selectors5,
294296
'svg2-coords': svg2Coords,
295297
'svg2-geometry': svg2Geometry,
296298
'svg2-interact': svg2Interact,

tests/selectors-5.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
export default {
2+
title: 'Selectors Level 5',
3+
links: {
4+
tr: 'selectors-5',
5+
dev: 'selectors-5',
6+
},
7+
status: {
8+
stability: 'experimental',
9+
},
10+
selectors: {
11+
':local-link()': {
12+
links: {
13+
tr: '#local-pseudo',
14+
dev: '#local-pseudo',
15+
},
16+
tests: [
17+
':local-link(1)',
18+
],
19+
},
20+
':state()': {
21+
links: {
22+
tr: '#custom-state',
23+
dev: '#custom-state',
24+
},
25+
tests: [':state(stuck)'],
26+
},
27+
'Reference selector': {
28+
links: {
29+
tr: '#idref-combinators',
30+
dev: '#idref-combinators',
31+
},
32+
tests: [
33+
'label /for/ input',
34+
],
35+
},
36+
},
37+
};

0 commit comments

Comments
 (0)