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

Unified Diff: LayoutTests/paint/invalidation/percentage-transform-paint-offset.html

Issue 1355753008: RuntimeEnabledFeatures::slimmingPaintOffsetCaching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/paint/invalidation/percentage-transform-paint-offset.html
diff --git a/LayoutTests/paint/invalidation/percentage-transform-paint-offset.html b/LayoutTests/paint/invalidation/percentage-transform-paint-offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..7122fd61439241310281d9879432a500f7289e7a
--- /dev/null
+++ b/LayoutTests/paint/invalidation/percentage-transform-paint-offset.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+onload = function() {
+ runAfterLayoutAndPaint(function() {
+ document.getElementById('container-outer').style.width = '600px';
+ }, true);
+};
+</script>
+<style>
+#container-outer {
+ background-color: red;
+ height: 300px;
+ transform: translateX(400%);
+ width: 400px;
+}
+#container-inner {
+ background-color: green;
+ height: 300px;
+ left: -400%;
+ position: absolute;
+ width: 100%;
+}
+#content {
+ background-color: blue;
+ height: 300px;
+ width: 300px;
+}
+</style>
+Tests paint invalidation on resize of container with percentage-transform (causing change of paint offset, but no change of paint invalidation offset). Passes if there is a blue square and a green square side-by-side.
+<div style="overflow: hidden; width: 700px; height: 500px"><!-- to avoid scrollbar -->
+ <div id="container-outer">
+ <div id="container-inner">
+ <div id="content"></div>
+ </div>
+ </div>
+</div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/paint/invalidation/percentage-transform-paint-offset-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698