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

Unified Diff: LayoutTests/fast/repaint/composited-inline-repaint.html

Issue 434453002: Promote inlines to first-class invalidation citizens (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test and expectations Created 6 years, 5 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/composited-inline-repaint.html
diff --git a/LayoutTests/fast/repaint/composited-inline-repaint.html b/LayoutTests/fast/repaint/composited-inline-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..82cf66c954ba48c77243f3e9f502bd47d69efe60
--- /dev/null
+++ b/LayoutTests/fast/repaint/composited-inline-repaint.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+a {
+ /* Test needs to start with and maintain a layer for the inline. */
+ transition: all 1ms ease;
+ will-change: opacity;
+ opacity: 0.99;
+ color: red;
+ font-family: Ahem;
+}
+</style>
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<a id="test">Test passes if this text is green.</a>
+<script>
+onload = runRepaintTest;
+function repaintTest()
+{
+ document.getElementById('test').style.color = 'green';
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698