servo/tests/wpt/css-tests/css-shapes-1_dev/html/shape-outside-polygon-001.htm

39 lines
No EOL
1.8 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>Shape Outside Polygon Valid Fill-Rules</title>
<link href="http://html.adobe.com/" rel="author" title="Adobe">
<link href="mailto:betravis@adobe.com" rel="author" title="Bear Travis">
<link href="mailto:stearns@adobe.com" rel="reviewer" title="Alan Stearns"> <!-- 2014-03-04 -->
<link href="http://www.w3.org/TR/css-shapes-1/#funcdef-polygon" rel="help">
<link href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property" rel="help">
<meta content="A polygonal basic shape's optional fill-rule may be either 'nonzero' or 'evenodd'" name="assert">
<meta content="dom" name="flags">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/parsing-utils.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
var valid_fill_rule_tests = [
{
"name": "Nonzero",
"actual": "polygon(nonzero, 1px 2px)",
"expected_inline": "polygon(1px 2px)",
"expected_computed": "polygon(1px 2px)"
},
{
"name": "Evenodd",
"actual": "polygon(evenodd, 1px 2px)",
"expected_inline": "polygon(evenodd, 1px 2px)",
"expected_computed": "polygon(evenodd, 1px 2px)"
}
];
generate_tests( ParsingUtils.testInlineStyle,
ParsingUtils.buildTestCases(valid_fill_rule_tests, 'inline') );
generate_tests( ParsingUtils.testInlineStyle,
ParsingUtils.buildTestCases(valid_fill_rule_tests, 'computed') );
</script>
</body></html>