mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
29 lines
No EOL
1.4 KiB
HTML
29 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>Shape Margin Invalid Values</title>
|
|
<link href="http://html.adobe.com/" rel="author" title="Adobe" />
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck" />
|
|
<link href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property" rel="help" />
|
|
<meta content="shape-margin values may only be positive length units." 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 shape_margin_invalid_tests = [
|
|
{"name": "-20px"},
|
|
{"name": "-.4567px"},
|
|
{"name": "nonLength"},
|
|
{"name": "10"}
|
|
];
|
|
generate_tests( ParsingUtils.testShapeMarginInlineStyle,
|
|
ParsingUtils.buildTestCases(shape_margin_invalid_tests, "inline - invalid"));
|
|
generate_tests( ParsingUtils.testShapeMarginComputedStyle,
|
|
ParsingUtils.buildTestCases(shape_margin_invalid_tests, "computed - invalid"));
|
|
</script>
|
|
|
|
|
|
</body></html> |