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

Unified Diff: LayoutTests/fast/sub-pixel/nested-sub-pixel-composited-layers.html

Issue 204053002: Fix pixel snapping of stacked sub-pixel composited layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/sub-pixel/nested-sub-pixel-composited-layers.html
diff --git a/LayoutTests/fast/sub-pixel/nested-sub-pixel-composited-layers.html b/LayoutTests/fast/sub-pixel/nested-sub-pixel-composited-layers.html
new file mode 100644
index 0000000000000000000000000000000000000000..d3d900014ffca82b8320104fd019cf00cc47a4af
--- /dev/null
+++ b/LayoutTests/fast/sub-pixel/nested-sub-pixel-composited-layers.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+#subPixelContainer {
+ left: 10.5px;
+ width: 100px;
+ height: 100px;
+ position: relative;
+ -webkit-transform: translateZ(0);
+}
+#subPixelContainer > div {
+ position: absolute;
+ width: 50.5px;
+ right: 0px;
+ height: 50px;
+}
+#test {
+ -webkit-transform: translateZ(0);
+ background-color: green;
+}
+#ref {
+ background-color: red;
+}
+</style>
+</head>
+<body>
+<div>This tests that sub-pixel offsets in nested composited layers are properly accumulated. You should see no red.</div>
+<div id="subPixelContainer">
+ <div id="ref"></div>
+ <div id="test"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698