Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1

This commit is contained in:
WPT Sync Bot 2019-05-22 10:24:35 +00:00
parent 415b26e4f1
commit 5e5eccabf8
495 changed files with 14920 additions and 784 deletions

View file

@ -5,8 +5,7 @@
function assert_initial(property, initial) {
test(() => {
const target = document.getElementById('target');
if (!getComputedStyle(target)[property])
return;
assert_true(property in getComputedStyle(target), property + " doesn't seem to be supported in the computed style");
target.style[property] = 'initial';
assert_equals(getComputedStyle(target)[property], initial);
target.style[property] = '';
@ -29,8 +28,7 @@ function assert_inherited(property, initial, other) {
test(() => {
const container = document.getElementById('container');
const target = document.getElementById('target');
if (!getComputedStyle(target)[property])
return;
assert_true(property in getComputedStyle(target), property + " doesn't seem to be supported in the computed style");
container.style[property] = 'initial';
target.style[property] = 'unset';
assert_not_equals(getComputedStyle(container)[property], other);
@ -65,8 +63,7 @@ function assert_not_inherited(property, initial, other) {
test(() => {
const container = document.getElementById('container');
const target = document.getElementById('target');
if (!getComputedStyle(target)[property])
return;
assert_true(property in getComputedStyle(target));
container.style[property] = 'initial';
target.style[property] = 'unset';
assert_not_equals(getComputedStyle(container)[property], other);