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

Side by Side Diff: LayoutTests/fast/dom/Element/scroll-width-hidden.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/scroll-width-hidden-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 visibility: hidden;
25 }
26 #scrollChild {
27 width: 150%;
28 height: 200px;
29 padding: 0px;
30 }
31 </style>
32 </head>
33 <body>
34 Tests that element.clientWidth of visible element with scrollbars return s proper values
35 <div id="scrollDiv" data-expected-client-width="190"><p id="scrollChild" ></p></div>
36 <p id="test-output"></p>
37 </body>
38 <script type="text/javascript">
39 window.checkLayout("div", document.getElementById("test-output"));
40 </script>
41 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/scroll-width-hidden-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698