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

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

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Restore list box height calculation, fix scrollbar width factor Created 4 years, 6 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 <script src="../resources/js-test.js"></script>
3 <div id="top" style="float:left; display:none;">
4 <div id="scroller" style="overflow: auto; height: 100px;">
5 <div style="width: 100px; height: 200px; border: 2px solid blue;"></div>
6 </div>
7 </div>
8
9 <script>
10 description("Make sure a parent block that fits content expands when a child add s an auto scrollbar.");
11
12 var topDiv = document.getElementById("top");
13 var scroller = document.getElementById("scroller");
14 topDiv.style.display = "block";
15 topDiv.offsetTop;
16 shouldBe("scroller.clientWidth", "scroller.scrollWidth");
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698