OLD | NEW |
(Empty) | |
| 1 foo:after { |
| 2 foo::first-letter { |
| 3 |
| 4 foo:nth-child(2n+1) { |
| 5 |
| 6 foo.bar { |
| 7 |
| 8 foo#bar { |
| 9 |
| 10 #foo > .bar:not(baz):after { |
| 11 |
| 12 ---------------------------------------------------- |
| 13 |
| 14 [ |
| 15 ["selector", [ |
| 16 "foo", |
| 17 ["pseudo-element", ":after"] |
| 18 ]], ["punctuation", "{"], |
| 19 |
| 20 ["selector", [ |
| 21 "foo", |
| 22 ["pseudo-element", "::first-letter"] |
| 23 ]], ["punctuation", "{"], |
| 24 |
| 25 ["selector", [ |
| 26 "foo", |
| 27 ["pseudo-class", ":nth-child(2n+1)"] |
| 28 ]], ["punctuation", "{"], |
| 29 |
| 30 ["selector", [ |
| 31 "foo", |
| 32 ["class", ".bar"] |
| 33 ]], ["punctuation", "{"], |
| 34 |
| 35 ["selector", [ |
| 36 "foo", |
| 37 ["id", "#bar"] |
| 38 ]], ["punctuation", "{"], |
| 39 |
| 40 ["selector", [ |
| 41 ["id", "#foo"], |
| 42 " > ", |
| 43 ["class", ".bar"], |
| 44 ["pseudo-class", ":not(baz)"], |
| 45 ["pseudo-element", ":after"] |
| 46 ]], ["punctuation", "{"] |
| 47 ] |
| 48 |
| 49 ---------------------------------------------------- |
| 50 |
| 51 Checks for pseudo-elements, pseudo-classes, classes and ids inside selectors. |
OLD | NEW |