Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/positioning/positioned-container-changes-block-direction-border-with-positioned-descendant.html

Issue 1674323002: Detect a change in border that affects a positioned object's height or position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #container {
4 position: relative;
5 width: 200px;
6 height: 200px;
7 background: red;
8 }
9 #parent {
10 position: absolute;
11 top: 0;
12 bottom: 0;
13 left: 0;
14 right: 0;
15 border: solid green;
16 border-width: 50px 50px;
17 }
18 #parent div {
19 position: absolute;
20 left: 0px;
21 top: 0px;
22 right: 0px;
23 bottom: 0px;
24 background-color:green;
25 }
26 </style>
27 <script src="../../../resources/check-layout.js"></script>
28 <p>crbug.com/581612: Changing block-direction border width on a positioned eleme nt with auto height should flex the height of its descendants. There should be n o red.</p>
29 <div id="console"></div>
30 <div id="container">
31 <div id="parent">
32 <div id="child" data-expected-height=140></div>
33 </div>
34 </div>
35 <script>
36 document.body.offsetTop;
37 document.getElementById('parent').style.borderTopWidth = '10px';
38 checkLayout('#child', document.getElementById('console'));
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698