tab-size-integer-003

tab-size: 0

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Tab should be rendered as 0 times the space character’s advance width (U+0020)

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS Text Test: tab-size: 0</title>
 4     <link href="mailto:david@openweb.io" rel="author" title="David Storey">
 5     <link href="mailto:rhauck@adobe.com" rel="reviewer" title="Rebecca Hauck">
 6     <link href="http://www.w3.org/TR/css-text-3/#tab-size" rel="help">
 7     <link href="reference/tab-size-integer-001-ref.htm" rel="match">
 8     <meta content="Tab should be rendered as 0 times the space character’s advance width (U+0020)" name="assert">
 9     <style type="text/css">
10         .container {
11             position: absolute;
12         }
13         .green {
14             position: absolute;
15             top: 0;
16             left: 0;
17             background: green;
18          }
19         .red {
20             position: absolute;
21             top: 0;
22             left: 0;
23             background: red;
24             tab-size: 0;
25         }
26     </style>
27 </head>
28 <body>
29     <p>The test passes if there is no red.</p>
30     <div class="container">
31         <pre class="red">	</pre>
32         <pre class="green">    </pre>
33     </div>
34 
35 
36 </body></html>