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

Side by Side Diff: LayoutTests/fast/layout/border-image-outset-no-relayout.html

Issue 561303002: Style changes to visual overflow do not require a layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 div {
4 border-width: 21px 30px 30px 21px;
5 width: 75px;
6 height: 75px;
7 display: inline-block;
8 border-image-source: url("../borders/resources/border-image.png");
9 border-image-slice: 21 30 30 21 fill;
10 border-image-width: 1;
11 border-image-outset: 1;
12 }
13 </style>
14 <script src="../../resources/js-test.js"></script>
15 <div id="test"></div>
16 <script>
17 // Force style recalc and layout.
18 document.body.offsetTop;
19
20 if (window.internals)
21 shouldBe("window.internals.needsLayoutCount()", "0", true);
22
23 // Changing border-image-outset will cause a repaint but no layout.
24 document.getElementById("test").style['border-image-outset'] = '5';
25
26 if (window.internals) {
27 shouldBe("window.internals.needsLayoutCount()", "0", true);
28 }
29 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/layout/border-image-outset-no-relayout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698