Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/parsing/webkit-perspective-valid.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Compatibility: parsing -webkit-perspective with valid values</title>
<meta name="assert" content="-webkit-perspective also supports '<number [0,∞]>' in addition to 'none | <length [0,∞]>'">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("-webkit-perspective", "initial");
test_valid_value("-webkit-perspective", "inherit");
test_valid_value("-webkit-perspective", "unset");
test_valid_value("-webkit-perspective", "revert");
test_valid_value("-webkit-perspective", "revert-layer");
test_valid_value("-webkit-perspective", "none");
test_valid_value("-webkit-perspective", "1000", "1000px");
test_valid_value("-webkit-perspective", "25", "25px");
test_valid_value("-webkit-perspective", "12px", "12px");
test_valid_value("-webkit-perspective", "3.5em", "3.5em");
</script>
</body>
</html>