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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html

Issue 1837033002: Invalidate objects when their content box changes dimensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html b/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..c0e8c8ff67b1a2fa0afd1639059d84b78e3a1a25
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+img {
+ box-sizing: border-box;
+ width: 100px;
+}
+#tst {
+ padding: 30px;
+}
+</style>
+<p>crbug.com/597194: There should be two blue boxes of equal size below.</p>
+<img id="tst" src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="blue"/></svg>'>
+<img src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="blue"/></svg>'>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ document.getElementById('tst').style.padding = "0";
+}, true);
+</script>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698