-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-properties-values-api] Split some of the registerProperty tests …
…about sign() with mixed lengths. Closes web-platform-tests/interop#911
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
css/css-properties-values-api/register-property-sign-mixed-lengths.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,20 @@ | ||
<!DOCTYPE HTML> | ||
<meta charset="utf-8"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-css-registerproperty" /> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#supported-syntax-strings" /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="./resources/utils.js"></script> | ||
<script> | ||
|
||
let assert_valid = test_initial_value_valid; | ||
let assert_invalid = test_initial_value_invalid; | ||
|
||
assert_valid("<length>", "calc(15px + (sign(100vh - 10px) * 5px))"); | ||
assert_valid("<number>", "calc(15 + (sign(100vh - 10px) * 5))"); | ||
assert_valid("<integer>", "calc(15 + (sign(100vh - 10px) * 5))"); | ||
assert_valid("<angle>", "calc(15deg + (sign(100vh - 10px) * 5deg))"); | ||
assert_valid("<time>", "calc(15s + (sign(100vh - 10px) * 5s))"); | ||
assert_valid("<resolution>", "calc(15dppx + (sign(100vh - 10px) * 5dpi))"); | ||
|
||
</script> |
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