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

Unified Diff: third_party/WebKit/Source/core/paint/test_data/fixed-position.html

Issue 1407543003: Preliminary paint property walk implementation for SPv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address the feedback Created 5 years, 2 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/Source/core/paint/test_data/fixed-position.html
diff --git a/third_party/WebKit/Source/core/paint/test_data/fixed-position.html b/third_party/WebKit/Source/core/paint/test_data/fixed-position.html
new file mode 100644
index 0000000000000000000000000000000000000000..e1c5393c80f4ecbe8654c003cee7dea57aac75fb
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/test_data/fixed-position.html
@@ -0,0 +1,38 @@
+<style>
jbroman 2015/10/21 15:33:35 The test data files still need to be added to webk
jbroman 2015/10/21 16:18:20 And/or WebKitUnitTests.isolate. I have no idea why
trchen 2015/10/21 22:21:14 Done. My guess is that because on Android the pack
+.positioned-scroll {
+ position: absolute;
+ left: 100px;
+ top: 50px;
+ width: 400px;
+ height: 300px;
+ overflow: scroll;
+}
+
+.bloat {
+ height: 10000px;
+}
+
+.fixed {
+ position: fixed;
+ left: 200px;
+ top: 150px;
+ width: 100px;
+ height: 100px;
+}
+
+.transformed-scroll {
+ transform: scaleX(2);
+ width: 400px;
+ height: 300px;
+ overflow: scroll;
+}
+</style>
+<div class="positioned-scroll">
+ <div class="bloat"></div>
+ <div class="fixed" id="target1"></div>
+</div>
+<div class="transformed-scroll" id="scroller">
+ <div class="bloat"></div>
+ <div class="fixed" id="target2"></div>
+</div>
+This test verifies fixed-position elements correctly skip scrolling and adhere to transformed container.

Powered by Google App Engine
This is Rietveld 408576698