mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision bc60e6f82132cfc9a5b688c566c7772024b3c15c
This commit is contained in:
parent
449881f566
commit
29156ca9e2
223 changed files with 7517 additions and 2093 deletions
|
@ -52,9 +52,9 @@ test(function() {
|
|||
test(function() {
|
||||
inlineStyle.setProperty('--length', 'hi');
|
||||
inlineStyle.setProperty('--color', '20');
|
||||
assert_equals(inlineStyle.getPropertyValue('--length'), '5');
|
||||
assert_equals(inlineStyle.getPropertyValue('--color'), 'hello');
|
||||
}, "Values not matching the registered type can't be set");
|
||||
assert_equals(inlineStyle.getPropertyValue('--length'), 'hi');
|
||||
assert_equals(inlineStyle.getPropertyValue('--color'), '20');
|
||||
}, "Values not matching the registered type can still be set");
|
||||
|
||||
test(function() {
|
||||
inlineStyle.removeProperty('--length');
|
||||
|
@ -66,8 +66,9 @@ test(function() {
|
|||
}, "Values can be removed from inline styles");
|
||||
|
||||
test(function() {
|
||||
sheetStyle.setProperty('--length', 'banana'); // Invalid, no change
|
||||
assert_equals(computedStyle.getPropertyValue('--length'), '10px');
|
||||
// 'banana' is not a valid <length>, but still accepted.
|
||||
sheetStyle.setProperty('--length', 'banana');
|
||||
assert_equals(computedStyle.getPropertyValue('--length'), '0px');
|
||||
sheetStyle.setProperty('--length', '20px');
|
||||
assert_equals(computedStyle.getPropertyValue('--length'), '20px');
|
||||
sheetStyle.setProperty('--length', 'initial');
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue