mirror of
https://github.com/servo/servo.git
synced 2025-06-27 10:33:39 +01:00
36 lines
No EOL
1 KiB
HTML
36 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 shape is invalid" name="assert">
|
|
<title>CSS Shapes Test - shape-outside invalid shape</title>
|
|
<link href="mailto:noonnightstorm@gmail.com" rel="author" title="noonnightstorm">
|
|
<link href="mailto:stearns@adobe.com" rel="reviewer" title="Alan Stearns">
|
|
<link href="http://www.w3.org/TR/css-shapes-1/#supported-basic-shapes" rel="help">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<link href="/resources/testharness.css" rel="stylesheet">
|
|
|
|
<style>
|
|
#shape{
|
|
width: 300px;
|
|
height: 300px;
|
|
shape-outside: invalid(50px,50px,50px,50px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="log"></div>
|
|
|
|
<div id="shape"></div>
|
|
|
|
<script>
|
|
var obj = document.getElementById('shape');
|
|
var shapeOutside = getComputedStyle(obj).shapeOutside;
|
|
test(function() {assert_equals(shapeOutside, "none", "declaration should be Invalid")});
|
|
</script>
|
|
|
|
|
|
|
|
</body></html> |