Update web-platform-tests to revision 53876e32d827db82f4b7af38053529302c243d40

This commit is contained in:
WPT Sync Bot 2020-03-07 08:19:40 +00:00
parent a0f14ceb7b
commit 02d2f1860a
87 changed files with 2931 additions and 515 deletions

View file

@ -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