right-offset-004

right box offset - position relative

WeasyPrint

This browser

Flags
image
Assertion
The 'right' property, for relative positioning, specifies the offset of the box itself from its normal in-flow position, from the position it would have had if it had been static.

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: right box offset - position relative</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" title="9.3.2 Box offsets: 'top', 'right', 'bottom', 'left'" href="http://www.w3.org/TR/CSS21/visuren.html#position-props">
10   <meta content="image" name="flags">
11   <meta content="The 'right' property, for relative positioning, specifies the offset of the box itself from its normal in-flow position, from the position it would have had if it had been static." name="assert">
12 
13   <style type="text/css">
14   img#rel-pos-overlapping-green
15   {
16   position: relative;
17   right: 100px;
18   }
19   </style>
20 
21  </head>
22 
23  <body>
24 
25   <p>Test passes if there is a filled bright green square and <strong>no red</strong>.</p>
26 
27   <div><img src="support/red_box.png" width="100" height="100" alt="Image download support must be enabled"><img id="rel-pos-overlapping-green" src="support/lime_color.png" width="100" height="100" alt="Image download support must be enabled"></div>
28 
29  </body>
30 </html>