-
Notifications
You must be signed in to change notification settings - Fork 76
/
css-conditional-values.json
66 lines (66 loc) · 2.43 KB
/
css-conditional-values.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"spec": {
"title": "CSS Conditional Values Module Level 1",
"url": "https://drafts.csswg.org/css-conditional-values-1/"
},
"properties": [],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<boolean-constant>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-boolean-constant",
"type": "type",
"value": "'true' | 'false'"
},
{
"name": "<condition>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-condition",
"type": "type",
"value": "not <condition-in-parens> | <condition-in-parens> [ and <condition-in-parens> ]* | <condition-in-parens> [ or <condition-in-parens> ]*"
},
{
"name": "<condition-in-parens>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-condition-in-parens",
"type": "type",
"value": "( <condition> ) | <atomic-condition>"
},
{
"name": "<atomic-condition>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-atomic-condition",
"type": "type",
"value": "<comparison-operand> <comparison-operator> <comparison-operand> | <boolean-constant>"
},
{
"name": "<comparison-operand>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-comparison-operand",
"type": "type",
"value": "<dimension> | <number> | <percentage> | <ident>"
},
{
"name": "<comparison-operator>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-comparison-operator",
"type": "type",
"value": "[ '=' | '>=' | '>' | '<' | '<=' ]"
},
{
"name": "if()",
"prose": "The if() function allows authors to set a property value (or parts thereof) to different values based on certain conditions.",
"href": "https://drafts.csswg.org/css-conditional-values-1/#funcdef-if",
"type": "function",
"value": "if( <condition>, <consequent>, <antecedent>? ) | if( <condition> then <consequent> [else <antecedent>]?) | if( <condition>, <consequent>, <antecedent>? )"
},
{
"name": "<consequent>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-consequent",
"type": "type",
"value": "<declaration-value>"
},
{
"name": "<antecedent>",
"href": "https://drafts.csswg.org/css-conditional-values-1/#typedef-antecedent",
"type": "type",
"value": "<declaration-value>"
}
]
}