This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for inset-rectangles. fixed #146
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...twf_shenzhen/css-shapes/sherlock/submitted/shape-outside-invalid-inset-rectangle-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |