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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-dynamic-changes-abspos.html

Issue 1811753003: Set m_{width,height}AvailableToChildrenChanged when scrollbars appear (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment Created 4 years, 9 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
3 <style>
4 body {
5 width: 400px;
6 height: 300px;
7 }
8
9 .flexbox {
10 display: flex;
11 }
12
13 .column {
14 flex-direction: column;
15 }
16
17 .flex11a {
18 flex: 1 1 auto;
19 }
20
21 .root {
22 height: 100px;
23 overflow-y: auto;
24 position: relative;
25 }
26
27 #abspos {
28 position: absolute;
29 left: 0;
30 right: 0;
31 top: 0;
32 height: 10px;
33 }
34 </style>
35
36
37 <p>This test should not have a horizontal scrollbar</p>
38
39 <div class="flexbox column">
40 <div class="flexbox">
41 <div class="flex11a">
42 <div class="root">
43 <div>
44 <div>
45 <div id="history"></div>
46 <div id="abspos"></div>
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52 </div>
53
54 <script>
55 onload = function() {
56 var historyEl = document.getElementById('history');
57 historyEl.offsetWidth;
58 historyEl.innerText = '\n\n\n\n\n\n\n\n';
59 };
60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698