|
| 1 | +/* tests compressed for easy testing */ |
| 2 | +/* http://mathiasbynens.be/notes/css-escapes */ |
| 3 | +/* will match elements with class=":`(" */ |
| 4 | +.\3A \`\({} |
| 5 | +/* will match elements with class="1a2b3c" */ |
| 6 | +.\31 a2b3c{} |
| 7 | +/* will match the element with id="#fake-id" */ |
| 8 | +#\#fake-id{} |
| 9 | +/* will match the element with id="---" */ |
| 10 | +#\---{} |
| 11 | +/* will match the element with id="-a-b-c-" */ |
| 12 | +#-a-b-c-{} |
| 13 | +/* will match the element with id="©" */ |
| 14 | +#©{} |
| 15 | +/* More tests from http://mathiasbynens.be/demo/html5-id */ |
| 16 | +html{font:1.2em/1.6 Arial;} |
| 17 | +code{font-family:Consolas;} |
| 18 | +li code{background:rgba(255, 255, 255, .5);padding:.3em;} |
| 19 | +li{background:orange;} |
| 20 | +#♥{background:lime;} |
| 21 | +#©{background:lime;} |
| 22 | +#“‘’”{background:lime;} |
| 23 | +#☺☃{background:lime;} |
| 24 | +#⌘⌥{background:lime;} |
| 25 | +#𝄞♪♩♫♬{background:lime;} |
| 26 | +#\?{background:lime;} |
| 27 | +#\@{background:lime;} |
| 28 | +#\.{background:lime;} |
| 29 | +#\3A \){background:lime;} |
| 30 | +#\3A \`\({background:lime;} |
| 31 | +#\31 23{background:lime;} |
| 32 | +#\31 a2b3c{background:lime;} |
| 33 | +#\<p\>{background:lime;} |
| 34 | +#\<\>\<\<\<\>\>\<\>{background:lime;} |
| 35 | +#\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\.{background:lime;} |
| 36 | +#\#{background:lime;} |
| 37 | +#\#\#{background:lime;} |
| 38 | +#\#\.\#\.\#{background:lime;} |
| 39 | +#\_{background:lime;} |
| 40 | +#\.fake\-class{background:lime;} |
| 41 | +#foo\.bar{background:lime;} |
| 42 | +#\3A hover{background:lime;} |
| 43 | +#\3A hover\3A focus\3A active{background:lime;} |
| 44 | +#\[attr\=value\]{background:lime;} |
| 45 | +#f\/o\/o{background:lime;} |
| 46 | +#f\\o\\o{background:lime;} |
| 47 | +#f\*o\*o{background:lime;} |
| 48 | +#f\!o\!o{background:lime;} |
| 49 | +#f\'o\'o{background:lime;} |
| 50 | +#f\~o\~o{background:lime;} |
| 51 | +#f\+o\+o{background:lime;} |
| 52 | + |
| 53 | +/* css-parse does not yet pass this test */ |
| 54 | +/*#\{\}{background:lime;}*/ |
0 commit comments