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

Unified Diff: LayoutTests/fast/repaint/resize-with-border-clipped.html

Issue 948513004: Revert of Revert of Clip incremental invalidation rects for RenderBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 10 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/resize-with-border-clipped-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/resize-with-border-clipped.html
diff --git a/LayoutTests/fast/repaint/resize-with-border-clipped.html b/LayoutTests/fast/repaint/resize-with-border-clipped.html
new file mode 100644
index 0000000000000000000000000000000000000000..3ac6fa4d6b54502cc5ce52ce2b42e24dfd7951ce
--- /dev/null
+++ b/LayoutTests/fast/repaint/resize-with-border-clipped.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('target').style.width = '300px';
+ document.getElementById('target').style.height = '300px';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+#container {
+ position: absolute;
+ top: 100px;
+ left: 100px;
+ width: 200px;
+ height: 200px;
+ overflow: hidden;
+}
+#target {
+ width: 100px;
+ height: 100px;
+ border: green 10px solid;
+ background-color: blue;
+}
+</style>
+Tests invalidation when a box with border is resized within a clipping container.
+Passes if the result paint rects don't exceed the container.
+<div id="container">
+ <div id="target"></div>
+</div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/resize-with-border-clipped-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698