-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathimage-orientation-invalid.html
32 lines (31 loc) · 1.37 KB
/
image-orientation-invalid.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Images Module Level 3: parsing image-orientation with invalid values</title>
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation">
<meta name="assert" content="image-orientation supports only the grammar 'from-image | none'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("image-orientation", "auto");
test_invalid_value("image-orientation", "0");
test_invalid_value("image-orientation", "0 flip");
test_invalid_value("image-orientation", "0deg from-image");
test_invalid_value("image-orientation", "flip 0deg");
test_invalid_value("image-orientation", "flip from-image");
test_invalid_value("image-orientation", "from-image 0deg");
test_invalid_value("image-orientation", "from-image flip");
// An older version of the spec allowed [ <angle> | <angle>? flip ] values,
// so test that we no longer support them.
test_invalid_value("image-orientation", "30deg");
test_invalid_value("image-orientation", "flip");
test_invalid_value("image-orientation", "0deg flip");
test_invalid_value("image-orientation", "-1.25turn flip");
</script>
</body>
</html>