You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/parse-css/tests/samples/nth-syntax/input.css

41 lines
603 B

/* test that all these are parsed correctly */
h1:nth-of-type(2n + 1) {
background: red;
}
h1:nth-child(-n + 3 of li.important) {
background: red;
}
h1:nth-child(1) {
background: red;
}
h1:nth-child(p) {
background: red;
}
h1:nth-child(n + 7) {
background: red;
}
h1:nth-child(even) {
background: red;
}
h1:nth-child(odd) {
background: red;
}
h1:nth-child(n) {
background: red;
}
h1:global(nav) {
background: red;
}
h1:nth-of-type(10n + 1) {
background: red;
}
h1:nth-of-type(-2n + 3) {
background: red;
}
h1:nth-of-type(+ 12) {
background: red;
}
h1:nth-of-type(+ 3n) {
background: red;
}