Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-shapes/shape-functions/polygon-function-round-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Shapes Module Level 1: parsing the polygon() function with the round modifier</title>
<meta name="assert" content="Tests parsing of the round modifier in the polygon() function">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("shape-outside", "polygon(round, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round 1, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round -1px, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round 1%, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round 45deg, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round 1px 1px 2px)");
test_invalid_value("shape-outside", "polygon(1px 2px, round 1px)");
test_invalid_value("shape-outside", "polygon(round 1px round 2px, 1px 2px)");
test_invalid_value("shape-outside", "polygon(round 1px nonzero, 1px 2px)");
</script>
</body>
</html>