Auto merge of #15485 - glennw:fix-reftest, r=cbrewster

Ensure that position_fixed reftest matches ahem font requirements.

The ahem font should always be a multiple of 5px and a minimum size
of 20px for reliable results [1]. In particular, on some macs, using
the default size of 16 results in a reported metric of 16 x 17 from
the OS. This is currently working, but breaks when WR is updated to
do pixel snapping in world space.

[1] http://testthewebforward.org/docs/test-style-guidelines.html#special-fonts

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15485)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-02-12 19:20:44 -08:00 committed by GitHub
commit dd6d7ae59d
3 changed files with 4 additions and 2 deletions

View file

@ -22977,11 +22977,11 @@
"support"
],
"css/position_fixed_a.html": [
"e0cec72521c5ad893c260f7d0f3542d1464161e9",
"afbcc31b0460931d7ed8a2fdc1399d2f84fe33d5",
"reftest"
],
"css/position_fixed_b.html": [
"4a4589634026999bbb40d0cb92c114e7af4ad61a",
"251a490233a7836accc5883093a765f88e6006b5",
"support"
],
"css/position_fixed_background_color_a.html": [

View file

@ -13,6 +13,7 @@
because test reference depends on dynamic sizing, and different
fonts change the required margins. */
font-family: 'Ahem';
font-size: 20px;
}
.fixed_block {
background: green;

View file

@ -9,6 +9,7 @@
background: blue;
font-family: 'Ahem';
font-size: 20px;
}
div {
position: absolute;