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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-transform-changed-nolayout.html

Issue 2600593002: Fix touch event flag may not be updated correctly by transform which causes no layout (Closed)
Patch Set: spv2 failure added in FlagExpectations Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-transform-changed-nolayout.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-transform-changed-nolayout.html b/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-transform-changed-nolayout.html
new file mode 100644
index 0000000000000000000000000000000000000000..80f0b5bed48403acc957a0296ae3a95c1ee3a5b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-transform-changed-nolayout.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+#box {
+ position: absolute;
+ top: 100px;
+ left: 100px;
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+}
+</style>
+
+<p id="description">
+This test verifies the touch event target rects are updated correctly when
+an element transfroms without causing layout.
+</p>
+
+<div id="tests">
+ <div id="box"></div>
+</div>
+<div id="console" style="display:none;"></div>
+
+<script src="resources/compositor-touch-hit-rects.js"></script>
+<script>
+
+const box = document.getElementById("box");
+box.addEventListener("touchstart", () => {}, false);
+internals.forceCompositingUpdate(document);
+logRects(box, true);
+
+// The box should be able to translate to a new location
+box.style.transform = "translate(50px,0px)";
+internals.forceCompositingUpdate(document);
+logRects(box, true);
+
+document.getElementById("console").style.display = "block";
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698