mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision add24188a1226f3598ad6b455e71641c9ac6a5fd
This commit is contained in:
parent
4cf39a696d
commit
6ed2abf735
80 changed files with 2127 additions and 133 deletions
|
@ -136,6 +136,15 @@ test(function(){
|
|||
element.style = '';
|
||||
}, 'Lists with relative units are absolutized when substituting');
|
||||
|
||||
test(function(){
|
||||
let length = generate_property('none | <length>');
|
||||
let universal = generate_property('*');
|
||||
element.style = `font-size: 10px; ${length}: 10em; ${universal}: var(${length})`;
|
||||
let computedStyle = getComputedStyle(element);
|
||||
assert_equals(computedStyle.getPropertyValue(universal), ' 100px');
|
||||
element.style = '';
|
||||
}, 'Values are absolutized when substituting into properties with universal syntax');
|
||||
|
||||
function test_valid_fallback(syntax, value, fallback) {
|
||||
test(function(){
|
||||
let name = generate_property(syntax);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue