servo/tests/wpt/css-tests/css-shapes-1_dev/html/shape-outside-invalid-inset-003.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

33 lines
No EOL
1 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<meta content="dom" name="flags">
<meta content="shape-outside declaration is invalid if inset shape function has an invalid bottom param" name="assert">
<title>CSS Shapes Test: Inset Rectangles - invalid bottom arg</title>
<link href="mailto:sherlock.z0917@gmail.com" rel="author" title="Sherlock Zhong">
<link href="http://www.w3.org/TR/css-shapes-1/#supported-basic-shapes" rel="help">
<link href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset" rel="help">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#shape{
width: 300px;
height: 300px;
shape-outside: inset(50px 50px 50 50px);
}
</style>
</head>
<body>
<div id="log"></div>
<div id="shape"></div>
<script>
var obj = document.getElementById('shape');
var val = getComputedStyle(obj).shapeOutside;
test(function() {assert_equals(val, "none", "declaration should not be valid")});
</script>
</body></html>