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

Unified Diff: LayoutTests/compositing/squashing/subpixel-rounding.html

Issue 343543005: Round in the range [-0.5, 0.5) when computing offsetFromRenderer and subpixelAccumulation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 6 years, 6 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/compositing/squashing/subpixel-rounding.html
diff --git a/LayoutTests/compositing/squashing/subpixel-rounding.html b/LayoutTests/compositing/squashing/subpixel-rounding.html
new file mode 100644
index 0000000000000000000000000000000000000000..b595a52fff93cd071a4e5a2b50c719836c273346
--- /dev/null
+++ b/LayoutTests/compositing/squashing/subpixel-rounding.html
@@ -0,0 +1,7 @@
+<!doctype HTML>
+
+<!-- The second div squashes into the first, and had a fractional position greater than 0.5. This tests that pixel snapping for squashed layers
+ matches that of non-squashed layers -->
+<div style="position: absolute; width: 200px; height: 200px; left: 0px; top: 0px; transform: translateZ(0); background-color: lightgreen"></div>
+<div style="position: absolute; width: 1px; height: 1px; left: 0px; top:0.6px; background-color: lightgray"></div>
+

Powered by Google App Engine
This is Rietveld 408576698