Browse files

Fixed CSS properties and updated reference to FF 16

Added support for more functions
  • Loading branch information...
1 parent a82a9a3 commit 9cab7e9d6f0fd9071076089e8b807b8df72fbe76 @SebastianZ SebastianZ committed Jun 19, 2012
Showing with 465 additions and 228 deletions.
  1. +465 −228 extension/content/firebug/lib/css.js
View
693 extension/content/firebug/lib/css.js
@@ -774,140 +774,145 @@ Css.rgbToHSL = function(value)
Css.cssInfo = {};
Css.cssInfo.html =
{
- "background": ["bgRepeat", "bgAttachment", "position", "color", "bgImage"],
+ "background": ["bgRepeat", "bgAttachment", "position", "color", "image", "none", "boxModels"],
"background-attachment": ["bgAttachment"],
"background-color": ["color"],
- "background-image": ["bgImage"],
- "background-position": ["position"],
+ "background-image": ["image", "none"],
+ "background-position": ["position", "length"],
"background-repeat": ["bgRepeat"],
- "background-size": ["bgSize"],
- "background-clip": ["boxModels"], //FF4.0
- "background-origin": ["boxModels"], //FF4.0
-
- "border": ["borderStyle", "thickness", "color", "none"],
- "border-top": ["borderStyle", "borderCollapse", "color", "none"],
- "border-right": ["borderStyle", "borderCollapse", "color", "none"],
- "border-bottom": ["borderStyle", "borderCollapse", "color", "none"],
- "border-left": ["borderStyle", "borderCollapse", "color", "none"],
+ "background-size": ["bgSize", "length"],
+ "background-clip": ["boxModels"], // FF 4.0
+ "background-origin": ["boxModels"], // FF 4.0
+
+ "border": ["borderStyle", "thickness", "color"],
+ "border-top": ["borderStyle", "borderCollapse", "color"],
+ "border-right": ["borderStyle", "borderCollapse", "color"],
+ "border-bottom": ["borderStyle", "borderCollapse", "color"],
+ "border-left": ["borderStyle", "borderCollapse", "color"],
"border-collapse": ["borderCollapse"],
"border-color": ["color"],
"border-top-color": ["color"],
"border-right-color": ["color"],
"border-bottom-color": ["color"],
"border-left-color": ["color"],
- "border-spacing": [],
+ "border-spacing": ["length"],
"border-style": ["borderStyle"],
"border-top-style": ["borderStyle"],
"border-right-style": ["borderStyle"],
"border-bottom-style": ["borderStyle"],
"border-left-style": ["borderStyle"],
- "border-width": ["thickness"],
- "border-top-width": ["thickness"],
- "border-right-width": ["thickness"],
- "border-bottom-width": ["thickness"],
- "border-left-width": ["thickness"],
- "border-radius": [], //FF4.0
- "border-top-left-radius": [], //FF4.0
- "border-top-right-radius": [], //FF4.0
- "border-bottom-right-radius": [], //FF4.0
- "border-bottom-left-radius": [], //FF4.0
-
- "box-shadow": ["boxShadow", "color", "none"], //FF4.0
-
- "bottom": ["auto"],
+ "border-width": ["thickness", "length"],
+ "border-top-width": ["thickness", "length"],
+ "border-right-width": ["thickness", "length"],
+ "border-bottom-width": ["thickness", "length"],
+ "border-left-width": ["thickness", "length"],
+ "border-radius": ["length"], // FF 4.0
+ "border-top-left-radius": ["length"], // FF 4.0
+ "border-top-right-radius": ["length"], // FF 4.0
+ "border-bottom-right-radius": ["length"], // FF 4.0
+ "border-bottom-left-radius": ["length"], // FF 4.0
+ "-moz-border-image": ["mozBorderImageRepeat", "thickness", "url()", "none"],
+ "border-image": ["mozBorderImageRepeat", "thickness", "url()", "none"], // FF 15.0
+ "border-image-outset": ["length"], // FF 15.0
+ "border-image-repeat": ["mozBorderImageRepeat"], // FF 15.0
+ "border-image-slice": ["fill"],
+ "border-image-source": ["image", "none"],
+ "border-image-width": ["auto", "length"], // FF 15.0
+
+ "top": ["auto", "length"],
+ "right": ["auto", "length"],
+ "bottom": ["auto", "length"],
+ "left": ["auto", "length"],
+ "height": ["auto", "length"],
"caption-side": ["captionSide"],
"clear": ["clear", "none"],
- "clip": ["auto"],
+ "clip": ["shape", "auto"],
"color": ["color"],
- "content": ["content", "none", "normal"],
+ "content": ["string", "none", "normal"],
"counter-increment": ["none"],
"counter-reset": ["none"],
"cursor": ["cursor", "url()", "none"],
"direction": ["direction"],
- "display": ["display", "none"],
- "empty-cells": ["-moz-show-background"],
- "float": ["float", "none"],
+ "display": ["display"],
+ "empty-cells": ["emptyCells"],
+ "float": ["float"],
// specification of font families in "font" is special-cased
- "font": ["fontStyle", "fontSize", "fontVariant", "fontWeight", "mozFont"],
+ "font": ["fontStyle", "fontVariant", "fontWeight", "fontSize", "lineHeight", "mozFont", "length"],
"font-family": ["fontFamily"],
- "font-size": ["fontSize"],
- "font-size-adjust": [],
- "font-stretch": [],
+ "font-size": ["fontSize", "length"],
+ "font-size-adjust": ["none"],
+ "font-stretch": ["fontStretch"],
"font-style": ["fontStyle"],
"font-variant": ["fontVariant"],
"font-weight": ["fontWeight"],
- "height": ["auto"],
- "ime-mode": ["imeMode", "auto"],
- "left": ["auto"],
- "letter-spacing": [],
- "line-height": [],
+ "ime-mode": ["imeMode"], // FF 3.0
+ "letter-spacing": ["normal", "length"],
+ "line-height": ["lineHeight", "length"],
+ "word-break": ["wordBreak"],
- "list-style": ["listStyleType", "listStylePosition", "none"],
+ "list-style": ["listStyleType", "listStylePosition"],
"list-style-image": ["url()", "none"],
"list-style-position": ["listStylePosition"],
- "list-style-type": ["listStyleType", "none"],
+ "list-style-type": ["listStyleType"],
- "margin": ["auto"],
- "margin-top": [],
- "margin-right": ["auto"],
- "margin-bottom": [],
- "margin-left": ["auto"],
+ "margin": ["auto", "length"],
+ "margin-top": ["auto", "length"],
+ "margin-right": ["auto", "length"],
+ "margin-bottom": ["auto", "length"],
+ "margin-left": ["auto", "length"],
- "marker-offset": ["auto"],
- "min-height": ["none"],
- "max-height": ["none"],
- "min-width": ["width", "none"],
- "max-width": ["width", "none"],
+ "marker-offset": ["auto", "length"],
+ "min-height": ["auto", "length"],
+ "max-height": ["none", "length"],
+ "min-width": ["width", "auto", "length"],
+ "max-width": ["width", "none", "length"],
"opacity": [],
- "outline": ["borderStyle", "color", "none"],
+ "outline": ["color", "borderStyle", "thickness", "auto"],
"outline-color": ["color"],
- "outline-style": ["borderStyle"],
- "outline-width": [],
+ "outline-style": ["borderStyle", "auto"],
+ "outline-width": ["thickness", "length"],
+ "outline-offset": ["length"],
"overflow": ["overflow", "auto"],
"overflow-x": ["overflow", "auto"],
"overflow-y": ["overflow", "auto"],
- "padding": [],
- "padding-top": [],
- "padding-right": [],
- "padding-bottom": [],
- "padding-left": [],
+ "padding": ["length"],
+ "padding-top": ["length"],
+ "padding-right": ["length"],
+ "padding-bottom": ["length"],
+ "padding-left": ["length"],
"pointer-events": ["auto", "none"],
"position": ["elPosition"],
"quotes": ["none"],
- "resize": ["resize"], //FF4.0
- "right": ["auto"],
- "table-layout": ["tableLayout", "auto"],
+ "resize": ["resize"], // FF 4.0
+ "table-layout": ["tableLayout"],
"text-align": ["textAlign"],
- "text-decoration": ["textDecoration", "none"],
- "text-indent": [],
- "text-rendering": ["textRendering", "auto"],
- "text-shadow": [],
- "text-transform": ["textTransform", "none"],
- "top": ["auto"],
+ "-moz-text-align-last": ["textAlign"], // FF 12.0
+ "box-shadow": ["boxShadow", "color", "none", "length"], // FF 4.0
+ "text-decoration": ["textDecoration"],
+ "text-indent": ["length"],
+ "text-rendering": ["textRendering"],
+ "text-shadow": ["color", "length"],
+ "text-transform": ["textTransform"],
"unicode-bidi": ["unicodeBidi"],
- "vertical-align": ["verticalAlign"],
+ "vertical-align": ["verticalAlign", "length"],
"visibility": ["visibility"],
"white-space": ["whiteSpace"],
"width": ["width", "auto"],
- "word-spacing": [],
- "word-wrap": ["wordWrap"],
- "z-index": [],
+ "word-spacing": ["normal", "length"],
+ "word-wrap": ["wordWrap"], // FF 3.5
+ "z-index": ["auto"],
+ "page-break-after": ["pageBreak"],
+ "page-break-before": ["pageBreak"],
"-moz-appearance": ["mozAppearance"],
"-moz-backface-visibility": ["mozBackfaceVisibility"], // FF 10.0
- "-moz-border-image": ["mozBorderImageRepeat", "thickness", "url()", "none"],
- // "-moz-border-image-outset": [], // unimplemented
- // "-moz-border-image-repeat": ["mozBorderImageRepeat"],
- // "-moz-border-image-slice": [],
- // "-moz-border-image-source": ["url()"],
- // "-moz-border-image-width": [],
"-moz-border-top-colors": ["color"],
"-moz-border-right-colors": ["color"],
"-moz-border-bottom-colors": ["color"],
@@ -933,69 +938,69 @@ Css.cssInfo.html =
"-moz-user-select": ["userSelect", "none"],
"-moz-background-inline-policy": [],
"-moz-binding": [],
+ "-moz-columns": ["auto", "length"],
"-moz-column-count": ["auto"],
- "-moz-column-gap": ["normal"],
+ "-moz-column-gap": ["normal", "length"],
"-moz-column-rule": ["thickness", "borderStyle", "color"],
- "-moz-column-rule-width": ["thickness"],
+ "-moz-column-rule-width": ["thickness", "length"],
"-moz-column-rule-style": ["borderStyle"],
"-moz-column-rule-color": ["color"],
- "-moz-column-width": ["auto"],
+ "-moz-column-width": ["auto", "length"],
"-moz-image-region": [],
- "-moz-transform": ["mozTransformFunction", "none"],
- "-moz-transform-origin": ["position"],
+ "-moz-transform": ["mozTransformFunction", "none", "length"],
+ "-moz-transform-origin": ["position", "length"],
"-moz-transform-style": ["mozTransformStyle"], // FF 10.0
- "-moz-font-feature-settings": ["normal"], //FF4.0
- "-moz-font-language-override": [],
- "-moz-tab-size": [], //FF4.0,
- "-moz-transition": ["mozTransitionProperty", "mozTransitionTimingFunction"], //FF4.0 TODO
- "-moz-transition-property": ["mozTransitionProperty"], //FF4.0 TODO
- "-moz-transition-duration": [], //FF4.0 TODO
- "-moz-transition-timing-function": ["mozTransitionTimingFunction"], //FF4.0 TODO
- "-moz-transition-delay": [], //FF4.0 TODO
- "-moz-animation": [], // FF5.0
- "-moz-animation-delay": [], // FF5.0
- "-moz-animation-direction": [], // FF5.0
- "-moz-animation-duration": [], // FF5.0
- "-moz-animation-iteration-count": [], // FF5.0
- "-moz-animation-name" : [], // FF5.0
- "-moz-animation-play-state": [], // FF5.0
- "-moz-animation-timing-function": [], // FF5.0
- "-moz-animation-fill-mode": ["none", "forwards", "backwards", "both"], // FF5.0
- "orient": ["horizontal", "vertical"], // FF6.0
- "-moz-text-blink": ["none", "blink"], // FF6.0
- "-moz-text-decoration-color": ["color"], // FF6.0
- "-moz-text-decoration-line": ["mozTextDecorationLine"], // FF6.0
- "-moz-text-decoration-style": ["mozTextDecorationStyle"], // FF6.0
- "-moz-hyphens": ["mozHyphens"], // FF6.0
- "text-overflow": ["textOverflow"], // FF7.0
- "-moz-text-align-last": ["mozTextAlignLast"], // FF 12.0
- "-moz-perspective": ["none"], // FF 10.0
- "-moz-perspective-origin": ["position"] // FF 10.0
+ "-moz-font-feature-settings": ["mozFontFeatureSettings"], // FF 4.0
+ "-moz-font-language-override": ["normal"],
+ "-moz-tab-size": [], // FF 4.0,
+ "-moz-transition": ["mozTransitionProperty", "mozTimingFunction"], // FF 4.0
+ "-moz-transition-property": ["mozTransitionProperty"], // FF 4.0
+ "-moz-transition-duration": [], // FF 4.0
+ "-moz-transition-timing-function": ["mozTimingFunction"], // FF 4.0
+ "-moz-transition-delay": [], // FF 4.0
+ "-moz-animation": [], // FF 5.0
+ "-moz-animation-delay": [], // FF 5.0
+ "-moz-animation-direction": ["normal", "alternate"], // FF 5.0
+ "-moz-animation-duration": [], // FF 5.0
+ "-moz-animation-iteration-count": ["infinite"], // FF 5.0
+ "-moz-animation-name" : ["none"], // FF 5.0
+ "-moz-animation-play-state": ["running", "paused"], // FF 5.0
+ "-moz-animation-timing-function": [], // FF 5.0
+ "-moz-animation-fill-mode": ["none", "forwards", "backwards", "both"], // FF 5.0
+ "orient": ["horizontal", "vertical"], // FF 6.0
+ "-moz-text-blink": ["none", "blink"], // FF 6.0
+ "-moz-text-decoration-color": ["color"], // FF 6.0
+ "-moz-text-decoration-line": ["mozTextDecorationLine"], // FF 6.0
+ "-moz-text-decoration-style": ["mozTextDecorationStyle"], // FF 6.0
+ "-moz-hyphens": ["mozHyphens"], // FF 6.0
+ "text-overflow": ["textOverflow"], // FF 7.0
+ "-moz-perspective": ["none", "length"], // FF 10.0
+ "-moz-perspective-origin": ["position", "length"] // FF 10.0
};
-// ::-moz-progress-bar // FF6 TODO
+// ::-moz-progress-bar // FF 6 TODO
Css.cssInfo.svg =
{
"alignment-baseline": ["svgAlignmentBaseline"],
"baseline-shift": ["baselineShift"],
- "clip": ["auto"],
- "clip-path": ["none"],
+ "clip": ["auto", "length"],
+ "clip-path": ["url()", "none"],
"clip-rule": ["clipRule"],
"color": ["color"],
"color-interpolation": ["colorInterpolation"],
"color-interpolation-filters": ["colorInterpolation"],
"color-profile": ["colorProfile"],
"color-rendering": ["colorRendering"],
- "cursor": ["cursor", "url()", "none"],
+ "cursor": ["cursor", "url()"],
"direction": ["direction"],
"display": ["display"],
"dominant-baseline": ["dominantBaseline"],
"enable-background": ["accumulate"],
"fill": ["clipRule"],
"fill-opacity": [],
"fill-rule": ["clipRule"],
- "filter": ["none"],
+ "filter": ["url()", "none"],
"flood-color": ["currentColor"],
"flood-opacity": [],
"font": ["fontStyle", "fontSize", "fontVariant", "fontWeight"],
@@ -1008,16 +1013,16 @@ Css.cssInfo.svg =
"font-weight": ["fontWeight"],
"glyph-orientation-horizontal": [],
"glyph-orientation-vertical": ["auto"],
- "image-rendering": ["imageRendering"],
+ "image-rendering": ["imageRendering"], // FF 3.6
"kerning": ["auto"],
"letter-spacing": ["normal"],
"lighting-color": ["currentColor"],
"marker": ["none"],
"marker-end": ["none"],
- "mask": ["none"],
+ "mask": ["url()", "none"],
"opacity": [],
"overflow": ["auto", "svgOverflow"],
- "pointer-events": ["pointerEvents", "none"],
+ "pointer-events": ["pointerEvents"], // FF 1.5/3.6
"shape-rendering": ["auto", "shapeRendering"],
"stop-color": ["currentColor"],
"stop-opacity": [],
@@ -1030,8 +1035,8 @@ Css.cssInfo.svg =
"stroke-opacity": [],
"stroke-width": [],
"text-anchor": ["mozBoxPack"],
- "text-decoration": ["none", "textDecoration"],
- "text-rendering": ["none", "textRendering"],
+ "text-decoration": ["textDecoration"],
+ "text-rendering": ["textRendering"],
"unicode-bidi": ["unicodeBidi"],
"visibility": ["visibility"],
"word-spacing": ["normal"],
@@ -1204,6 +1209,13 @@ Css.cssKeywords =
"color":
[
+ // Color functions
+ "rgb()",
+ "rgba()",
+ "hsl()",
+ "hsla()",
+
+ // Color keywords
"aliceblue",
"antiquewhite",
"aqua",
@@ -1351,40 +1363,10 @@ Css.cssKeywords =
"whitesmoke",
"yellow",
"yellowgreen",
+
+ // Special color keywords
"transparent",
- "invert",
- "-moz-activehyperlinktext",
- "-moz-hyperlinktext",
- "-moz-visitedhyperlinktext",
- "-moz-buttondefault",
- "-moz-buttonhoverface",
- "-moz-buttonhovertext",
- "-moz-default-background-color", // FF 5.0
- "-moz-default-color", // FF 5.0
- "-moz-cellhighlight",
- "-moz-cellhighlighttext",
- "-moz-field",
- "-moz-fieldtext",
- "-moz-dialog",
- "-moz-dialogtext",
- "-moz-dragtargetzone",
- "-moz-mac-accentdarkestshadow",
- "-moz-mac-accentdarkshadow",
- "-moz-mac-accentface",
- "-moz-mac-accentlightesthighlight",
- "-moz-mac-accentlightshadow",
- "-moz-mac-accentregularhighlight",
- "-moz-mac-accentregularshadow",
- "-moz-mac-chrome-active",
- "-moz-mac-chrome-inactive",
- "-moz-mac-focusring",
- "-moz-mac-menuselect",
- "-moz-mac-menushadow",
- "-moz-mac-menutextselect",
- "-moz-menuhover",
- "-moz-menuhovertext",
- "-moz-win-communicationstext",
- "-moz-nativehyperlinktext",
+ "currentColor",
// System colors
"ActiveBorder",
@@ -1415,26 +1397,51 @@ Css.cssKeywords =
"Window",
"WindowFrame",
"WindowText",
- "-moz-mac-unified-toolbar",
- "-moz-win-borderless-glass",
- "-moz-win-browsertabbar-toolbox",
+
+ // Mozilla system color extensions
+ "-moz-ButtonDefault",
+ "-moz-ButtonHoverFace",
+ "-moz-ButtonHoverText",
+ "-moz-CellHighlight",
+ "-moz-CellHighlightText",
+ "-moz-Combobox",
+ "-moz-ComboboxText",
+ "-moz-Dialog",
+ "-moz-DialogText",
+ "-moz-dragtargetzone",
+ "-moz-EvenTreeRow",
+ "-moz-Field",
+ "-moz-FieldText",
+ "-moz-html-CellHighlight",
+ "-moz-html-CellHighlightText",
+ "-moz-mac-accentdarkestshadow",
+ "-moz-mac-accentdarkshadow",
+ "-moz-mac-accentface",
+ "-moz-mac-accentlightesthighlight",
+ "-moz-mac-accentlightshadow",
+ "-moz-mac-accentregularhighlight",
+ "-moz-mac-accentregularshadow",
+ "-moz-mac-chrome-active",
+ "-moz-mac-chrome-inactive",
+ "-moz-mac-focusring",
+ "-moz-mac-menuselect",
+ "-moz-mac-menushadow",
+ "-moz-mac-menutextselect",
+ "-moz-MenuHover",
+ "-moz-MenuHoverText",
+ "-moz-MenuBarText",
+ "-moz-MenuBarHoverText",
+ "-moz-nativehyperlinktext",
+ "-moz-OddTreeRow",
"-moz-win-communicationstext",
- "-moz-win-communications-toolbox",
- "-moz-win-exclude-glass", // FF 6.0
- "-moz-win-glass",
"-moz-win-mediatext",
- "-moz-win-media-toolbox",
- "-moz-window-button-box",
- "-moz-window-button-box-maximized",
- "-moz-window-button-close",
- "-moz-window-button-maximize",
- "-moz-window-button-minimize",
- "-moz-window-button-restore",
- "-moz-window-frame-bottom",
- "-moz-window-frame-left",
- "-moz-window-frame-right",
- "-moz-window-titlebar",
- "-moz-window-titlebar-maximized"
+
+ // Mozilla color preference extensions
+ "-moz-activehyperlinktext",
+ "-moz-default-background-color", // FF 5.0
+ "-moz-default-color", // FF 5.0
+ "-moz-hyperlinktext",
+ "-moz-visitedhyperlinktext"
],
"auto":
@@ -1460,6 +1467,13 @@ Css.cssKeywords =
"right"
],
+ "emptyCells":
+ [
+ "show",
+ "hide",
+ "-moz-show-background"
+ ],
+
"clear":
[
"left",
@@ -1470,14 +1484,19 @@ Css.cssKeywords =
"cursor":
[
"auto",
- "cell",
- "context-menu",
- "crosshair",
"default",
- "help",
"pointer",
- "progress",
+ "text",
+ "crosshair",
"move",
+ "help",
+ "no-drop",
+ "not-allowed",
+ "none", // FF 3.0
+ "-moz-grab",
+ "-moz-grabbing",
+ "-moz-zoom-in",
+ "-moz-zoom-out",
"e-resize",
"all-scroll",
"ne-resize",
@@ -1493,21 +1512,16 @@ Css.cssKeywords =
"nwse-resize",
"col-resize",
"row-resize",
- "text",
+ "cell",
+ "context-menu",
+ "progress",
"vertical-text",
"wait",
- "alias",
"copy",
- "move",
- "no-drop",
- "not-allowed",
- "-moz-grab",
- "-moz-grabbing",
- "-moz-zoom-in",
- "-moz-zoom-out"
+ "alias"
],
- "boxModels": //FF4.0
+ "boxModels": // FF 4.0
[
"padding-box",
"border-box",
@@ -1543,7 +1557,7 @@ Css.cssKeywords =
"no-repeat"
],
- "bgSize": // FF4.0
+ "bgSize": // FF 4.0
[
"auto",
"cover",
@@ -1552,11 +1566,12 @@ Css.cssKeywords =
"borderStyle":
[
- "hidden",
+ "solid",
+ "none",
"dotted",
"dashed",
- "solid",
"double",
+ "hidden",
"groove",
"ridge",
"inset",
@@ -1583,6 +1598,7 @@ Css.cssKeywords =
"listStyleType":
[
+ "none",
"disc",
"circle",
"square",
@@ -1595,9 +1611,9 @@ Css.cssKeywords =
"lower-latin",
"upper-alpha",
"upper-latin",
- "hebrew",
"armenian",
"georgian",
+ "hebrew",
"cjk-ideographic",
"hiragana",
"katakana",
@@ -1642,7 +1658,7 @@ Css.cssKeywords =
"outside"
],
- "content":
+ "string":
[
"open-quote",
"close-quote",
@@ -1669,27 +1685,57 @@ Css.cssKeywords =
"fontWeight":
[
+ // Absolute keywords
"normal",
"bold",
+
+ // Relative keywords
"bolder",
- "lighter"
+ "lighter",
+
+ // Numeric values
+ "100",
+ "200",
+ "300",
+ "400",
+ "500",
+ "600",
+ "700",
+ "800",
+ "900"
],
"fontSize":
[
+ // Absolute size keywords
"xx-small",
"x-small",
"small",
"medium",
"large",
"x-large",
"xx-large",
+
+ // Relative size keywords
"smaller",
"larger"
],
+ "lineHeight":
+ [
+ "normal"
+ ],
+
+ "wordBreak":
+ [
+ "normal",
+ "break-all",
+ "keep-all"
+ ],
+
"fontFamily":
[
+ // Common font families
"Arial",
"Comic Sans MS",
"Georgia",
@@ -1700,11 +1746,15 @@ Css.cssKeywords =
"Lucida Console",
"Lucida Grande",
"Helvetica",
+
+ // Generic font families
"serif",
"sans-serif",
"cursive",
"fantasy",
"monospace",
+
+ // Additional font families
"caption",
"icon",
"menu",
@@ -1731,6 +1781,7 @@ Css.cssKeywords =
"display":
[
"block",
+ "none",
"inline",
"inline-block",
"list-item",
@@ -1773,24 +1824,33 @@ Css.cssKeywords =
"float":
[
"left",
- "right"
+ "right",
+ "none"
],
"textAlign":
[
"left",
"right",
"center",
- "justify"
+ "justify",
+ "start",
+ "end", // FF 3.6
+
+ "-moz-center",
+ "-moz-left",
+ "-moz-right"
],
"tableLayout":
[
- "fixed"
+ "fixed",
+ "auto"
],
"textDecoration":
[
+ "none",
"underline",
"overline",
"line-through",
@@ -1802,14 +1862,17 @@ Css.cssKeywords =
[
"capitalize",
"lowercase",
- "uppercase"
+ "uppercase",
+ "none"
],
"unicodeBidi":
[
"normal",
"embed",
- "bidi-override"
+ "bidi-override",
+ "-moz-isolate", // FF 10.0
+ "-moz-plaintext" // FF 10.0
],
"visibility":
@@ -1824,8 +1887,8 @@ Css.cssKeywords =
"normal",
"pre",
"nowrap",
- "pre-wrap",
- "pre-line"
+ "pre-wrap", // FF 3.0
+ "pre-line" // FF 3.5
],
"verticalAlign":
@@ -1834,9 +1897,9 @@ Css.cssKeywords =
"sub",
"super",
"top",
- "text-top",
"middle",
"bottom",
+ "text-top",
"text-bottom"
],
@@ -1847,6 +1910,11 @@ Css.cssKeywords =
"thick"
],
+ "shape":
+ [
+ "rect()"
+ ],
+
"userFocus":
[
"ignore",
@@ -1899,14 +1967,17 @@ Css.cssKeywords =
"mozBoxOrient":
[
"horizontal",
- "vertical"
+ "vertical",
+ "inline-axis",
+ "block-axis"
],
"mozBoxPack":
[
"start",
"center",
- "end"
+ "end",
+ "justify"
],
"boxShadow":
@@ -1922,38 +1993,199 @@ Css.cssKeywords =
"space"
],
- "bgImage":
+ "image":
[
- "-moz-linear-gradient()", // FF4.0
- "-moz-radial-gradient()", // FF4.0
- "-moz-element()", // FF4.0
- "-moz-image-rect()", // FF4.0
"url()",
- "none"
+ "-moz-linear-gradient()", // FF 3.6
+ "-moz-radial-gradient()", // FF 3.6
+ "-moz-repeating-linear-gradient()", // FF 3.6
+ "-moz-repeating-radial-gradient()", // FF 3.6
+ "-moz-image-rect()", // FF 4.0
+ "-moz-element()", // FF 4.0
+ ],
+
+ "length":
+ [
+ "-moz-calc()"
],
"mozTransformFunction":
[
"matrix()",
+ "matrix3d()",
"rotate()",
+ "rotateX()",
+ "rotateY()",
+ "rotateZ()",
"scale()",
"scaleX()",
"scaleY()",
+ "scaleZ()",
+ "scale3d()",
+ "scaleZ()",
"skewX()",
"skewY()",
"translate()",
"translateX()",
- "translateY()"
+ "translateY()",
+ "translateZ()"
],
- "mozTransformStyle": // FF 10.0
+ "mozFontFeatureSettings":
+ [
+ "normal",
+ "on",
+ "off",
+
+ // Font features
+ // Doesn't include cv01-cv99
+ "\"aalt\"",
+ "\"abvf\"",
+ "\"abvm\"",
+ "\"abvs\"",
+ "\"afrc\"",
+ "\"akhn\"",
+ "\"blwf\"",
+ "\"blwm\"",
+ "\"blws\"",
+ "\"calt\"",
+ "\"case\"",
+ "\"ccmp\"",
+ "\"cfar\"",
+ "\"cjct\"",
+ "\"clig\"",
+ "\"cpct\"",
+ "\"cpsp\"",
+ "\"cswh\"",
+ "\"curs\"",
+ "\"c2pc\"",
+ "\"c2sc\"",
+ "\"dist\"",
+ "\"dlig\"",
+ "\"dnom\"",
+ "\"expt\"",
+ "\"falt\"",
+ "\"fin2\"",
+ "\"fin3\"",
+ "\"fina\"",
+ "\"frac\"",
+ "\"fwid\"",
+ "\"half\"",
+ "\"haln\"",
+ "\"halt\"",
+ "\"hist\"",
+ "\"hkna\"",
+ "\"hlig\"",
+ "\"hngl\"",
+ "\"hojo\"",
+ "\"hwid\"",
+ "\"init\"",
+ "\"isol\"",
+ "\"ital\"",
+ "\"jalt\"",
+ "\"jp78\"",
+ "\"jp83\"",
+ "\"jp90\"",
+ "\"jp04\"",
+ "\"kern\"",
+ "\"lfbd\"",
+ "\"liga\"",
+ "\"ljmo\"",
+ "\"lnum\"",
+ "\"locl\"",
+ "\"ltra\"",
+ "\"ltrm\"",
+ "\"mark\"",
+ "\"med2\"",
+ "\"medi\"",
+ "\"mgrk\"",
+ "\"mkmk\"",
+ "\"mset\"",
+ "\"nalt\"",
+ "\"nlck\"",
+ "\"nukt\"",
+ "\"numr\"",
+ "\"onum\"",
+ "\"opbd\"",
+ "\"ordn\"",
+ "\"ornm\"",
+ "\"palt\"",
+ "\"pcap\"",
+ "\"pkna\"",
+ "\"pnum\"",
+ "\"pref\"",
+ "\"pres\"",
+ "\"pstf\"",
+ "\"psts\"",
+ "\"pwid\"",
+ "\"qwid\"",
+ "\"rand\"",
+ "\"rkrf\"",
+ "\"rlig\"",
+ "\"rphf\"",
+ "\"rtbd\"",
+ "\"rtla\"",
+ "\"rtlm\"",
+ "\"ruby\"",
+ "\"salt\"",
+ "\"sinf\"",
+ "\"size\"",
+ "\"smcp\"",
+ "\"smpl\"",
+ "\"ss01\"",
+ "\"ss02\"",
+ "\"ss03\"",
+ "\"ss04\"",
+ "\"ss05\"",
+ "\"ss06\"",
+ "\"ss07\"",
+ "\"ss08\"",
+ "\"ss09\"",
+ "\"ss10\"",
+ "\"ss11\"",
+ "\"ss12\"",
+ "\"ss13\"",
+ "\"ss14\"",
+ "\"ss15\"",
+ "\"ss16\"",
+ "\"ss17\"",
+ "\"ss18\"",
+ "\"ss19\"",
+ "\"ss20\"",
+ "\"subs\"",
+ "\"sups\"",
+ "\"swsh\"",
+ "\"titl\"",
+ "\"tjmo\"",
+ "\"tnam\"",
+ "\"tnum\"",
+ "\"trad\"",
+ "\"twid\"",
+ "\"unic\"",
+ "\"valt\"",
+ "\"vatu\"",
+ "\"vert\"",
+ "\"vhal\"",
+ "\"vjmo\"",
+ "\"vkna\"",
+ "\"vkrn\"",
+ "\"vpal\"",
+ "\"vrt2\"",
+ "\"zero\""
+ ],
+
+ // FF 10.0
+ "mozTransformStyle":
[
"preserve-3d",
"flat"
],
+ // FF 4.0
"mozTransitionProperty":
[
+ "none",
+ "all",
"background-color",
"background-image",
"background-position",
@@ -2018,7 +2250,7 @@ Css.cssKeywords =
"-moz-transform"
],
- "mozTransitionTimingFunction": // FF 4.0
+ "mozTimingFunction": // FF 4.0
[
"cubic-bezier()",
"ease",
@@ -2055,23 +2287,14 @@ Css.cssKeywords =
"auto"
],
- "textOverflow": // FF 7.0
+ // FF 7.0
+ "textOverflow":
[
"clip",
"ellipsis"
],
-
- "mozTextAlignLast": // FF 12.0
- [
- "auto",
- "start",
- "end",
- "left",
- "right",
- "center",
- "justify"
- ],
-
+
+ // FF 3.0
"width":
[
"-moz-max-content",
@@ -2082,14 +2305,17 @@ Css.cssKeywords =
"imeMode":
[
+ "auto",
"normal",
"active",
"inactive",
"disabled"
],
+ // FF 3.0
"textRendering":
[
+ "auto",
"optimizeSpeed",
"optimizeLegibility",
"geometricPrecision"
@@ -2101,6 +2327,15 @@ Css.cssKeywords =
"break-word"
],
+ "pageBreak":
+ [
+ "auto",
+ "always",
+ "avoid",
+ "left",
+ "right"
+ ],
+
// start SVG specific
"alignmentBaseline":
@@ -2205,14 +2440,16 @@ Css.cssKeywords =
"pointerEvents":
[
+ "none",
+ "all",
+ "auto",
"visiblePainted",
"visibleFill",
"visibleStroke",
"visible",
"painted",
"fill",
- "stroke",
- "all"
+ "stroke"
],
"shapeRendering":

0 comments on commit 9cab7e9

Please sign in to comment.