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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html

Issue 2112753002: Snap paint offset paint property to pixel boundaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More unit tests for simple snapping and fixed position Created 4 years, 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 div { position: relative; }
4 </style>
5 PASS if there is no red visible.
6 <!-- This div should be snapped up to (1,1) -->
7 <div style="width: 70px; height: 70px; left: 0.7px; top: 0.7px;">
8 <div style="background: red; width: 40px; height: 40px; transform: translate Z(0);">
9 <!-- Because the first div is snapped up to (1,1), this div will start w ith a -->
10 <!-- paint offset of (-0.3,-0.3) which will be added to (0.7,0.7) to get -->
11 <!-- (0.4,0.4) which rounds down to (0,0) and obscures the red div. -->
12 <div style="background: white; width: 40px; height: 40px; left: 0.7px; t op: 0.7px;"></div>
13 </div>
14 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698