mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 50ff4f970fd8592a9f436d4e86e7d572de143260
This commit is contained in:
parent
82bbf3ad45
commit
8ea5658199
150 changed files with 4737 additions and 998 deletions
|
@ -44,4 +44,17 @@ test(function() {
|
|||
assert_equals(innerComputedStyle.getPropertyValue('--non-inherited-length-2'), '90px');
|
||||
assert_equals(innerComputedStyle.getPropertyValue('--non-inherited-length-3'), '6px');
|
||||
}, "Registered properties are correctly inherited (or not) depending on the inherits flag.");
|
||||
|
||||
test(function(){
|
||||
CSS.registerProperty({name: '--initial-length-1', syntax: '<length>', initialValue: '0px', inherits: false});
|
||||
outer.style = '--initial-length-1: notalength';
|
||||
inner.style = '--initial-length-1: inherit';
|
||||
assert_equals(getComputedStyle(inner).getPropertyValue('--initial-length-1'), '0px');
|
||||
}, "Explicitly inheriting from a parent with an invalid value results in initial value.");
|
||||
|
||||
test(function(){
|
||||
CSS.registerProperty({name: '--initial-length-2', syntax: '<length>', initialValue: '0px', inherits: false});
|
||||
inner.style = '--initial-length-2: inherit';
|
||||
assert_equals(getComputedStyle(inner).getPropertyValue('--initial-length-2'), '0px');
|
||||
}, "Explicitly inheriting from a parent with no value results in initial value.");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue