OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 #container { | |
4 position: relative; | |
5 width: 500px; | |
6 height: 500px; | |
7 background: #C0C0C0; | |
8 border-width: 150px 150px; | |
mstensho (USE GERRIT)
2016/02/09 09:08:51
This has no effect with border-style being none, s
| |
9 } | |
10 #parent { | |
11 position: absolute; | |
12 top: 0; | |
13 bottom: 0; | |
14 left: 0; | |
15 right: 0; | |
16 border: 0px solid rgba(255, 255, 255, .5); | |
17 border-width: 150px 150px; | |
mstensho (USE GERRIT)
2016/02/09 09:08:51
This overrides the width set in the shorthand abov
| |
18 } | |
19 #parent div { | |
mstensho (USE GERRIT)
2016/02/09 09:08:51
looks like #child to me. :)
| |
20 position: absolute; | |
21 left: 1px; | |
22 top: 1px; | |
23 right: 1px; | |
24 bottom: 1px; | |
25 border: 1px solid #000; | |
26 } | |
27 </style> | |
28 <script src="../../../resources/check-layout.js"></script> | |
29 <p>crbug.com/581612: Changing block-direction border width on a positioned eleme nt with auto height should flex the height of its descendants.</p> | |
mstensho (USE GERRIT)
2016/02/09 09:08:51
How about a human observable pass condition? There
| |
30 <div id="console"></div> | |
31 <div id="container"> | |
32 <div id="parent"> | |
33 <div id="child" data-expected-height=338></div> | |
34 </div> | |
35 </div> | |
36 <script> | |
37 document.body.offsetTop; | |
38 document.getElementById('parent').style.borderTopWidth = '10px'; | |
39 checkLayout('#child', document.getElementById('console')); | |
40 </script> | |
OLD | NEW |