-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathtext-box-edge-invalid.html
45 lines (40 loc) · 1.89 KB
/
text-box-edge-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
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<title>text-box-edge rejects invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-edges">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// invalid keyword
test_invalid_value('text-box-edge', 'none');
test_invalid_value('text-box-edge', 'normal');
test_invalid_value('text-box-edge', 'leading');
test_invalid_value('text-box-edge', 'auto leading');
test_invalid_value('text-box-edge', 'leading auto');
test_invalid_value('text-box-edge', 'normal text');
test_invalid_value('text-box-edge', 'text none');
test_invalid_value('text-box-edge', 'leading leading');
test_invalid_value('text-box-edge', 'leading text');
test_invalid_value('text-box-edge', 'leading cap');
test_invalid_value('text-box-edge', 'leading ex');
test_invalid_value('text-box-edge', 'leading ideographic');
test_invalid_value('text-box-edge', 'leading ideographic-ink');
test_invalid_value('text-box-edge', 'text leading');
test_invalid_value('text-box-edge', 'cap leading');
test_invalid_value('text-box-edge', 'ex leading');
test_invalid_value('text-box-edge', 'ideographic leading');
test_invalid_value('text-box-edge', 'ideographic-ink leading');
// invalid grammar
test_invalid_value('text-box-edge', 'alphabetic');
test_invalid_value('text-box-edge', 'alphabetic text');
test_invalid_value('text-box-edge', 'text cap');
test_invalid_value('text-box-edge', 'text ex');
test_invalid_value('text-box-edge', 'auto auto');
test_invalid_value('text-box-edge', 'auto text');
test_invalid_value('text-box-edge', 'text auto');
test_invalid_value('text-box-edge', 'text text text');
// These `over` values can't omit the `under` value.
// https://github.com/w3c/csswg-drafts/issues/10703
test_invalid_value('text-box-edge', 'cap');
test_invalid_value('text-box-edge', 'ex');
</script>