-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.css
More file actions
211 lines (169 loc) · 4.62 KB
/
test.css
File metadata and controls
211 lines (169 loc) · 4.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
* This is a test file only - it doesn't represent a usable style sheet,
* it is meant only to test the lexer and parser.
*/
@import url(foo.css);
@import "bar.css";
@import url("fineprint.css") print;
@import url("bluish.css") projection, tv;
@import url(http://www.steadystate.com/primary.css) screen, tv;
@import "sounds_good.css" aural;
E[class~="hipster"][thing~="bob"]#myid { att1: hi; foo: bar; }
E:lang(c)#unique
E.hipster#myid { att1: hi; foo: bar; }
@media tv, radio {
@page { foo: bar; }
H1 { fillcolor: blue }
}
/* @import url(bad_import.css); */
H1, H2 {color:green;background-color:blue}
H1, H2 {color: green;background-color: blue}
H3, H4 & H5 {
color: red;
a: red;
b: red;
c: red;
d: red;
e: red;
f: red;
g: red;
h: red;
i: red;
j: red;
k: red;
l: red;
m: red;
n: red;
o: red;
}
H6 { color: black }
H7 & H8 {
color: red;
@page { foo: bar }
}
P[example="public class foo\
{\
private int x;\
\
foo(int x) {\
this.x = x;\
}\
\
}"] { color: red }
H1 { color: red; font-style: 12pt } /* Invalid value: 12pt */
P { color: blue; font-vendor: any; /* Invalid prop.: font-vendor */
font-variant: small-caps }
EM EM { font-style: normal }
H1 { color: red; rotation: 70minutes }
IMG { float: left } /* correct CSS2 */
IMG { float: left here } /* "here" is not a value of 'float' */
IMG { background: "red" } /* keywords cannot be quoted in CSS2 */
IMG { border-width: 3 } /* a unit must be specified for length values */
@three-dee {
@background-lighting {
azimuth: 30deg;
elevation: 190deg;
}
H1 { color: red }
}
H1 { color: blue !important }
P {counter-increment: par-num ! important }
H1 {counter-reset: par-num}
P:before {content: counter(par-num, upper-roman) ". "}
EM { color: #f00 } /* #rgb */
EM { color: #ff0000 } /* #rrggbb */
EM { color: rgb(255,0,0) } /* integer range 0 - 255 */
EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */
FOO { content: "Argos\t\n" }
R1 { a: U+aaaaa-ffffff }
R2 { a: U+?????? }
R3 { a: U+f????? }
R4 { a: U+fffff? }
R5 { a: U+ffffff }
* {} /* a=0 b=0 c=0 -> specificity = 0 */
LI {} /* a=0 b=0 c=1 -> specificity = 1 */
UL LI {} /* a=0 b=0 c=2 -> specificity = 2 */
UL OL+LI {} /* a=0 b=0 c=3 -> specificity = 3 */
H1 + *[REL=up]{} /* a=0 b=1 c=1 -> specificity = 11 */
UL OL LI.red {} /* a=0 b=1 c=3 -> specificity = 13 */
LI.red.level {} /* a=0 b=2 c=1 -> specificity = 21 */
#x34y {} /* a=1 b=0 c=0 -> specificity = 100 */
DIV > P:first-child { text-indent: 0 }
HTML:lang(fr) { quotes: '« ' ' »' }
HTML:lang(de) { quotes: '»' '«' '\2039' '\203A' }
:lang(fr) > Q { quotes: '« ' ' »' }
:lang(de) > Q { quotes: '»' '«' '\2039' '\203A' }
H1 { bogus: alpha & beta }
H2 { foo: inherit; ;; }
/*
* Counters and stuff
*/
P {counter-increment: par-num}
H1 {counter-reset: par-num}
P:before {content: counter(par-num, upper-roman) ". "}
H1:before {
content: "Chapter " counter(chapter) ". ";
counter-increment: chapter; /* Add 1 to chapter */
counter-reset: section; /* Set section to 0 */
}
H2:before {
content: counter(chapter) "." counter(section) " ";
counter-increment: section;
}
OL { counter-reset: item }
LI { display: block }
LI:before { content: counters(item, "."); counter-increment: item }
H1:before { content: counter(chno, upper-latin) ". " }
H2:before { content: counter(section, upper-roman) " - " }
BLOCKQUOTE:after { content: " [" counter(bq, hebrew) "]" }
DIV.note:before { content: counter(notecntr, disc) " " }
P:before { content: counter(p, none) }
/*
* Content stuff (w/attr function)
*/
@media aural {
BLOCKQUOTE:after { content: url("beautiful-music.wav") }
}
IMG:before { content: attr(alt) }
H1:before {
display: block;
text-align: center;
content: "chapter\A hoofdstuk\A chapitre"
}
/*
* Clip (w/rect function)
*/
P { clip: rect(5px, 10px, 10px, 5px); }
P { clip: rect(5px, -5px, 10px, 5px); }
P { font-size: 12pt; line-height: 12pt }
P:first-letter {
font-size: 200%;
font-style: italic;
font-weight: bold;
float: left;
bogus: foo(p1, p2, "hello", url(primary.css))
}
SPAN { text-transform: uppercase }
P { color: red; font-size: 12pt }
P:first-letter { color: green; font-size: 200% }
P:first-line { color: blue }
/*
* Bug 1226128 (Escaping)
*/
P {
content: "This it the first line\
And this is a continuation of the line"
}
/*
* Bug 1219753 (underscores)
*/
.infohome{
background-image: url(footer_info_home.gif);
height: 53px;
background-repeat: no-repeat;
}
.info_home{
background-image: url(footer_info_home.gif);
height: 53px;
background-repeat: no-repeat;
}