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

Unified Diff: LayoutTests/fast/repaint/transform-inline-layered-child.html

Issue 448793002: Unified invalidation for repaint-only style change of layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update requestAnimation-translation-leave-traces-expected.txt Created 6 years, 4 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/repaint/transform-inline-layered-child.html
diff --git a/LayoutTests/fast/repaint/transform-inline-layered-child.html b/LayoutTests/fast/repaint/transform-inline-layered-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ed3b868b2dbc2b34fbcee1c3ba8ff14a21213b8
--- /dev/null
+++ b/LayoutTests/fast/repaint/transform-inline-layered-child.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('box').style.transform = 'rotate(30deg)';
+}
+onload = runRepaintTest;
+</script>
+<style>
+#box {
+ position: absolute;
+ top: 100px;
+ left: 100px;
+ width: 100px;
+}
+#child {
+ position: relative;
+ left: 200px;
+ top: 200px;
+ font-family: Ahem;
+}
+</style>
+Tests if the inline layered child is correctly repainted when container's transform changes.
+Succeeds if the text is completely rotated leaving no residue at the original location.
+<div id="box">
+ <span id="child">A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</span>
+</div>

Powered by Google App Engine
This is Rietveld 408576698