Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
test for inset-rectangles. fixed #146
Browse files Browse the repository at this point in the history
  • Loading branch information
slzhong committed Nov 10, 2013
1 parent 45529b6 commit d77a843
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="flags" content="dom">
<meta name="assert" content="shape-outside declaration is invalid if inset-rectangle shape function has an invalid top param">
<title>CSS Shapes Test: Inset Rectangles - invalid top</title>
<link rel="author" title="Sherlock Zhong" href="mailto:sherlock.z0917@gmail.com">
<link rel="help" href="http://www.w3.org/TR/css-shapes/#supported-basic-shapes">
<script src="testharness.js"></script>
<script src="testharnessreport.js"></script>
<link rel="stylesheet" href="testharness.css">
<style>
#shape{
width: 300px;
height: 300px;
shape-outside: inset-rectangle(-50, -50px, 50px, 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, "auto", "declaration should not be valid")});
</script>

</body>
</html>

0 comments on commit d77a843

Please sign in to comment.