-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-shapes-2.json
273 lines (273 loc) · 11.8 KB
/
css-shapes-2.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
{
"spec": {
"title": "CSS Shapes Module Level 2",
"url": "https://drafts.csswg.org/css-shapes-2/"
},
"properties": [
{
"name": "shape-inside",
"href": "https://drafts.csswg.org/css-shapes-2/#propdef-shape-inside",
"value": "auto | outside-shape | [ <basic-shape> || shape-box ] | <image> | display",
"initial": "auto",
"appliesTo": "block-level elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "computed lengths for <basic-shape>, the absolute URL for <url>, otherwise as specified",
"canonicalOrder": "per grammar",
"animationType": "as defined for <basic-shape>, otherwise discrete",
"values": [
{
"name": "auto",
"prose": "The shape is computed based on the content box of the element.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-inside-auto",
"type": "value",
"value": "auto"
},
{
"name": "outside-shape",
"prose": "The shape is computed based on the shape defined by the shape-outside and shape-margin properties.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-inside-outside-shape",
"type": "value",
"value": "outside-shape"
},
{
"name": "<basic-shape>",
"prose": "The shape is computed based on the values of one of the <basic-shape> functions.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-inside-basic-shape",
"type": "value",
"value": "<basic-shape>"
},
{
"name": "<url>",
"prose": "If the <uri> references an SVG shape element, that element defines the shape. Otherwise, if the <uri> references an image, the shape is extracted and computed based on the alpha channel of the specified image. If the <uri> does not reference an SVG shape element or an image, the effect is as if the value auto had been specified.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-inside-url",
"type": "value",
"value": "<url>"
},
{
"name": "display",
"prose": "The shape is computed based on the shape of the display as described in css-round-display.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-inside-display",
"type": "value",
"value": "display"
}
],
"styleDeclaration": [
"shape-inside",
"shapeInside"
]
},
{
"name": "shape-padding",
"href": "https://drafts.csswg.org/css-shapes-2/#propdef-shape-padding",
"value": "<length-percentage [0,∞]>",
"initial": "0",
"appliesTo": "block-level elements",
"inherited": "no",
"percentages": "refer to the inline size of the containing block",
"computedValue": "computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "<length-percentage [0,∞]>",
"prose": "Sets the padding of the shape to the specified value.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-padding-length-percentage-0",
"type": "value",
"value": "<length-percentage [0,∞]>"
}
],
"styleDeclaration": [
"shape-padding",
"shapePadding"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "shape()",
"href": "https://drafts.csswg.org/css-shapes-2/#funcdef-shape",
"type": "function",
"value": "shape( <'fill-rule'>? from <coordinate-pair>, <shape-command>#)",
"values": [
{
"name": "<coordinate-pair>",
"value": "<length-percentage>{2}",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-coordinate-pair",
"type": "type"
},
{
"name": "<command-end-point>",
"value": "[ to <position> | by <coordinate-pair> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-command-end-point",
"type": "type",
"values": [
{
"name": "to",
"prose": "<command-end-point> = [ to <position> | by <coordinate-pair> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-to",
"type": "value",
"value": "to"
},
{
"name": "by",
"prose": "<command-end-point> = [ to <position> | by <coordinate-pair> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-by",
"type": "value",
"value": "by"
}
]
},
{
"name": "<move-command>",
"value": "move <command-end-point>",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-move-command",
"type": "type"
},
{
"name": "move",
"prose": "<move-command> = move <command-end-point>",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-move",
"type": "value",
"value": "move"
},
{
"name": "<line-command>",
"value": "line <command-end-point>",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-line-command",
"type": "type"
},
{
"name": "line",
"prose": "<line-command> = line <command-end-point>",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-line",
"type": "value",
"value": "line"
},
{
"name": "<horizontal-line-command>",
"value": "hline [ to [ <length-percentage> | left | center | right | x-start | x-end ] | by <length-percentage> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-horizontal-line-command",
"type": "type"
},
{
"name": "<vertical-line-command>",
"value": "vline [ to [ <length-percentage> | top | center | bottom | y-start | y-end ] | by <length-percentage> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-vertical-line-command",
"type": "type"
},
{
"name": "<curve-command>",
"value": "curve [ [ to <position> with <control-point> [ / <control-point> ]? ] | [ by <coordinate-pair> with <relative-control-point> [ / <relative-control-point> ]? ] ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-curve-command",
"type": "type"
},
{
"name": "curve",
"prose": "<curve-command> = curve [ [ to <position> with <control-point> [ / <control-point> ]? ] | [ by <coordinate-pair> with <relative-control-point> [ / <relative-control-point> ]? ] ]",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-curve",
"type": "value",
"value": "curve"
},
{
"name": "<smooth-command>",
"value": "smooth [ [ to <position> [ with <control-point> ]? ] | [ by <coordinate-pair> [ with <relative-control-point> ]? ] ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-smooth-command",
"type": "type"
},
{
"name": "smooth",
"prose": "<smooth-command> = smooth [ [ to <position> [with <control-point> ]? ] | [ by <coordinate-pair> [ with <relative-control-point> ]? ] ]",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-smooth",
"type": "value",
"value": "smooth"
},
{
"name": "<control-point>",
"value": "[ <position> | <relative-control-point> ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-control-point",
"type": "type"
},
{
"name": "<relative-control-point>",
"value": "<coordinate-pair> [ from [ start | end | origin ] ]?",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-relative-control-point",
"type": "type"
},
{
"name": "<arc-command>",
"value": "arc <command-end-point> [ [ of <length-percentage>{1,2} ] && <arc-sweep>? && <arc-size>? && [rotate <angle>]? ]",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-command",
"type": "type"
},
{
"name": "arc",
"prose": "<arc-command> = arc <command-end-point> [[of <length-percentage>{1,2}] && <arc-sweep>? && <arc-size>? && rotate <angle>? ]",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-arc",
"type": "value",
"value": "arc",
"values": [
{
"name": "cw",
"prose": "<arc-sweep> can be cw or ccw, indicating that the arc that is traced around the ellipse clockwise or counter-clockwise from the center, respectively, must be chosen. If omitted, this defaults to ccw.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-cw",
"type": "value",
"value": "cw"
},
{
"name": "ccw",
"prose": "<arc-sweep> can be cw or ccw, indicating that the arc that is traced around the ellipse clockwise or counter-clockwise from the center, respectively, must be chosen. If omitted, this defaults to ccw.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-ccw",
"type": "value",
"value": "ccw"
},
{
"name": "large",
"prose": "<arc-size> can be large or small, indicating that the larger or smaller, respectively, of the two possible arcs must be chosen. If omitted, this defaults to small.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-large",
"type": "value",
"value": "large"
},
{
"name": "small",
"prose": "<arc-size> can be large or small, indicating that the larger or smaller, respectively, of the two possible arcs must be chosen. If omitted, this defaults to small.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-small",
"type": "value",
"value": "small"
}
]
},
{
"name": "<arc-sweep>",
"prose": "<arc-sweep> can be cw or ccw, indicating that the arc that is traced around the ellipse clockwise or counter-clockwise from the center, respectively, must be chosen. If omitted, this defaults to ccw.",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-sweep",
"type": "type",
"value": "cw | ccw"
},
{
"name": "<arc-size>",
"prose": "<arc-size> can be large or small, indicating that the larger or smaller, respectively, of the two possible arcs must be chosen. If omitted, this defaults to small.",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-size",
"type": "type",
"value": "large | small"
},
{
"name": "close",
"prose": "Adds a closepath command to the list of path data commands.",
"href": "https://drafts.csswg.org/css-shapes-2/#valdef-shape-close",
"type": "value",
"value": "close"
}
]
},
{
"name": "<shape-command>",
"prose": "The sequence of <shape-command>s represent further path data commands. Each command’s starting point is the previous command’s ending point.",
"href": "https://drafts.csswg.org/css-shapes-2/#typedef-shape-command",
"type": "type",
"value": "<move-command> | <line-command> | close | <horizontal-line-command> | <vertical-line-command> | <curve-command> | <smooth-command> | <arc-command>"
}
]
}