Fix a broken reftest.

The <strong> element has a different font weight by default. This means that the line height
is slightly different from the ref test. In normal Servo this doesn't matter due to how the
default snapping works.

However, in both WebRender and Firefox, this results in the reftests being one pixel different.

Setting the font weight to be normal makes the reftest pass in Servo, WebRender and FF.
This commit is contained in:
Glenn Watson 2016-02-17 07:55:11 +10:00
parent 7aedb9c7cd
commit 10a3fa7df6

View file

@ -18,6 +18,7 @@ section {
} }
strong { strong {
color: red; color: red;
font-weight: normal;
} }
</style> </style>
There should be no red.<em><main><section></section></main></em><strong>_</strong> There should be no red.<em><main><section></section></main></em><strong>_</strong>