quotes-page-001

Quotes not affected by page level quotes

WeasyPrint

This browser

Assertion
The page content quotes do not affect the depth of generated quotes.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Quotes not affected by page level quotes</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The page content quotes do not affect the depth of generated quotes.">
 9         <style type="text/css">
10             #test
11             {
12                 border: solid blue;
13                 quotes: '"' '"' "'" "'";
14             }
15             #test div:before
16             {
17                 content: open-quote;
18             }
19             #test div:after
20             {
21                 content: close-quote;
22             }
23             #reference
24             {
25                 border: solid orange;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the characters in the blue box exactly match the characters in the orange box.</p>
31         <div id="test">
32             "document level open quote
33             <div>first open generated quote
34                 <div>second set of quotes</div>
35             close first generated quote</div>
36             document level close quote"
37         </div>
38         <div id="reference">
39             "document level open quote
40             <div>"first open generated quote
41                 <div>'second set of quotes'</div>
42             close first generated quote"</div>
43             document level close quote"
44         </div>
45     </body>
46 </html>