border-width-011

border-width: inherit

WeasyPrint

This browser

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: border-width: inherit</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/border/width/001.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-style-properties">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties">
10   <style type="text/css">
11    body { border-width: 2em; }
12    p { border-width: inherit; border-style: solid; border-color: red; color: green; }
13   </style>
14  </head>
15  <body>
16   <p>This line should be green with no red present.</p>
17  
18 
19 </body>
20 </html>