mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision 53876e32d827db82f4b7af38053529302c243d40
This commit is contained in:
parent
a0f14ceb7b
commit
02d2f1860a
87 changed files with 2931 additions and 515 deletions
|
@ -5,20 +5,15 @@
|
|||
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../support/computed-testcommon.js"></script>
|
||||
<script src="../support/numeric-testcommon.js"></script>
|
||||
<div id="container" style="font-size: 20px">
|
||||
<div id="target"></div>
|
||||
<div id="reference"></div>
|
||||
</div>
|
||||
<script>
|
||||
const property = 'letter-spacing';
|
||||
|
||||
function test_length_equals(value, expected, titleExtra) {
|
||||
const reference = document.getElementById('reference');
|
||||
reference.style[property] = '';
|
||||
reference.style[property] = expected;
|
||||
const computed = getComputedStyle(reference)[property];
|
||||
test_computed_value(property, value, computed, titleExtra);
|
||||
function test_length_equals(value, expected, msgExtra) {
|
||||
test_math_used(value, expected, {msgExtra});
|
||||
}
|
||||
|
||||
// Identity tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue