/
Documentation for Property.plist
373 lines (366 loc) · 24.9 KB
/
Documentation for Property.plist
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
#
# Lookup current word as a CSS property on w3c.org
#
# The mapping below was generated using:
# echo '$props = {'; curl -s http://meiert.com/en/indices/css-properties/ | ruby -ne 'puts %{\t"#{$2}"\t=> "#{$1}",} if $_ =~ %r{<th scope="row"><a href="(.+?)"><code>(.+?)</code></a></th>}'; echo '}'
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
$props = {
"align-content" => "http://www.w3.org/TR/css3-flexbox/#align-content",
"align-items" => "http://www.w3.org/TR/css3-flexbox/#align-items",
"align-self" => "http://www.w3.org/TR/css3-flexbox/#align-self",
"alignment-adjust" => "http://www.w3.org/TR/css3-linebox/#alignment-adjust",
"alignment-baseline" => "http://www.w3.org/TR/css3-linebox/#alignment-baseline",
"all" => "http://www.w3.org/TR/css3-cascade/#all-shorthand",
"anchor-point" => "http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#anchor-points",
"animation" => "http://www.w3.org/TR/css3-animations/#animation",
"animation-delay" => "http://www.w3.org/TR/css3-animations/#animation-trigger",
"animation-direction" => "http://www.w3.org/TR/css3-animations/#animation-direction",
"animation-duration" => "http://www.w3.org/TR/css3-animations/#animation-duration",
"animation-iteration-count" => "http://www.w3.org/TR/css3-animations/#animation-iteration-count",
"animation-name" => "http://www.w3.org/TR/css3-animations/#animation-name",
"animation-play-state" => "http://www.w3.org/TR/css3-animations/#animation-play-state",
"animation-timing-function" => "http://www.w3.org/TR/css3-animations/#animation-timing-function",
"appearance" => "http://www.w3.org/TR/css3-ui/#appearance0",
"azimuth" => "http://www.w3.org/TR/CSS21/aural.html#propdef-azimuth",
"backface-visibility" => "http://www.w3.org/TR/css3-3d-transforms/#backface-visibility-property",
"background" => "http://www.w3.org/TR/css3-background/#the-background",
"background-attachment" => "http://www.w3.org/TR/css3-background/#the-background-attachment",
"background-clip" => "http://www.w3.org/TR/css3-background/#the-background-clip",
"background-color" => "http://www.w3.org/TR/css3-background/#the-background-color",
"background-image" => "http://www.w3.org/TR/css3-background/#the-background-image",
"background-origin" => "http://www.w3.org/TR/css3-background/#the-background-origin",
"background-position" => "http://www.w3.org/TR/css3-background/#the-background-position",
"background-repeat" => "http://www.w3.org/TR/css3-background/#the-background-repeat",
"background-size" => "http://www.w3.org/TR/css3-background/#the-background-size",
"baseline-shift" => "http://www.w3.org/TR/css3-linebox/#baseline-shift-prop",
"binding" => "http://www.w3.org/TR/becss/#the-binding",
"bleed" => "http://www.w3.org/TR/css3-gcpm/#bleed",
"bookmark-label" => "http://www.w3.org/TR/css3-gcpm/#bookmark-label",
"bookmark-level" => "http://www.w3.org/TR/css3-gcpm/#bookmark-level",
"bookmark-state" => "http://www.w3.org/TR/css3-gcpm/#bookmark-state",
"bookmark-target" => "http://www.w3.org/TR/css3-gcpm/#bookmark-target",
"border" => "http://www.w3.org/TR/css3-background/#the-border-shorthands",
"border-bottom" => "http://www.w3.org/TR/css3-background/#the-border-shorthands",
"border-bottom-color" => "http://www.w3.org/TR/css3-background/#the-border-color",
"border-bottom-left-radius" => "http://www.w3.org/TR/css3-background/#the-border-radius",
"border-bottom-right-radius" => "http://www.w3.org/TR/css3-background/#the-border-radius",
"border-bottom-style" => "http://www.w3.org/TR/css3-background/#the-border-style",
"border-bottom-width" => "http://www.w3.org/TR/css3-background/#the-border-width",
"border-collapse" => "http://www.w3.org/TR/CSS21/tables.html#propdef-border-collapse",
"border-color" => "http://www.w3.org/TR/css3-background/#the-border-color",
"border-image" => "http://www.w3.org/TR/css3-background/#the-border-image",
"border-image-outset" => "http://www.w3.org/TR/css3-background/#the-border-image-outset",
"border-image-repeat" => "http://www.w3.org/TR/css3-background/#the-border-image-repeat",
"border-image-slice" => "http://www.w3.org/TR/css3-background/#the-border-image-slice",
"border-image-source" => "http://www.w3.org/TR/css3-background/#the-border-image-source",
"border-image-width" => "http://www.w3.org/TR/css3-background/#the-border-image-width",
"border-left" => "http://www.w3.org/TR/css3-background/#the-border-shorthands",
"border-left-color" => "http://www.w3.org/TR/css3-background/#the-border-color",
"border-left-style" => "http://www.w3.org/TR/css3-background/#the-border-style",
"border-left-width" => "http://www.w3.org/TR/css3-background/#the-border-width",
"border-radius" => "http://www.w3.org/TR/css3-background/#the-border-radius",
"border-right" => "http://www.w3.org/TR/css3-background/#the-border-shorthands",
"border-right-color" => "http://www.w3.org/TR/css3-background/#the-border-color",
"border-right-style" => "http://www.w3.org/TR/css3-background/#the-border-style",
"border-right-width" => "http://www.w3.org/TR/css3-background/#the-border-width",
"border-spacing" => "http://www.w3.org/TR/CSS21/tables.html#propdef-border-spacing",
"border-style" => "http://www.w3.org/TR/css3-background/#the-border-style",
"border-top" => "http://www.w3.org/TR/css3-background/#the-border-shorthands",
"border-top-color" => "http://www.w3.org/TR/css3-background/#the-border-color",
"border-top-left-radius" => "http://www.w3.org/TR/css3-background/#the-border-radius",
"border-top-right-radius" => "http://www.w3.org/TR/css3-background/#the-border-radius",
"border-top-style" => "http://www.w3.org/TR/css3-background/#the-border-style",
"border-top-width" => "http://www.w3.org/TR/css3-background/#the-border-width",
"border-width" => "http://www.w3.org/TR/css3-background/#the-border-width",
"bottom" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-bottom",
"box-decoration-break" => "http://www.w3.org/TR/css3-background/#the-box-decoration-break",
"box-shadow" => "http://www.w3.org/TR/css3-background/#the-box-shadow",
"box-sizing" => "http://www.w3.org/TR/css3-ui/#box-sizing0",
"break-after" => "http://www.w3.org/TR/css3-multicol/#break-after",
"break-before" => "http://www.w3.org/TR/css3-multicol/#break-before",
"break-inside" => "http://www.w3.org/TR/css3-multicol/#break-inside",
"caption-side" => "http://www.w3.org/TR/CSS21/tables.html#propdef-caption-side",
"clear" => "http://www.w3.org/TR/css3-box/#clear",
"clip" => "http://www.w3.org/TR/CSS21/visufx.html#propdef-clip",
"color" => "http://www.w3.org/TR/css3-color/#color0",
"color-profile" => "http://www.w3.org/TR/2003/CR-css3-color-20030514/#icc-color",
"column-count" => "http://www.w3.org/TR/css3-multicol/#column-count",
"column-fill" => "http://www.w3.org/TR/css3-multicol/#column-fill",
"column-gap" => "http://www.w3.org/TR/css3-multicol/#column-gap",
"column-rule" => "http://www.w3.org/TR/css3-multicol/#column-rule",
"column-rule-color" => "http://www.w3.org/TR/css3-multicol/#column-rule-color",
"column-rule-style" => "http://www.w3.org/TR/css3-multicol/#column-rule-style",
"column-rule-width" => "http://www.w3.org/TR/css3-multicol/#column-rule-width",
"column-span" => "http://www.w3.org/TR/css3-multicol/#column-span",
"column-width" => "http://www.w3.org/TR/css3-multicol/#column-width",
"columns" => "http://www.w3.org/TR/css3-multicol/#columns",
"content" => "http://www.w3.org/TR/css3-content/#content",
"counter-increment" => "http://www.w3.org/TR/css3-content/#counters",
"counter-reset" => "http://www.w3.org/TR/css3-content/#counters",
"crop" => "http://www.w3.org/TR/css3-content/#the-crop",
"cue" => "http://www.w3.org/TR/css3-speech/#cue",
"cue-after" => "http://www.w3.org/TR/css3-speech/#cue-after",
"cue-before" => "http://www.w3.org/TR/css3-speech/#cue-before",
"cursor" => "http://www.w3.org/TR/css3-ui/#cursor0",
"direction" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-direction",
"display" => "http://www.w3.org/TR/css3-box/#display",
"dominant-baseline" => "http://www.w3.org/TR/css3-linebox/#dominant-baseline",
"drop-initial-after-adjust" => "http://www.w3.org/TR/css3-linebox/#drop-initial-after-adjust",
"drop-initial-after-align" => "http://www.w3.org/TR/css3-linebox/#drop-initial-after-align",
"drop-initial-before-adjust" => "http://www.w3.org/TR/css3-linebox/#drop-initial-before-adjust",
"drop-initial-before-align" => "http://www.w3.org/TR/css3-linebox/#drop-initial-before-align",
"drop-initial-size" => "http://www.w3.org/TR/css3-linebox/#drop-initial-size",
"drop-initial-value" => "http://www.w3.org/TR/css3-linebox/#drop-initial-value",
"elevation" => "http://www.w3.org/TR/CSS21/aural.html#propdef-elevation",
"empty-cells" => "http://www.w3.org/TR/CSS21/tables.html#propdef-empty-cells",
"fit" => "http://www.w3.org/TR/css3-page/#fit",
"fit-position" => "http://www.w3.org/TR/css3-page/#fit-position",
"flex" => "http://www.w3.org/TR/css3-flexbox/#flex",
"flex-basis" => "http://www.w3.org/TR/css3-flexbox/#flex-basis0",
"flex-direction" => "http://www.w3.org/TR/css3-flexbox/#flex-direction",
"flex-flow" => "http://www.w3.org/TR/css3-flexbox/#flex-flow",
"flex-grow" => "http://www.w3.org/TR/css3-flexbox/#flex-grow",
"flex-shrink" => "http://www.w3.org/TR/css3-flexbox/#flex-shrink",
"flex-wrap" => "http://www.w3.org/TR/css3-flexbox/#flex-wrap",
"float" => "http://www.w3.org/TR/css3-box/#float",
"float-offset" => "http://www.w3.org/TR/css3-gcpm/#float-offset",
"font" => "http://www.w3.org/TR/css3-fonts/#font-prop",
"font-feature-settings" => "http://www.w3.org/TR/css3-fonts/#font-feature-settings-prop",
"font-family" => "http://www.w3.org/TR/css3-fonts/#font-family-prop",
"font-kerning" => "http://www.w3.org/TR/css3-fonts/#font-kerning-prop",
"font-language-override" => "http://www.w3.org/TR/css3-fonts/#font-language-override-prop",
"font-size" => "http://www.w3.org/TR/css3-fonts/#font-size-prop",
"font-size-adjust" => "http://www.w3.org/TR/css3-fonts/#font-size-adjust-prop",
"font-stretch" => "http://www.w3.org/TR/css3-fonts/#font-stretch-prop",
"font-style" => "http://www.w3.org/TR/css3-fonts/#font-style-prop",
"font-synthesis" => "http://www.w3.org/TR/css3-fonts/#font-synthesis-prop",
"font-variant" => "http://www.w3.org/TR/css3-fonts/#font-variant-prop",
"font-variant-alternates" => "http://www.w3.org/TR/css3-fonts/#font-variant-alternates-prop",
"font-variant-caps" => "http://www.w3.org/TR/css3-fonts/#font-variant-caps-prop",
"font-variant-east-asian" => "http://www.w3.org/TR/css3-fonts/#font-variant-east-asian-prop",
"font-variant-ligatures" => "http://www.w3.org/TR/css3-fonts/#font-variant-ligatures-prop",
"font-variant-numeric" => "http://www.w3.org/TR/css3-fonts/#font-variant-numeric-prop",
"font-variant-position" => "http://www.w3.org/TR/css3-fonts/#font-variant-position-prop",
"font-weight" => "http://www.w3.org/TR/css3-fonts/#font-weight-prop",
"grid-cell" => "http://www.w3.org/TR/css3-grid-layout/#grid-cell",
"grid-column" => "http://www.w3.org/TR/css3-grid-layout/#grid-column",
"grid-column-align" => "http://www.w3.org/TR/css3-grid-layout/#grid-column-align",
"grid-column-sizing" => "http://www.w3.org/TR/css3-grid-layout/#grid-column-sizing",
"grid-column-span" => "http://www.w3.org/TR/css3-grid-layout/#grid-column-span",
"grid-columns" => "http://www.w3.org/TR/css3-grid-layout/#grid-columns",
"grid-flow" => "http://www.w3.org/TR/css3-grid-layout/#grid-flow",
"grid-row" => "http://www.w3.org/TR/css3-grid-layout/#grid-row",
"grid-row-align" => "http://www.w3.org/TR/css3-grid-layout/#grid-row-align",
"grid-row-sizing" => "http://www.w3.org/TR/css3-grid-layout/#grid-row-sizing",
"grid-row-span" => "http://www.w3.org/TR/css3-grid-layout/#grid-row-span",
"grid-rows" => "http://www.w3.org/TR/css3-grid-layout/#grid-rows",
"grid-template" => "http://www.w3.org/TR/css3-grid-layout/#grid-template",
"hanging-punctuation" => "http://www.w3.org/TR/css3-text/#hanging-punctuation",
"height" => "http://www.w3.org/TR/css3-box/#height",
"hyphens" => "http://www.w3.org/TR/css3-text/#hyphens",
"icon" => "http://www.w3.org/TR/css3-ui/#icon",
"image-orientation" => "http://www.w3.org/TR/css3-images/#image-orientation",
"image-rendering" => "http://www.w3.org/TR/css3-images/#image-rendering",
"image-resolution" => "http://www.w3.org/TR/css3-images/#image-resolution",
"ime-mode" => "http://www.w3.org/TR/css3-ui/#input-method-editor",
"inline-box-align" => "http://www.w3.org/TR/css3-linebox/#inline-box-align",
"justify-content" => "http://www.w3.org/TR/css3-flexbox/#justify-content",
"left" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-left",
"letter-spacing" => "http://www.w3.org/TR/css3-text/#letter-spacing",
"line-break" => "http://www.w3.org/TR/css3-text/#line-break",
"line-height" => "http://www.w3.org/TR/css3-linebox/#line-height",
"line-stacking" => "http://www.w3.org/TR/css3-linebox/#line-stacking",
"line-stacking-ruby" => "http://www.w3.org/TR/css3-linebox/#line-stacking-ruby",
"line-stacking-shift" => "http://www.w3.org/TR/css3-linebox/#line-stacking-shift",
"line-stacking-strategy" => "http://www.w3.org/TR/css3-linebox/#line-stacking-strategy",
"list-style" => "http://www.w3.org/TR/css3-lists/#list-style",
"list-style-image" => "http://www.w3.org/TR/css3-lists/#list-style-image",
"list-style-position" => "http://www.w3.org/TR/css3-lists/#list-style-position",
"list-style-type" => "http://www.w3.org/TR/css3-lists/#list-style-type",
"margin" => "http://www.w3.org/TR/css3-box/#the-margin",
"margin-bottom" => "http://www.w3.org/TR/css3-box/#the-margin",
"margin-left" => "http://www.w3.org/TR/css3-box/#the-margin",
"margin-right" => "http://www.w3.org/TR/css3-box/#the-margin",
"margin-top" => "http://www.w3.org/TR/css3-box/#the-margin",
"marker-offset" => "http://www.w3.org/TR/2008/REC-CSS2-20080411/generate.html#markers",
"marks" => "http://www.w3.org/TR/css3-gcpm/#marks",
"marquee-direction" => "http://www.w3.org/TR/css3-marquee/#the-marquee-direction",
"marquee-loop" => "http://www.w3.org/TR/css3-box/#marquee-loop",
"marquee-play-count" => "http://www.w3.org/TR/css3-marquee/#the-marquee-play-count",
"marquee-speed" => "http://www.w3.org/TR/css3-marquee/#the-marquee-speed",
"marquee-style" => "http://www.w3.org/TR/css3-marquee/#the-marquee-style",
"max-height" => "http://www.w3.org/TR/css3-box/#max-height",
"max-width" => "http://www.w3.org/TR/css3-box/#max-width",
"min-height" => "http://www.w3.org/TR/css3-box/#min-height",
"min-width" => "http://www.w3.org/TR/css3-box/#min-width",
"move-to" => "http://www.w3.org/TR/css3-content/#moving",
"nav-down" => "http://www.w3.org/TR/css3-ui/#nav-dir",
"nav-index" => "http://www.w3.org/TR/css3-ui/#nav-index0",
"nav-left" => "http://www.w3.org/TR/css3-ui/#nav-dir",
"nav-right" => "http://www.w3.org/TR/css3-ui/#nav-dir",
"nav-up" => "http://www.w3.org/TR/css3-ui/#nav-dir",
"opacity" => "http://www.w3.org/TR/css3-color/#opacity",
"order" => "http://www.w3.org/TR/css3-flexbox/#order",
"orphans" => "http://www.w3.org/TR/css3-page/#orphans",
"outline" => "http://www.w3.org/TR/css3-ui/#outline0",
"outline-color" => "http://www.w3.org/TR/css3-ui/#outline-color0",
"outline-offset" => "http://www.w3.org/TR/css3-ui/#outline-offset0",
"outline-style" => "http://www.w3.org/TR/css3-ui/#outline-style0",
"outline-width" => "http://www.w3.org/TR/css3-ui/#outline-width0",
"overflow" => "http://www.w3.org/TR/css3-box/#overflow0",
"overflow-style" => "http://www.w3.org/TR/css3-marquee/#the-overflow-style",
"overflow-wrap" => "http://www.w3.org/TR/css3-text/#overflow-wrap",
"overflow-x" => "http://www.w3.org/TR/css3-box/#overflow-x",
"overflow-y" => "http://www.w3.org/TR/css3-box/#overflow-y",
"padding" => "http://www.w3.org/TR/css3-box/#the-padding",
"padding-bottom" => "http://www.w3.org/TR/css3-box/#the-padding",
"padding-left" => "http://www.w3.org/TR/css3-box/#the-padding",
"padding-right" => "http://www.w3.org/TR/css3-box/#the-padding",
"padding-top" => "http://www.w3.org/TR/css3-box/#the-padding",
"page" => "http://www.w3.org/TR/css3-page/#page",
"page-break-after" => "http://www.w3.org/TR/css3-page/#page-break-after",
"page-break-before" => "http://www.w3.org/TR/css3-page/#page-break-before",
"page-break-inside" => "http://www.w3.org/TR/css3-page/#page-break-inside",
"page-policy" => "http://www.w3.org/TR/css3-content/#page-policy",
"pause" => "http://www.w3.org/TR/css3-speech/#pause",
"pause-after" => "http://www.w3.org/TR/css3-speech/#pause-after",
"pause-before" => "http://www.w3.org/TR/css3-speech/#pause-before",
"perspective" => "http://www.w3.org/TR/css3-3d-transforms/#perspective-property",
"perspective-origin" => "http://www.w3.org/TR/css3-3d-transforms/#perspective-origin-property",
"pitch" => "http://www.w3.org/TR/CSS21/aural.html#propdef-pitch",
"pitch-range" => "http://www.w3.org/TR/CSS21/aural.html#propdef-pitch-range",
"play-during" => "http://www.w3.org/TR/CSS21/aural.html#propdef-play-during",
"position" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-position",
"presentation-level" => "http://www.w3.org/TR/css3-preslev/#presentation-level-property",
"punctuation-trim" => "http://www.w3.org/TR/css3-text/#punctuation-trim",
"quotes" => "http://www.w3.org/TR/css3-content/#quotes",
"rendering-intent" => "http://www.w3.org/TR/2003/CR-css3-color-20030514/#renderingintent",
"resize" => "http://www.w3.org/TR/css3-ui/#resize0",
"rest" => "http://www.w3.org/TR/css3-speech/#rest",
"rest-after" => "http://www.w3.org/TR/css3-speech/#rest-after",
"rest-before" => "http://www.w3.org/TR/css3-speech/#rest-before",
"richness" => "http://www.w3.org/TR/CSS21/aural.html#propdef-richness",
"right" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-right",
"rotation" => "http://www.w3.org/TR/css3-box/#rotating",
"rotation-point" => "http://www.w3.org/TR/css3-box/#rotating",
"ruby-align" => "http://www.w3.org/TR/css3-ruby/#ruby-align",
"ruby-overhang" => "http://www.w3.org/TR/css3-ruby/#ruby-overhang",
"ruby-position" => "http://www.w3.org/TR/css3-ruby/#ruby-position",
"ruby-span" => "http://www.w3.org/TR/css3-ruby/#ruby-span",
"size" => "http://www.w3.org/TR/css3-page/#size",
"speak" => "http://www.w3.org/TR/css3-speech/#speak",
"speak-as" => "http://www.w3.org/TR/css3-speech/#speak-as",
"speak-header" => "http://www.w3.org/TR/CSS21/aural.html#propdef-speak-header",
"speak-numeral" => "http://www.w3.org/TR/CSS21/aural.html#propdef-speak-numeral",
"speak-punctuation" => "http://www.w3.org/TR/CSS21/aural.html#propdef-speak-punctuation",
"speech-rate" => "http://www.w3.org/TR/CSS21/aural.html#propdef-speech-rate",
"stress" => "http://www.w3.org/TR/CSS21/aural.html#propdef-stress",
"string-set" => "http://www.w3.org/TR/css3-gcpm/#string-set",
"tab-size" => "http://www.w3.org/TR/css3-text/#tab-size",
"table-layout" => "http://www.w3.org/TR/CSS21/tables.html#propdef-table-layout",
"target" => "http://www.w3.org/TR/css3-hyperlinks/#the-target",
"target-name" => "http://www.w3.org/TR/css3-hyperlinks/#the-target-name",
"target-new" => "http://www.w3.org/TR/css3-hyperlinks/#the-target-new",
"target-position" => "http://www.w3.org/TR/css3-hyperlinks/#the-target-position",
"text-align" => "http://www.w3.org/TR/css3-text/#text-align",
"text-align-last" => "http://www.w3.org/TR/css3-text/#text-align-last",
"text-decoration" => "http://www.w3.org/TR/CSS21/text.html#propdef-text-decoration",
"text-decoration-color" => "http://www.w3.org/TR/css-text-decor-3/#text-decoration-color",
"text-decoration-line" => "http://www.w3.org/TR/css-text-decor-3/#text-decoration-line",
"text-decoration-skip" => "http://www.w3.org/TR/css-text-decor-3/#text-decoration-skip",
"text-decoration-style" => "http://www.w3.org/TR/css-text-decor-3/#text-decoration-style",
"text-emphasis" => "http://www.w3.org/TR/css-text-decor-3/#text-emphasis",
"text-emphasis-color" => "http://www.w3.org/TR/css-text-decor-3/#text-emphasis-color",
"text-emphasis-position" => "http://www.w3.org/TR/css-text-decor-3/#text-emphasis-position",
"text-emphasis-style" => "http://www.w3.org/TR/css-text-decor-3/#text-emphasis-style",
"text-height" => "http://www.w3.org/TR/css3-linebox/#text-height",
"text-indent" => "http://www.w3.org/TR/css3-text/#text-indent",
"text-justify" => "http://www.w3.org/TR/css3-text/#text-justify",
"text-outline" => "http://www.w3.org/TR/css3-text/#text-outline",
"text-overflow" => "http://www.w3.org/TR/css3-ui/#text-overflow",
"text-shadow" => "http://www.w3.org/TR/css-text-decor-3/#text-shadow",
"text-space-collapse" => "http://www.w3.org/TR/css3-text/#white-space-collapsing",
"text-transform" => "http://www.w3.org/TR/CSS21/text.html#propdef-text-transform",
"text-underline-position" => "http://www.w3.org/TR/css-text-decor-3/#text-underline-position",
"text-wrap" => "http://www.w3.org/TR/css3-text/#text-wrap",
"top" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-top",
"transform" => "http://www.w3.org/TR/css3-3d-transforms/#transform-property",
"transform-origin" => "http://www.w3.org/TR/css3-3d-transforms/#transform-origin-property",
"transform-style" => "http://www.w3.org/TR/css3-3d-transforms/#transform-style-property",
"transition" => "http://www.w3.org/TR/css3-transitions/#transition",
"transition-delay" => "http://www.w3.org/TR/css3-transitions/#transition-delay",
"transition-duration" => "http://www.w3.org/TR/css3-transitions/#transition-duration",
"transition-property" => "http://www.w3.org/TR/css3-transitions/#transition-property",
"transition-timing-function" => "http://www.w3.org/TR/css3-transitions/#transition-timing-function",
"unicode-bidi" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-unicode-bidi",
"vertical-align" => "http://www.w3.org/TR/css3-linebox/#vertical-align",
"visibility" => "http://www.w3.org/TR/css3-box/#visibility",
"voice-balance" => "http://www.w3.org/TR/css3-speech/#voice-balance",
"voice-duration" => "http://www.w3.org/TR/css3-speech/#voice-duration",
"voice-family" => "http://www.w3.org/TR/css3-speech/#voice-family",
"voice-pitch" => "http://www.w3.org/TR/css3-speech/#voice-pitch",
"voice-range" => "http://www.w3.org/TR/css3-speech/#voice-range",
"voice-rate" => "http://www.w3.org/TR/css3-speech/#voice-rate",
"voice-stress" => "http://www.w3.org/TR/css3-speech/#voice-stress",
"voice-volume" => "http://www.w3.org/TR/css3-speech/#voice-volume",
"volume" => "http://www.w3.org/TR/CSS21/aural.html#propdef-volume",
"white-space" => "http://www.w3.org/TR/css3-text/#white-space",
"widows" => "http://www.w3.org/TR/css3-page/#widows",
"width" => "http://www.w3.org/TR/css3-box/#width",
"word-break" => "http://www.w3.org/TR/css3-text/#word-break",
"word-spacing" => "http://www.w3.org/TR/css3-text/#word-spacing",
"word-wrap" => "http://www.w3.org/TR/css3-text/#word-wrap",
"z-index" => "http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index",
}
cur_line = ENV['TM_CURRENT_LINE']
cur_word = ENV['TM_CURRENT_WORD']
# since dash (‘-’) is not a word character, extend current word to neighboring word and dash characters
$prop_name = /[-\w]*#{Regexp.escape cur_word}[-\w]*/.match(cur_line)[0]
def request_prop_name
s = TextMate::UI.request_string(
:title => 'Documentation for Property',
:prompt => 'Which property would you like to lookup?',
:button1 => 'Lookup'
)
unless s.nil? or s.length < 1
$props[s] || "http://meiert.com/en/indices/css-properties/"
else
TextMate.exit_discard
end
end
url = $props[$prop_name] || request_prop_name
puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>"
</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
<string>Documentation for Property</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>source.css</string>
<key>semanticClass</key>
<string>lookup.define.css</string>
<key>uuid</key>
<string>50AA6E95-A754-4EBC-9C2A-68418C70D689</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>