Skip to content

Commit

Permalink
Added Selectors 5
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Aug 29, 2024
1 parent 5b731d7 commit d0512ec
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ import resizeObserver1 from './tests/resize-observer-1.js';
import scrollAnimations1 from './tests/scroll-animations-1.js';
import selectors3 from './tests/selectors-3.js';
import selectors4 from './tests/selectors-4.js';
import selectors5 from './tests/selectors-5.js';
import svg2Coords from './tests/svg2-coords.js';
import svg2Geometry from './tests/svg2-geometry.js';
import svg2Interact from './tests/svg2-interact.js';
Expand Down Expand Up @@ -291,6 +292,7 @@ export default {
'scroll-animations-1': scrollAnimations1,
'selectors-3': selectors3,
'selectors-4': selectors4,
'selectors-5': selectors5,
'svg2-coords': svg2Coords,
'svg2-geometry': svg2Geometry,
'svg2-interact': svg2Interact,
Expand Down
37 changes: 37 additions & 0 deletions tests/selectors-5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export default {
title: 'Selectors Level 5',
links: {
tr: 'selectors-5',
dev: 'selectors-5',
},
status: {
stability: 'experimental',
},
selectors: {
':local-link()': {
links: {
tr: '#local-pseudo',
dev: '#local-pseudo',
},
tests: [
':local-link(1)',
],
},
':state()': {
links: {
tr: '#custom-state',
dev: '#custom-state',
},
tests: [':state(stuck)'],
},
'Reference selector': {
links: {
tr: '#idref-combinators',
dev: '#idref-combinators',
},
tests: [
'label /for/ input',
],
},
},
};

0 comments on commit d0512ec

Please sign in to comment.