mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision fa41b43ac93bc2fdc2427a4378dc3754d483cdda
This commit is contained in:
parent
03a47c803c
commit
20d165ac2c
474 changed files with 6971 additions and 1378 deletions
|
@ -13,12 +13,12 @@
|
|||
<script>
|
||||
const property = 'letter-spacing';
|
||||
|
||||
function test_length_equals(value, expected) {
|
||||
function test_length_equals(value, expected, titleExtra) {
|
||||
const reference = document.getElementById('reference');
|
||||
reference.style[property] = '';
|
||||
reference.style[property] = expected;
|
||||
const computed = getComputedStyle(reference)[property];
|
||||
test_computed_value(property, value, computed);
|
||||
test_computed_value(property, value, computed, titleExtra);
|
||||
}
|
||||
|
||||
// Identity tests
|
||||
|
@ -96,8 +96,8 @@ test_length_equals('max(15px, 1em)', '20px');
|
|||
test_length_equals('max(25px, 1em)', '25px');
|
||||
|
||||
document.getElementById('container').style.fontSize = '10px';
|
||||
test_length_equals('min(15px, 1em)', '10px');
|
||||
test_length_equals('max(15px, 2em)', '20px');
|
||||
test_length_equals('min(15px, 1em)', '10px', 'fontSize=10px');
|
||||
test_length_equals('max(15px, 2em)', '20px', 'fontSize=10px');
|
||||
|
||||
document.getElementById('container').style.fontSize = '20px';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue