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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/layout/border-image-outset-no-relayout.html
diff --git a/LayoutTests/fast/layout/border-image-outset-no-relayout.html b/LayoutTests/fast/layout/border-image-outset-no-relayout.html
new file mode 100644
index 0000000000000000000000000000000000000000..94604da7af680dc62f78b67c1e9ddb6d1b5d87a1
--- /dev/null
+++ b/LayoutTests/fast/layout/border-image-outset-no-relayout.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+ div {
+ border-width: 21px 30px 30px 21px;
+ width: 75px;
+ height: 75px;
+ display: inline-block;
+ border-image-source: url("../borders/resources/border-image.png");
+ border-image-slice: 21 30 30 21 fill;
+ border-image-width: 1;
+ border-image-outset: 1;
+ }
+</style>
+<script src="../../resources/js-test.js"></script>
+<div id="test"></div>
+<script>
+// Force style recalc and layout.
+document.body.offsetTop;
+
+if (window.internals)
+ shouldBe("window.internals.needsLayoutCount()", "0", true);
+
+// Changing border-image-outset will cause a repaint but no layout.
+document.getElementById("test").style['border-image-outset'] = '5';
+
+if (window.internals) {
+ shouldBe("window.internals.needsLayoutCount()", "0", true);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698