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

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: 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: 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698