summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/generated-content/quotes-negative-001.xht
blob: b711b8b65aaf4e9707a5a47efcbc567d875624d6 (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
<!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: Quotes with negative depth</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
        <meta name="assert" content="When a 'close-quote' makes the depth negative then depth stays at 0. Insertion of a quote does not occur but the remainder of the content string is inserted." />
        <style type="text/css">
            div:before
            {
                content: "PASS" close-quote;
            }
            div
            {
                quotes: 'FAIL' 'FAIL' 'FAIL' 'FAIL';
            }
        </style>
    </head>
    <body>
        <p>Test passes if there are three instances of the word 'PASS' below. If there are any additional characters below this test fails.</p>
        <div>
            <div>
                <div></div>
            </div>
        </div>
    </body>
</html>