-
Notifications
You must be signed in to change notification settings - Fork 831
Expand file tree
/
Copy pathattribute-case.html
More file actions
60 lines (48 loc) · 1.13 KB
/
attribute-case.html
File metadata and controls
60 lines (48 loc) · 1.13 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Selectors: case-insensitivity</title>
<link rel="stylesheet" href="../styles.css">
<style>
</style>
<style class="editable">
li[class^="a"] {
background-color: yellow;
}
li[class^="a" i] {
color: red;
}
</style>
</head>
<body>
<section class="preview">
<h1>Case-insensitivity</h1>
<ul>
<li class="a">Item 1</li>
<li class="A">Item 2</li>
<li class="Ab">Item 3</li>
</ul>
</section>
<textarea class="playable playable-css" style="height: 200px;">
li[class^="a"] {
background-color: yellow;
}
li[class^="a" i] {
color: red;
}
</textarea>
<textarea class="playable playable-html" style="height: 160px;">
<h1>Case-insensitivity</h1>
<ul>
<li class="a">Item 1</li>
<li class="A">Item 2</li>
<li class="Ab">Item 3</li>
</ul>
</textarea>
<div class="playable-buttons">
<input id="reset" type="button" value="Reset">
</div>
</body>
<script src="../playable.js"></script>
</html>