Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!-- Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ --> |
michael@0 | 3 | <!-- This testcase has a relatively-positioned -moz-box element, which should |
michael@0 | 4 | form a containing block for its absolutely positioned child. Also: in |
michael@0 | 5 | this case, the child is taller than its container. --> |
michael@0 | 6 | <html> |
michael@0 | 7 | <head> |
michael@0 | 8 | <style> |
michael@0 | 9 | .box { display: -moz-box } |
michael@0 | 10 | .relpos_parent { |
michael@0 | 11 | position: relative; |
michael@0 | 12 | width: 100px; |
michael@0 | 13 | height: 100px; |
michael@0 | 14 | background: lightblue; |
michael@0 | 15 | } |
michael@0 | 16 | .abspos_child { |
michael@0 | 17 | position: absolute; |
michael@0 | 18 | left: 30px; |
michael@0 | 19 | top: 10px; |
michael@0 | 20 | width: 20px; |
michael@0 | 21 | height: 150px; |
michael@0 | 22 | background: purple; |
michael@0 | 23 | } |
michael@0 | 24 | </style> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <div class="box relpos_parent"> |
michael@0 | 28 | <div class="abspos_child"></div> |
michael@0 | 29 | </div> |
michael@0 | 30 | </body> |
michael@0 | 31 | </html> |