after-content-display-012

:after generated content - display table-column-group

WeasyPrint

This browser

Assertion
Generated content can have their own display value explicitly set in which case they behave as if they were real elements inserted just inside their associated element. Elements with 'display' set to 'table-column' or 'table-column-group' are not rendered (exactly as if they had 'display: none').

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: :after generated content - display table-column-group</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display">
11   <meta content="" name="flags">
12   <meta content="Generated content can have their own display value explicitly set in which case they behave as if they were real elements inserted just inside their associated element. Elements with 'display' set to 'table-column' or 'table-column-group' are not rendered (exactly as if they had 'display: none')." name="assert">
13 
14   <style type="text/css">
15   div:after
16   {
17   background-color: red;
18   color: yellow;
19   content: ".\0D FAIL";
20   display: table-column-group;
21   font-size: 2em;
22   }
23   </style>
24 
25  </head>
26 
27  <body>
28 
29   <p>Test passes if there is <strong>one "Filler text"</strong> and no red.</p>
30 
31   <div>Filler text</div>
32 
33  </body>
34 </html>