Snap to screen pixels instead of px

Fixes #7665.
This commit is contained in:
Matt Brubeck 2015-09-18 01:53:53 -07:00
parent 186ab5aa24
commit 9333f028e8
5 changed files with 133 additions and 80 deletions

View file

@ -285,6 +285,7 @@ flaky_cpu == linebreak_simple_a.html linebreak_simple_b.html
== percentage_height_float_a.html percentage_height_float_ref.html
== percentage_height_root.html percentage_height_root_ref.html
== percentage_width_inline_block_a.html percentage_width_inline_block_ref.html
device-pixel-ratio=2 != pixel_snapping_border_a.html pixel_snapping_border_ref.html
== png_rgba_colorspace_a.html png_rgba_colorspace_b.html
== position_abs_cb_with_non_cb_kid_a.html position_abs_cb_with_non_cb_kid_b.html
== position_abs_height_width_a.html position_abs_height_width_b.html

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pixel snapping border test</title>
<style>
div {
height: 101px;
width: 101px;
border: 0.5px solid black;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pixel snapping border reference</title>
<style>
div {
height: 100px;
width: 100px;
border: 1px solid black;
}
</style>
</head>
<body>
<div></div>
</body>
</html>