Update web-platform-tests to revision 5934bd3aca20a07917ad46fe7cebe10c68d5e497

This commit is contained in:
WPT Sync Bot 2020-07-18 08:22:00 +00:00
parent e41f1662dc
commit 64b58d76c6
67 changed files with 656 additions and 278 deletions

View file

@ -24,6 +24,7 @@
"textarea",
"textfield",
];
const initial_appearance = getComputedStyle(button).appearance;
function assert_style_for_prop(style, prop, value) {
if (prop === '-webkit-appearance') {
assert_equals(style.WebkitAppearance, value, 'style.WebkitAppearance (uppercase W)');
@ -198,7 +199,7 @@
button.style.setProperty(prop, invalidValue);
assert_style_for_prop(button.style, prop, "");
const style = getComputedStyle(button);
assert_style_for_prop(style, prop, "button");
assert_style_for_prop(style, prop, initial_appearance);
}, `${prop}: ${invalidValue} (invalid)`);
}
}