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

Side by Side Diff: LayoutTests/fast/scroll-behavior/bordered-container-child-scroll.html

Issue 568453002: Removing container's Left & Top border from computed scroll offset bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reduced layout test file contents from javascript, style and html content Created 6 years, 2 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 <style>
4 td {
5 width: 48px;
6 height: 48px;
7 outline: solid 1px red;
8 }
9 </style>
10 <div id="parent" style="width: 65px; height: 65px; border: solid 5px black; over flow: scroll;">
11 <table id="Grid" style="width: 150px; border-collapse: collapse;">
12 <tr>
13 <td></td>
14 <td></td>
15 </tr>
16 <tr>
17 <td></td>
18 <td></td>
19 </tr>
20 <tr>
21 <td></td>
22 <td></td>
23 <td></td>
24 </tr>
25 </table>
26 </div>
27 <script>
28 description('Issue crbug.com/295848: element.scrollIntoViewIfNeeded() does not scroll the entire element render box into view.');
29 if (window.testRunner)
30 testRunner.dumpAsText(true);
31
32 var parent = document.getElementById("parent");
33 var table = document.getElementById("Grid");
34
35 table.rows[1].cells[1].scrollIntoViewIfNeeded(false);
36 shouldBeEqualToNumber('parent.scrollTop', 50);
37 shouldBeEqualToNumber('parent.scrollLeft', 50);
38
39 table.rows[0].cells[0].scrollIntoViewIfNeeded(false);
40 shouldBeEqualToNumber('parent.scrollTop', 0);
41 shouldBeEqualToNumber('parent.scrollLeft', 0);
42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698