summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/selectors/active-selector-001.xht
blob: 677d1a1b4e3212d3e87e37176c9a27005fd7b32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Active pseudo-class matching</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
        <meta name="flags" content="interact" />
        <meta name="assert" content="Active pseudo-class selector matches any element which has been activated until it has been deactivated." />
        <style type="text/css">
            div:active
            {
                color: green;
            }
        </style>
    </head>
    <body>
        <p>Test passes if the "Filler Text" below is initially black, when it is activated it turns green, and it returns to black when it is deactivated.</p>
        <div>Filler Text</div>
    </body>
</html>