forked from meyerweb/css-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attribute-bar.html
41 lines (36 loc) · 1.13 KB
/
attribute-bar.html
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
<!DOCTYPE html>
<html>
<head>
<title>CSS test</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="c/style-insert-tests.css">
<style type="text/css" media="all">
li img {height: 1.5em;}
</style>
<style type="text/css" media="all" id="tests">
li[lang|="en"] {color: green;}
li[class|="select"] {color: green;}
img[src|="i/tester"] {border: 5px solid green;}
li::after {font: 0.9em monospace, serif; margin-left: 0.5ch;}
li[lang]::after {content: attr(lang);}
li[class]::after {content: attr(class);}
</style>
</head>
<body>
<div>
<ol>
<li lang="en">List item, language</li>
<li lang="en-US">List item, language</li>
<li lang="en-US-GL">List item, language</li>
<li class="select">List item, class</li>
<li class="select-me">List item, class</li>
<li class="select-me please">List item, class</li>
<li class="select-me-please">List item, class</li>
<li class="please select-me">List item, class</li>
<li class="please select me">List item, class</li>
<li><img src="i/tester.jpg"> Image, source <code>tester.jpg</code></li>
<li><img src="i/tester-sm.jpg"> Image, source <code>tester-sm.jpg</code></li>
</ol>
</div>
</body>
</html>