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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype HTML>
2
3 <!-- The second div squashes into the first, and had a fractional position great er than 0.5. This tests that pixel snapping for squashed layers
4 matches that of non-squashed layers -->
5 <div style="position: absolute; width: 200px; height: 200px; left: 0px; top: 0px ; transform: translateZ(0); background-color: lightgreen"></div>
6 <div style="position: absolute; width: 1px; height: 1px; left: 0px; top:0.6px; b ackground-color: lightgray"></div>
7
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698