tab-size-integer-002

tab-size: -4

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Tab-size negative values are not allowed

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS Text Test: tab-size: -4</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-size negative values are not allowed" 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: 4;
25             tab-size: -4;
26         }
27     </style>
28 </head>
29 <body>
30     <p>The test passes if there is no red.</p>
31     <div class="container">
32         <pre class="red">	</pre>
33         <pre class="green">    </pre>
34     </div>
35 
36 
37 </body></html>