OLD | NEW |
1 Tests huge image scaling when viewport is enabled. Requires DumpRenderTree. | 1 Tests huge image scaling when viewport is enabled. Requires DumpRenderTree. |
2 To manual test, open resources/5000x5000.png in a viewport-capable browser (e.g.
on Android or enable viewport emulation in DevTools). | 2 To manual test, open resources/5000x5000.png in a viewport-capable browser (e.g.
on Android or enable viewport emulation in DevTools). |
3 Passes if the image shinks to fit the width. | 3 Passes if the image shinks to fit the width. |
4 | 4 |
5 viewport meta: <meta name="viewport" content="width=device-width, minimum-scale=
0.1"> | 5 viewport meta: <meta name="viewport" content="width=device-width, minimum-scale=
0.1"> |
6 image style: user-select: none; cursor: zoom-in; | 6 image style: -webkit-user-select: none;background-position: 0px 0px, 10px 10px;b
ackground-size: 20px 20px;background-color: white;background-image:linear-gradie
nt(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),linea
r-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100
%); |
7 image actual width: 100 | 7 image actual width: 100 |
OLD | NEW |