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

Side by Side Diff: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html

Issue 2521193002: Make auto-scrollbar shrink-to-fit test more evil. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Make sure a parent block that fits content expands when a child adds an a uto scrollbar.</title> 2 <title>Make sure a parent block that fits content expands when a child adds an a uto scrollbar.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <div id="top" style="float:left; display:none;"> 5 <div id="top" style="float:left; display:none;">
6 <div id="scroller" style="overflow: auto; height: 100px;"> 6 <div id="scroller" style="overflow: auto; height: 100px;">
7 <div style="width: 100px; height: 200px; border: 2px solid blue;"></div> 7 <div style="width: 100px; height: 200px; border: 2px solid blue;"></div>
8 </div> 8 </div>
9 </div> 9 </div>
10 <script> 10 <script>
11 test(function() { 11 test(function() {
12 var topDiv = document.getElementById("top"); 12 var topDiv = document.getElementById("top");
13 var scroller = document.getElementById("scroller"); 13 var scroller = document.getElementById("scroller");
14 topDiv.offsetTop;
14 topDiv.style.display = "block"; 15 topDiv.style.display = "block";
15 topDiv.offsetTop;
16 assert_equals(scroller.clientWidth, scroller.scrollWidth); 16 assert_equals(scroller.clientWidth, scroller.scrollWidth);
17 }); 17 });
18 </script> 18 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698