border-style-applies-to-017

border-style: hidden applied to element with display table-row

WeasyPrint

This browser

Assertion
'border-style: hidden' must apply to all elements, including elements with display table-row. 'hidden' (border-style) is the same as 'none': the computed border width is zero.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: border-style: hidden applied to element with display table-row</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="author" title="Marc Pacheco" href="http://marc.baffl.co.uk/contact.php">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-style-properties">
11   <meta content="" name="flags">
12   <meta content="'border-style: hidden' must apply to all elements, including elements with display table-row. 'hidden' (border-style) is the same as 'none': the computed border width is zero." name="assert">
13 
14   <style type="text/css">
15   #table
16   {
17   border-collapse: collapse;
18   display: table;
19   }
20 
21   #test
22   {
23   border-color: red;
24   border-style: hidden;
25   display: table-row;
26   }
27 
28   #cell
29   {
30   display: table-cell;
31   height: 200px;
32   width: 200px;
33   }
34   </style>
35 
36  </head>
37 
38  <body>
39 
40   <p>There should be <strong>no red</strong>, not even thin red lines.</p>
41 
42   <div id="table">
43    <div id="test">
44     <div id="cell"></div>
45    </div>
46   </div>
47 
48  </body>
49 </html>