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

Commit

Permalink
test for css shape ellipse , fixed #166
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 9, 2013
1 parent 71c1f4a commit d1f4c4c
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="flags" content="dom">
<meta name="assert" content="shape-outside declaration is invalid if cy in ellipse function is invalid">
<title>CSS Shapes Test - Ellipse - invalid cy value</title>
<link rel="author" title="noonnightstorm" href="mailto:[email protected]">
<link rel="help" href="http://www.w3.org/TR/css-shapes/#supported-basic-shapes">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="stylesheet" href="/resources/testharness.css">

<style>
#shape{
width: 300px;
height: 300px;
shape-outside: ellipse(50%, 50, 50%, 50%);
}
</style>
</head>
<body>

<div id="log"></div>

<div id="shape"></div>

<script>
var obj = document.getElementById('shape');
var ellipse = getComputedStyle(obj).shapeOutside;
test(function() {assert_equals(ellipse, "auto", "declaration should be Invalid")});
</script>

</body>
</html>

0 comments on commit d1f4c4c

Please sign in to comment.