blob: c439f2bf4f00656dfa332ba4c3a16fa857b88b0f (
plain)
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
|
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#test {
color: red;
}
/* Adding/removing the green-class on #test should refresh the rule-view when #test is
selected */
#test.green-class {
color: green;
}
/* Adding/removing the purple-class on #parent should refresh the rule-view when #test is
selected */
#parent.purple-class #test {
color: purple;
}
/* Adding/removing the blue-class on #sibling should refresh the rule-view when #test is
selected*/
#sibling.blue-class + #test {
color: blue;
}
</style>
<div id="parent">
<div>
<div id="sibling"></div>
<div id="test">test</div>
</div>
</div>
|