before-after-001

Before, after applies to same selector

WeasyPrint

This browser

Flags
invalid
Assertion
Multiple pseudo-elements cannot be placed on the same selector.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Before, after applies to same selector</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content">
 7         <meta name="flags" content="invalid">
 8         <meta name="assert" content="Multiple pseudo-elements cannot be placed on the same selector.">
 9         <style type="text/css">
10             div
11             {
12                 color: red;
13             }
14             div:before:after
15             {
16                 content: 'FAIL FAIL';
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if there is no red visible on the page.</p>
22         <div></div>
23     </body>
24 </html>