mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -14,6 +14,10 @@
|
|||
test_invalid_value("scale", "100px");
|
||||
|
||||
test_invalid_value("scale", "100 200 300 400");
|
||||
|
||||
test_invalid_value("scale", "1 junk");
|
||||
test_invalid_value("scale", "1 2 junk");
|
||||
test_invalid_value("scale", "1 2 3 junk");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 1: getComputedStyle().transform</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#serialization-of-the-computed-value">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
width: 200px;
|
||||
height: 300px;
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("transform", "perspective(none)", "matrix(1, 0, 0, 1, 0, 0)");
|
||||
test_computed_value("transform", "perspective(10px)", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.1, 0, 0, 0, 1)");
|
||||
|
||||
// FIXME: This needs more tests to cover all the other transform functions.
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -15,6 +15,10 @@ test_invalid_value("translate", "100deg");
|
|||
|
||||
test_invalid_value("translate", "100px 200px 300%");
|
||||
test_invalid_value("translate", "100px 200px calc(30px + 30%)");
|
||||
|
||||
test_invalid_value("translate", "100px junk");
|
||||
test_invalid_value("translate", "100px 200px junk");
|
||||
test_invalid_value("translate", "100px 200px 300px junk");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -24,10 +24,15 @@ test_valid_value("translate", "100px 200%");
|
|||
test_valid_value("translate", "100% 200px");
|
||||
|
||||
test_valid_value("translate", "100px 200px 0px", "100px 200px");
|
||||
test_valid_value("translate", "100px 0px 300px", "100px 0px 300px");
|
||||
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", "100% 0% 200px", "100% 0% 200px");
|
||||
test_valid_value("translate", "0% 0% 100px", "0% 0% 100px");
|
||||
test_valid_value("translate", "0em 0em 100px", "0em 0em 100px");
|
||||
|
||||
test_valid_value("translate", "calc(10% + 10px) calc(20% + 20px) calc(30em + 30px)");
|
||||
|
||||
test_valid_value("translate", "0", "0px");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue