right-113

Right with a value of 'inherit'

WeasyPrint

This browser

Assertion
The 'right' property sets a value of 'inherit'.

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: Right with a value of 'inherit'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-right">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#position-props">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'right' property sets a value of 'inherit'.">
10         <style type="text/css">
11             div
12             {
13                 direction: rtl;
14                 height: 1in;
15                 position: relative;
16             }
17             #wrapper
18             {
19                 width: 5in;
20             }
21             #div1
22             {
23                 border-right: 1in solid red;
24                 right: 100%;
25                 width: 1in;
26             }
27             div div
28             {
29                 border-right: 1in solid black;
30                 margin-right: -2in;
31                 right: inherit;
32             }
33         </style>
34     </head>
35     <body>
36         <p>Test passes if there is no red visible on the page.</p>
37         <div id="wrapper">
38             <div id="div1">
39                 <div></div>
40             </div>
41         </div>
42     </body>
43 </html>