before-content-display-018

:before generated content - initial value of display

WeasyPrint

This browser

Assertion
The initial value of the 'display' for generated content property is 'inline'.

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: :before generated content - initial value of display </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   <meta content="" name="flags">
11   <meta content="The initial value of the 'display' for generated content property is 'inline'." name="assert">
12 
13   <style type="text/css">
14   div:before
15   {
16   content: "Filler text ";
17   }
18   </style>
19 
20  </head>
21 
22  <body>
23 
24   <p>Test passes if the 2 "Filler text" are both <strong>on the same line</strong>.</p>
25 
26   <div>Filler text</div>
27 
28  </body>
29 </html>