background-iframes-001

Transparent IFrames

WeasyPrint

This browser

Assertion
An IFRAME's canvas is transparent.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3  <head>
 4   <title>CSS Test: Transparent IFrames</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/iframes/001.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background">
 8   <meta name="assert" content="An IFRAME's canvas is transparent.">
 9   <style type="text/css">
10    * { background: transparent; margin: 0; padding: 0; }
11    body { padding: 1em; }
12    p { margin: 1em; color: green; }
13    iframe { position: absolute; top: 0; left: 0; z-index: 1; margin: 0; }
14   </style>
15  </head>
16  <body>
17   <p>PASS</p>
18   <iframe src="support/background-iframes-001.html"><p>XXXX FAIL</p></iframe>
19  </body>
20 </html>