css_inclusion.test
3.62 KB
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
h3{color: red}. Baz
h4[fr]{text-decoration:underline;}(#bar). Foobar
*{color:red}bold*
"(foo)[en]{color:blue;}Foo":bar
#[fr](#foo){background:pink} Foobar
!(foo)[en]{border:1px solid #ccc}foo.png!
{color: blue}.|{font-weight:bold}.Baz|
(foo#bar){font-style:italic}[fr].|{background:red;}(bar#baz)[en].Baz|
----------------------------------------------------
[
["phrase", [
["block-tag", [
["tag", "h3"],
["modifier", [
["css", [["punctuation", "{"], ["property", "color"], ["punctuation", ":"], " red", ["punctuation", "}"]]]
]],
["punctuation", "."]
]],
" Baz"
]],
["phrase", [
["block-tag", [
["tag", "h4"],
["modifier", [
["punctuation", "["], ["lang", "fr"], ["punctuation", "]"],
["css", [["punctuation", "{"], ["property", "text-decoration"], ["punctuation", ":"], "underline", ["punctuation", ";"], ["punctuation", "}"]]],
["punctuation", "("], ["class-id", "#bar"], ["punctuation", ")"]
]],
["punctuation", "."]
]],
" Foobar"
]],
["phrase", [
["inline", [
["punctuation", "*"],
["modifier", [
["css", [["punctuation", "{"], ["property", "color"], ["punctuation", ":"], "red", ["punctuation", "}"]]]
]],
["bold", ["bold"]],
["punctuation", "*"]
]],
["link", [
["punctuation", "\""],
["modifier", [
["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"],
["punctuation", "["], ["lang", "en"], ["punctuation", "]"],
["css", [["punctuation", "{"], ["property", "color"], ["punctuation", ":"], "blue", ["punctuation", ";"], ["punctuation", "}"]]]
]],
["text", "Foo"],
["punctuation", "\""], ["punctuation", ":"],
["url", "bar"]
]]
]],
["phrase", [
["list", [
["punctuation", "#"],
["modifier", [
["punctuation", "["], ["lang", "fr"], ["punctuation", "]"],
["punctuation", "("], ["class-id", "#foo"], ["punctuation", ")"],
["css", [["punctuation", "{"], ["property", "background"], ["punctuation", ":"], "pink", ["punctuation", "}"]]]
]],
" Foobar"
]]
]],
["phrase", [
["image", [
["punctuation", "!"],
["modifier", [
["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"],
["punctuation", "["], ["lang", "en"], ["punctuation", "]"],
["css", [["punctuation", "{"], ["property", "border"], ["punctuation", ":"], "1px solid #ccc", ["punctuation", "}"]]]
]],
["source", "foo.png"],
["punctuation", "!"]
]]
]],
["phrase", [
["table", [
["modifier", [
["css", [["punctuation", "{"], ["property", "color"], ["punctuation", ":"], " blue", ["punctuation", "}"]]]
]],
["punctuation", "."], ["punctuation", "|"],
["modifier", [
["css", [["punctuation", "{"], ["property", "font-weight"], ["punctuation", ":"], "bold", ["punctuation", "}"]]]
]],
["punctuation", "."], "Baz", ["punctuation", "|"],
["modifier", [
["punctuation", "("], ["class-id", "foo#bar"], ["punctuation", ")"],
["css", [["punctuation", "{"], ["property", "font-style"], ["punctuation", ":"], "italic", ["punctuation", "}"]]],
["punctuation", "["], ["lang", "fr"], ["punctuation", "]"]
]],
["punctuation", "."], ["punctuation", "|"],
["modifier", [
["css", [["punctuation", "{"], ["property", "background"], ["punctuation", ":"], "red", ["punctuation", ";"], ["punctuation", "}"]]],
["punctuation", "("], ["class-id", "bar#baz"], ["punctuation", ")"],
["punctuation", "["], ["lang", "en"], ["punctuation", "]"]
]],
["punctuation", "."], "Baz", ["punctuation", "|"]
]]
]]
]
----------------------------------------------------
Checks for CSS modifier.