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

Side by Side Diff: LayoutTests/fast/dom/Element/scroll-width-visible.html

Issue 163383002: Scrollbar width is not applied when element hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to latest Created 6 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 <html>
3 <head>
4 <script src="../../../resources/check-layout.js"></script>
5 <style type="text/css">
6 ::-webkit-scrollbar {
7 width: 10px;
8 height: 10px;
9 }
10 ::-webkit-scrollbar-thumb {
11 border-radius: 4px;
12 background-color: #CCCCCC;
13 -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
14 }
15 div {
16 position: absolute;
17 top: 200px;
18 left: 0px;
19 background-color: red;
20 width: 200px;
21 height: 150px;
22 padding: 0px;
23 overflow: scroll;
24 }
25 #scrollChild {
26 width: 150%;
27 height: 200px;
28 padding: 0px;
29 }
30 </style>
31 </head>
32 <body>
33 Tests that element.clientWidth of visible element with scrollbars return s proper values
34 <div id="scrollDiv" data-expected-client-width="190"><p id="scrollChild" ></p></div>
35 <p id="test-output"></p>
36 </body>
37 <script type="text/javascript">
38 window.checkLayout("div", document.getElementById("test-output"));
39 </script>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698