Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html b/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..37ed9df5719210a8cbe9de9c73c5d5b16ff72132 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html |
| @@ -0,0 +1,12 @@ |
| +<!DOCTYPE html> |
| +PASS if there is no red visible. |
| +<div style="background: white; width: 100px; height: 100px; position: relative; left: 0.7px;"> |
|
chrishtr
2016/06/30 16:57:17
Unittest with fixed-pos also?
pdr.
2016/06/30 18:54:48
Added PaintPropertyTreeBuilderTest.PaintOffsetWith
|
| + <div style="background: white; width: 70px; height: 70px; position: relative; transform: translateZ(0);"> |
| + <div style="background: red; width: 40px; height: 40px; position: fixed;"> |
| + <!-- Because the first div is snapped up to (1,1), this div will start with a --> |
| + <!-- paint offset of (-0.3,-0.3) which will be added to (0.7,0.7) to get --> |
| + <!-- (0.4,0.4) which rounds down to (0,0) and obscures the red divs. --> |
| + <div style="width: 40px; height: 40px; background: white; position: relative; left: 0.7px;"></div> |
| + </div> |
| + </div> |
| +</div> |