mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 5934bd3aca20a07917ad46fe7cebe10c68d5e497
This commit is contained in:
parent
e41f1662dc
commit
64b58d76c6
67 changed files with 656 additions and 278 deletions
|
@ -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)`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue