Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add CSS3 properties to `Documentation for Property` command.

  • Loading branch information...
commit a56dcb6718f046f0cd2fbe9e99e3e144d88c8a48 1 parent 4b01403
Stefan Daschek noniq authored
Showing with 321 additions and 130 deletions.
  1. +321 −130 Commands/Documentation for Property.tmCommand
451 Commands/Documentation for Property.tmCommand
View
@@ -10,131 +10,318 @@
# Lookup current word as a CSS property on w3c.org
#
# The mapping below was generated using:
-# echo '$props = {'; curl -s http://www.w3.org/TR/CSS2/propidx.html|egrep "(^|<tr><td>)<a href=\".*\" class=\"noxref\"><span class=\".*\">'.*'</span></a>"|perl -pe "s|(?:<tr><td>)?<a href=\"(.*)\" class=\"noxref\"><span class=\".*\">'(.*)'</span></a>|\t\"\$2\"\t=> \"\$1\",|"; echo '}'
+# 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 = {
- "azimuth" => "aural.html#propdef-azimuth",
- "background" => "colors.html#propdef-background",
- "background-attachment" => "colors.html#propdef-background-attachment",
- "background-color" => "colors.html#propdef-background-color",
- "background-image" => "colors.html#propdef-background-image",
- "background-position" => "colors.html#propdef-background-position",
- "background-repeat" => "colors.html#propdef-background-repeat",
- "border" => "box.html#propdef-border",
- "border-collapse" => "tables.html#propdef-border-collapse",
- "border-color" => "box.html#propdef-border-color",
- "border-spacing" => "tables.html#propdef-border-spacing",
- "border-style" => "box.html#propdef-border-style",
- "border-top" => "box.html#propdef-border-top",
- "border-right" => "box.html#propdef-border-right",
- "border-bottom" => "box.html#propdef-border-bottom",
- "border-left" => "box.html#propdef-border-left",
- "border-top-color" => "box.html#propdef-border-top-color",
- "border-right-color" => "box.html#propdef-border-right-color",
- "border-bottom-color" => "box.html#propdef-border-bottom-color",
- "border-left-color" => "box.html#propdef-border-left-color",
- "border-top-style" => "box.html#propdef-border-top-style",
- "border-right-style" => "box.html#propdef-border-right-style",
- "border-bottom-style" => "box.html#propdef-border-bottom-style",
- "border-left-style" => "box.html#propdef-border-left-style",
- "border-top-width" => "box.html#propdef-border-top-width",
- "border-right-width" => "box.html#propdef-border-right-width",
- "border-bottom-width" => "box.html#propdef-border-bottom-width",
- "border-left-width" => "box.html#propdef-border-left-width",
- "border-width" => "box.html#propdef-border-width",
- "bottom" => "visuren.html#propdef-bottom",
- "caption-side" => "tables.html#propdef-caption-side",
- "clear" => "visuren.html#propdef-clear",
- "clip" => "visufx.html#propdef-clip",
- "color" => "colors.html#propdef-color",
- "content" => "generate.html#propdef-content",
- "counter-increment" => "generate.html#propdef-counter-increment",
- "counter-reset" => "generate.html#propdef-counter-reset",
- "cue" => "aural.html#propdef-cue",
- "cue-after" => "aural.html#propdef-cue-after",
- "cue-before" => "aural.html#propdef-cue-before",
- "cursor" => "ui.html#propdef-cursor",
- "direction" => "visuren.html#propdef-direction",
- "display" => "visuren.html#propdef-display",
- "elevation" => "aural.html#propdef-elevation",
- "empty-cells" => "tables.html#propdef-empty-cells",
- "float" => "visuren.html#propdef-float",
- "font" => "fonts.html#propdef-font",
- "font-family" => "fonts.html#propdef-font-family",
- "font-size" => "fonts.html#propdef-font-size",
- "font-size-adjust" => "fonts.html#propdef-font-size-adjust",
- "font-stretch" => "fonts.html#propdef-font-stretch",
- "font-style" => "fonts.html#propdef-font-style",
- "font-variant" => "fonts.html#propdef-font-variant",
- "font-weight" => "fonts.html#propdef-font-weight",
- "height" => "visudet.html#propdef-height",
- "left" => "visuren.html#propdef-left",
- "letter-spacing" => "text.html#propdef-letter-spacing",
- "line-height" => "visudet.html#propdef-line-height",
- "list-style" => "generate.html#propdef-list-style",
- "list-style-image" => "generate.html#propdef-list-style-image",
- "list-style-position" => "generate.html#propdef-list-style-position",
- "list-style-type" => "generate.html#propdef-list-style-type",
- "margin" => "box.html#propdef-margin",
- "margin-top" => "box.html#propdef-margin-top",
- "margin-right" => "box.html#propdef-margin-right",
- "margin-bottom" => "box.html#propdef-margin-bottom",
- "margin-left" => "box.html#propdef-margin-left",
- "marker-offset" => "generate.html#propdef-marker-offset",
- "marks" => "page.html#propdef-marks",
- "max-height" => "visudet.html#propdef-max-height",
- "max-width" => "visudet.html#propdef-max-width",
- "min-height" => "visudet.html#propdef-min-height",
- "min-width" => "visudet.html#propdef-min-width",
- "orphans" => "page.html#propdef-orphans",
- "outline" => "ui.html#propdef-outline",
- "outline-color" => "ui.html#propdef-outline-color",
- "outline-style" => "ui.html#propdef-outline-style",
- "outline-width" => "ui.html#propdef-outline-width",
- "overflow" => "visufx.html#propdef-overflow",
- "padding" => "box.html#propdef-padding",
- "padding-top" => "box.html#propdef-padding-top",
- "padding-right" => "box.html#propdef-padding-right",
- "padding-bottom" => "box.html#propdef-padding-bottom",
- "padding-left" => "box.html#propdef-padding-left",
- "page" => "page.html#propdef-page",
- "page-break-after" => "page.html#propdef-page-break-after",
- "page-break-before" => "page.html#propdef-page-break-before",
- "page-break-inside" => "page.html#propdef-page-break-inside",
- "pause" => "aural.html#propdef-pause",
- "pause-after" => "aural.html#propdef-pause-after",
- "pause-before" => "aural.html#propdef-pause-before",
- "pitch" => "aural.html#propdef-pitch",
- "pitch-range" => "aural.html#propdef-pitch-range",
- "play-during" => "aural.html#propdef-play-during",
- "position" => "visuren.html#propdef-position",
- "quotes" => "generate.html#propdef-quotes",
- "richness" => "aural.html#propdef-richness",
- "right" => "visuren.html#propdef-right",
- "size" => "page.html#propdef-size",
- "speak" => "aural.html#propdef-speak",
- "speak-header" => "tables.html#propdef-speak-header",
- "speak-numeral" => "aural.html#propdef-speak-numeral",
- "speak-punctuation" => "aural.html#propdef-speak-punctuation",
- "speech-rate" => "aural.html#propdef-speech-rate",
- "stress" => "aural.html#propdef-stress",
- "table-layout" => "tables.html#propdef-table-layout",
- "text-align" => "text.html#propdef-text-align",
- "text-decoration" => "text.html#propdef-text-decoration",
- "text-indent" => "text.html#propdef-text-indent",
- "text-shadow" => "text.html#propdef-text-shadow",
- "text-transform" => "text.html#propdef-text-transform",
- "top" => "visuren.html#propdef-top",
- "unicode-bidi" => "visuren.html#propdef-unicode-bidi",
- "vertical-align" => "visudet.html#propdef-vertical-align",
- "visibility" => "visufx.html#propdef-visibility",
- "voice-family" => "aural.html#propdef-voice-family",
- "volume" => "aural.html#propdef-volume",
- "white-space" => "text.html#propdef-white-space",
- "widows" => "page.html#propdef-widows",
- "width" => "visudet.html#propdef-width",
- "word-spacing" => "text.html#propdef-word-spacing",
- "z-index" => "visuren.html#propdef-z-index",
+ "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']
@@ -144,16 +331,20 @@ cur_word = ENV['TM_CURRENT_WORD']
$prop_name = /[-\w]*#{Regexp.escape cur_word}[-\w]*/.match(cur_line)[0]
def request_prop_name
- s = `\"#{ENV['TM_SUPPORT_PATH']}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog\" inputbox --title 'Documentation for Property' --informative-text 'What property would you like to lookup?' --text '#{$prop_name}' --button1 'Lookup' --button2 'Cancel' --button3 'Show All Properties'`
- case (a = s.split("\n"))[0].to_i
- when 1 then $props[a[1].to_s] || "propidx.html"
- when 2 then abort "<script>window.close()</script>"
- when 3 then "propidx.html"
+ 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
-prop_url = $props[$prop_name] || request_prop_name
-url = "http://www.w3.org/TR/CSS2/" + prop_url
+url = $props[$prop_name] || request_prop_name
puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>"
</string>
<key>input</key>
Please sign in to comment.
Something went wrong with that request. Please try again.