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

Unified Diff: LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html

Issue 889453002: Add a WebLayer:setScrollCompensationAdjustment between Blink and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add reftest Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html
diff --git a/LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html b/LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html
new file mode 100644
index 0000000000000000000000000000000000000000..3cf3bf5209fa4c0b17f5fefd39aefd3796df9e5a
--- /dev/null
+++ b/LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+#settings {
+ width: 100px;
+ height: 100px;
+ position: fixed;
+ top: 10px;
+ z-index:2;
+ background-color:red;
+}
+
+#header {
+ width:200px;
+ height:20px;
+ position:fixed;
+ right:100px;
+ top:100px;
+ z-index:3;
+ background-color:green;
+}
+</style>
+</head>
+
+<script>
+function runTest()
+{
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ window.scrollTo(0, 0.5)
+}
+</script>
+
+<body style="width:1000px;height:2000px;" onload="runTest()">
+<div id="settings" >
+ <div id="header">
+ </div>
+</div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698