forked from CourtBouillon/css-parsing-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet_bytes.json
126 lines (94 loc) · 4.18 KB
/
stylesheet_bytes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[
{"css_bytes": ""},
[[], "utf-8"],
{"css_bytes": "@\u00C3\u00A9",
"protocol_encoding": null, "environment_encoding": null},
[[["at-rule", "é", [], null]], "utf-8"],
{"css_bytes": "@\u00C3\u00A9"},
[[["at-rule", "é", [], null]], "utf-8"],
{"css_bytes": "@\u0000\u00E9\u0000",
"comment": "Untagged UTF-16, parsed as UTF-8"},
[[["at-rule", "���", [], null]], "utf-8"],
{"css_bytes": "\u00FF\u00FE@\u0000\u00E9\u0000",
"comment": "UTF-16 with a BOM"},
[[["at-rule", "é", [], null]], "utf-16le"],
{"css_bytes": "\u00FE\u00FF\u0000@\u0000\u00E9"},
[[["at-rule", "é", [], null]], "utf-16be"],
{"css_bytes": "@\u00E9"},
[[["at-rule", "�", [], null]], "utf-8"],
{"css_bytes": "@\u00E9", "protocol_encoding": "ISO-8859-2"},
[[["at-rule", "é", [], null]], "iso-8859-2"],
{"css_bytes": "@\u00E9", "protocol_encoding": "ISO-8859-5"},
[[["at-rule", "щ", [], null]], "iso-8859-5"],
{"css_bytes": "@\u00C3\u00A9", "protocol_encoding": "ISO-8859-2"},
[[["at-rule", "ĂŠ", [], null]], "iso-8859-2"],
{"css_bytes": "\u00EF\u00BB\u00BF @\u00C3\u00A9",
"protocol_encoding": "ISO-8859-2",
"comment": "BOM takes precedence over protocol"},
[[["at-rule", "é", [], null]], "utf-8"],
{"css_bytes": "@charset \"ISO-8859-5\"; @\u00E9"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "щ", [], null]],
"iso-8859-5"],
{"css_bytes": "@Charset \"ISO-8859-5\"; @\u00E9",
"comment": "@charset has to match an exact byte pattern"},
[[["at-rule", "Charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "�", [], null]],
"utf-8"],
{"css_bytes": "@charset \"ISO-8859-5\"; @\u00E9",
"comment": "@charset has to match an exact byte pattern"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "�", [], null]],
"utf-8"],
{"css_bytes": "@charset 'ISO-8859-5'; @\u00E9",
"comment": "@charset has to match an exact byte pattern"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "�", [], null]],
"utf-8"],
{"css_bytes": "@\u0000c\u0000h\u0000a\u0000r\u0000s\u0000e\u0000t\u0000 \u0000\"\u0000U\u0000T\u0000F\u0000-\u00001\u00006\u0000L\u0000E\u0000\"\u0000;\u0000@\u0000\u00e9\u0000",
"comment": "@charset has to be ASCII-compatible itself"},
[[["at-rule", "�c�h�a�r�s�e�t�",
[" ", ["ident", "�"], ["string", "�U�T�F�-�1�6�L�E�"], ["ident", "�"]], null],
["error", "invalid"]],
"utf-8"],
{"css_bytes": "@charset \"UTF-16LE\"; @\u00C3\u00A9",
"comment": "@charset can only specify ASCII-compatible encodings"},
[[["at-rule", "charset", [" ", ["string", "UTF-16LE"]], null],
["at-rule", "é", [], null]],
"utf-8"],
{"css_bytes": "\u00EF\u00BB\u00BF @charset \"ISO-8859-5\"; @\u00E9",
"comment": "BOM takes precedence over @charset"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "�", [], null]],
"utf-8"],
{"css_bytes": "\u00EF\u00BB\u00BF @charset \"ISO-8859-5\"; @\u00C3\u00A9",
"comment": "BOM takes precedence over @charset"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "é", [], null]],
"utf-8"],
{"css_bytes": "@charset \"ISO-8859-5\"; @\u00E9",
"protocol_encoding": " Iso-8859-2",
"comment": "Protocol takes precedence over @charset"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "é", [], null]],
"iso-8859-2"],
{"css_bytes": "@\u00E9", "environment_encoding": "ISO-8859-2"},
[[["at-rule", "é", [], null]], "iso-8859-2"],
{"css_bytes": "@\u00E9", "environment_encoding": "ISO-8859-5"},
[[["at-rule", "щ", [], null]], "iso-8859-5"],
{"css_bytes": "@charset \"ISO-8859-5\"; @\u00E9",
"environment_encoding": "ISO-8859-2",
"comment": "@character takes precedence over environment"},
[[["at-rule", "charset", [" ", ["string", "ISO-8859-5"]], null],
["at-rule", "щ", [], null]],
"iso-8859-5"],
{"css_bytes": "@\u00E9",
"protocol_encoding": "ISO-8859-2",
"environment_encoding": "ISO-8859-5",
"comment": "protocol takes precedence over environment"},
[[["at-rule", "é", [], null]], "iso-8859-2"],
{"css_bytes": "\u00EF\u00BB\u00BF @\u00C3\u00A9",
"environment_encoding": "ISO-8859-5",
"comment": "BOM takes precedence over environment"},
[[["at-rule", "é", [], null]], "utf-8"]
]