-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
border-color-shorthand.html
43 lines (40 loc) · 1.28 KB
/
border-color-shorthand.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders Module Level 3: border-color sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-color">
<meta name="assert" content="border-color supports the full grammar '<color>{1,4}'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
test_shorthand_value('border-color', 'currentcolor', {
'border-top-color': 'currentcolor',
'border-right-color': 'currentcolor',
'border-bottom-color': 'currentcolor',
'border-left-color': 'currentcolor'
});
test_shorthand_value('border-color', 'red yellow', {
'border-top-color': 'red',
'border-right-color': 'yellow',
'border-bottom-color': 'red',
'border-left-color': 'yellow'
});
test_shorthand_value('border-color', 'red yellow green', {
'border-top-color': 'red',
'border-right-color': 'yellow',
'border-bottom-color': 'green',
'border-left-color': 'yellow'
});
test_shorthand_value('border-color', 'red yellow green blue', {
'border-top-color': 'red',
'border-right-color': 'yellow',
'border-bottom-color': 'green',
'border-left-color': 'blue'
});
</script>
</body>
</html>