mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision b624f9b794b1fbc6672fb744bb0ed18819be4d44
This commit is contained in:
parent
dfa78986a6
commit
a68b59d35a
41 changed files with 448 additions and 82 deletions
|
@ -92,12 +92,12 @@
|
|||
from: '-10 5 1',
|
||||
to: '1',
|
||||
}, [
|
||||
{at: -1, expect: '-21 9 1'},
|
||||
{at: 0, expect: '-10 5 1'},
|
||||
{at: 0.25, expect: '-7.25 4 1'},
|
||||
{at: 0.75, expect: '-1.75 2 1'},
|
||||
{at: -1, expect: '-21 9'},
|
||||
{at: 0, expect: '-10 5'},
|
||||
{at: 0.25, expect: '-7.25 4'},
|
||||
{at: 0.75, expect: '-1.75 2'},
|
||||
{at: 1, expect: '1'},
|
||||
{at: 2, expect: '12 -3 1'},
|
||||
{at: 2, expect: '12 -3'},
|
||||
]);
|
||||
|
||||
// Handling of the none value.
|
||||
|
@ -148,12 +148,12 @@
|
|||
from: 'initial',
|
||||
to: '2 0.5 1',
|
||||
}, [
|
||||
{at: -1, expect: '0 1.5 1'},
|
||||
{at: -1, expect: '0 1.5'},
|
||||
{at: 0, expect: 'none'},
|
||||
{at: 0.25, expect: '1.25 0.875 1'},
|
||||
{at: 0.75, expect: '1.75 0.625 1'},
|
||||
{at: 1, expect: '2 0.5 1'},
|
||||
{at: 2, expect: '3 0 1'},
|
||||
{at: 0.25, expect: '1.25 0.875'},
|
||||
{at: 0.75, expect: '1.75 0.625'},
|
||||
{at: 1, expect: '2 0.5'},
|
||||
{at: 2, expect: '3 0'},
|
||||
]);
|
||||
|
||||
test_interpolation({
|
||||
|
@ -161,12 +161,12 @@
|
|||
from: '2 0.5 1',
|
||||
to: 'initial',
|
||||
}, [
|
||||
{at: -1, expect: '3 0 1'},
|
||||
{at: 0, expect: '2 0.5 1'},
|
||||
{at: 0.25, expect: '1.75 0.6251 1'},
|
||||
{at: 0.75, expect: '1.25 0.875 1'},
|
||||
{at: -1, expect: '3 0'},
|
||||
{at: 0, expect: '2 0.5'},
|
||||
{at: 0.25, expect: '1.75 0.6251'},
|
||||
{at: 0.75, expect: '1.25 0.875'},
|
||||
{at: 1, expect: 'none'},
|
||||
{at: 2, expect: '0 1.5 1'},
|
||||
{at: 2, expect: '0 1.5'},
|
||||
]);
|
||||
|
||||
|
||||
|
@ -194,7 +194,7 @@
|
|||
{at: 0, expect: '0.5 1 2'},
|
||||
{at: 0.25, expect: '0.875 0.875 1.75'},
|
||||
{at: 0.75, expect: '1.625 0.625 1.25'},
|
||||
{at: 1, expect: '2 0.5 1'},
|
||||
{at: 1, expect: '2 0.5'},
|
||||
{at: 2, expect: '3.5 0 0'},
|
||||
]);
|
||||
|
||||
|
@ -204,7 +204,7 @@
|
|||
to: 'inherit',
|
||||
}, [
|
||||
{at: -1, expect: '3.5 0 0'},
|
||||
{at: 0, expect: '2 0.5 1'},
|
||||
{at: 0, expect: '2 0.5'},
|
||||
{at: 0.25, expect: '1.625 0.625 1.25'},
|
||||
{at: 0.75, expect: '0.875 0.875 1.75'},
|
||||
{at: 1, expect: '0.5 1 2'},
|
||||
|
|
|
@ -9,14 +9,6 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/interpolation-testcommon.js"></script>
|
||||
<style>
|
||||
body {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
}
|
||||
div {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
.parent {
|
||||
translate: 100px 200px 300px;
|
||||
}
|
||||
|
|
|
@ -17,10 +17,10 @@ test_valid_value("scale", "1");
|
|||
|
||||
test_valid_value("scale", "100");
|
||||
test_valid_value("scale", "100 100", "100");
|
||||
test_valid_value("scale", "100 100 1");
|
||||
test_valid_value("scale", "100 100 1", "100");
|
||||
|
||||
test_valid_value("scale", "100 200");
|
||||
test_valid_value("scale", "100 200 1");
|
||||
test_valid_value("scale", "100 200 1", "100 200");
|
||||
test_valid_value("scale", "100 200 300");
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -23,14 +23,15 @@ test_valid_value("translate", "100px calc(10px - 10%)", "100px calc(10px - 10%)"
|
|||
test_valid_value("translate", "100px 200%");
|
||||
test_valid_value("translate", "100% 200px");
|
||||
|
||||
test_valid_value("translate", "100px 200px 0px");
|
||||
test_valid_value("translate", "100px 200px 0px", "100px 200px");
|
||||
test_valid_value("translate", "100px 0px 0px", "100px");
|
||||
test_valid_value("translate", "100px 200px 300px");
|
||||
test_valid_value("translate", "100% 200% 300px");
|
||||
|
||||
test_valid_value("translate", "calc(10% + 10px) calc(20% + 20px) calc(30em + 30px)");
|
||||
|
||||
test_valid_value("translate", "0", "0px");
|
||||
test_valid_value("translate", "1px 2px 0", "1px 2px 0px");
|
||||
test_valid_value("translate", "1px 2px 0", "1px 2px");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue