2007-04-15 15:27:14 -07:00
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set shiftwidth=4 tabstop=4 autoindent cindent noexpandtab: */
/ * * * * * * B E G I N L I C E N S E B L O C K * * * * *
* Version : MPL 1.1 / GPL 2.0 / LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 ( the "License" ) ; you may not use this file except in compliance with
* the License . You may obtain a copy of the License at
* http : //www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis ,
* WITHOUT WARRANTY OF ANY KIND , either express or implied . See the License
* for the specific language governing rights and limitations under the
* License .
*
* The Original Code is property _database . js .
*
* The Initial Developer of the Original Code is the Mozilla Foundation .
* Portions created by the Initial Developer are Copyright ( C ) 2007
* the Initial Developer . All Rights Reserved .
*
* Contributor ( s ) :
* L . David Baron < dbaron @ dbaron . org > , Mozilla Corporation ( original author )
*
* Alternatively , the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later ( the "GPL" ) , or
* the GNU Lesser General Public License Version 2.1 or later ( the "LGPL" ) ,
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above . If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL , and not to allow others to
* use your version of this file under the terms of the MPL , indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL . If you do not delete
* the provisions above , a recipient may use your version of this file under
* the terms of any one of the MPL , the GPL or the LGPL .
*
* * * * * * END LICENSE BLOCK * * * * * * /
// True longhand properties.
const CSS _TYPE _LONGHAND = 0 ;
// True shorthand properties.
const CSS _TYPE _TRUE _SHORTHAND = 1 ;
// Properties that we handle as shorthands but were longhands either in
// the current spec or earlier versions of the spec.
const CSS _TYPE _SHORTHAND _AND _LONGHAND = 2 ;
2007-05-03 16:11:00 -07:00
// Each property has the following fields:
// domProp: The name of the relevant member of nsIDOM[NS]CSS2Properties
// inherited: Whether the property is inherited by default (stated as
// yes or no in the property header in all CSS specs)
// type: see above
// initial_values: Values whose computed value should be the same as the
// computed value for the property's initial value.
// other_values: Values whose computed value should be different from the
// computed value for the property's initial value.
// XXX Should have a third field for values whose computed value may or
// may not be the same as for the property's initial value.
// invalid_values: Things that are not values for the property and
// should be rejected.
2007-04-15 15:27:14 -07:00
var gCSSProperties = {
"-moz-appearance" : {
domProp : "MozAppearance" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "radio" , "menulist" ] ,
invalid _values : [ ]
} ,
"-moz-background-clip" : {
domProp : "MozBackgroundClip" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "border" ] ,
other _values : [ "padding" ] ,
invalid _values : [ "content" , "margin" ]
} ,
"-moz-background-inline-policy" : {
domProp : "MozBackgroundInlinePolicy" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "continuous" ] ,
other _values : [ "bounding-box" , "each-box" ] ,
invalid _values : [ ]
} ,
"-moz-background-origin" : {
domProp : "MozBackgroundOrigin" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "padding" ] ,
other _values : [ "border" , "content" ] ,
invalid _values : [ "margin" ]
} ,
"-moz-binding" : {
domProp : "MozBinding" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "url(foo.xml)" ] ,
invalid _values : [ ]
} ,
"-moz-border-bottom-colors" : {
domProp : "MozBorderBottomColors" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
2007-04-17 00:41:44 -07:00
other _values : [ "red green" , "red #fc3" , "#ff00cc" ] ,
invalid _values : [ "red none" , "red inherit" , "red, green" ]
2007-04-15 15:27:14 -07:00
} ,
2007-07-04 11:51:16 -07:00
"-moz-border-end" : {
domProp : "MozBorderEnd" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "-moz-border-end-color" , "-moz-border-end-style" , "-moz-border-end-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
invalid _values : [ "5%" ]
} ,
"-moz-border-end-color" : {
domProp : "MozBorderEndColor" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"-moz-border-end-style" : {
domProp : "MozBorderEndStyle" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"-moz-border-end-width" : {
domProp : "MozBorderEndWidth" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
prerequisites : { "-moz-border-end-style" : "solid" } ,
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
2007-04-15 15:27:14 -07:00
"-moz-border-left-colors" : {
domProp : "MozBorderLeftColors" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
2007-04-17 00:41:44 -07:00
other _values : [ "red green" , "red #fc3" , "#ff00cc" ] ,
invalid _values : [ "red none" , "red inherit" , "red, green" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-radius" : {
domProp : "MozBorderRadius" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "-moz-border-radius-bottomleft" , "-moz-border-radius-bottomright" , "-moz-border-radius-topleft" , "-moz-border-radius-topright" ] ,
initial _values : [ "0" , "0px" , "0px 0 0 0px" ] , /* 0% ? */
other _values : [ "3%" , "1px" , "2em" , "3em 2px" , "2pt 3% 4em" , "2px 2px 2px 2px" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "2px -2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-radius-bottomleft" : {
domProp : "MozBorderRadiusBottomleft" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" ] , /* 0% ? */
other _values : [ "3%" , "1px" , "2em" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-1px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-radius-bottomright" : {
domProp : "MozBorderRadiusBottomright" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" ] , /* 0% ? */
other _values : [ "3%" , "1px" , "2em" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-1px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-radius-topleft" : {
domProp : "MozBorderRadiusTopleft" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" ] , /* 0% ? */
other _values : [ "3%" , "1px" , "2em" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-1px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-radius-topright" : {
domProp : "MozBorderRadiusTopright" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" ] , /* 0% ? */
other _values : [ "3%" , "1px" , "2em" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-1px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-border-right-colors" : {
domProp : "MozBorderRightColors" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
2007-04-17 00:41:44 -07:00
other _values : [ "red green" , "red #fc3" , "#ff00cc" ] ,
invalid _values : [ "red none" , "red inherit" , "red, green" ]
2007-04-15 15:27:14 -07:00
} ,
2007-07-04 11:51:16 -07:00
"-moz-border-start" : {
domProp : "MozBorderStart" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "-moz-border-start-color" , "-moz-border-start-style" , "-moz-border-start-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
invalid _values : [ "5%" ]
} ,
"-moz-border-start-color" : {
domProp : "MozBorderStartColor" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"-moz-border-start-style" : {
domProp : "MozBorderStartStyle" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"-moz-border-start-width" : {
domProp : "MozBorderStartWidth" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
prerequisites : { "-moz-border-start-style" : "solid" } ,
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
2007-04-15 15:27:14 -07:00
"-moz-border-top-colors" : {
domProp : "MozBorderTopColors" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
2007-04-17 00:41:44 -07:00
other _values : [ "red green" , "red #fc3" , "#ff00cc" ] ,
invalid _values : [ "red none" , "red inherit" , "red, green" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-box-align" : {
domProp : "MozBoxAlign" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "stretch" ] ,
other _values : [ "start" , "center" , "baseline" , "end" ] ,
invalid _values : [ ]
} ,
"-moz-box-direction" : {
domProp : "MozBoxDirection" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" ] ,
other _values : [ "reverse" ] ,
invalid _values : [ ]
} ,
"-moz-box-flex" : {
domProp : "MozBoxFlex" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0.0" , "-0.0" ] ,
other _values : [ "1" , "100" , "0.1" ] ,
invalid _values : [ "10px" , "-1" ]
} ,
"-moz-box-ordinal-group" : {
domProp : "MozBoxOrdinalGroup" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "1" ] ,
other _values : [ "0" , "-1" , "100" , "-1000" ] ,
invalid _values : [ "1.0" ]
} ,
"-moz-box-orient" : {
domProp : "MozBoxOrient" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "horizontal" , "inline-axis" ] ,
other _values : [ "vertical" , "block-axis" ] ,
invalid _values : [ ]
} ,
"-moz-box-pack" : {
domProp : "MozBoxPack" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "start" ] ,
other _values : [ "center" , "end" , "justify" ] ,
invalid _values : [ ]
} ,
"-moz-box-sizing" : {
domProp : "MozBoxSizing" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-17 01:01:22 -07:00
initial _values : [ "content-box" ] ,
other _values : [ "border-box" , "padding-box" ] ,
invalid _values : [ "margin-box" , "content" , "padding" , "border" , "margin" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-column-count" : {
domProp : "MozColumnCount" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "1" , "0" , "17" ] ,
2007-04-15 15:29:35 -07:00
invalid _values : [
// "-1", unclear: see http://lists.w3.org/Archives/Public/www-style/2007Apr/0030
"3px"
]
2007-04-15 15:27:14 -07:00
} ,
"-moz-column-gap" : {
domProp : "MozColumnGap" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" , "1em" ] ,
other _values : [ "2px" , "4em" , "3%" ] ,
invalid _values : [ ]
} ,
"-moz-column-width" : {
domProp : "MozColumnWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
2007-04-18 19:49:44 -07:00
other _values : [ "15px" , "50%" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "20" ]
} ,
"-moz-float-edge" : {
domProp : "MozFloatEdge" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-17 00:56:33 -07:00
initial _values : [ "content-box" ] ,
other _values : [ "border-box" , "padding-box" , "margin-box" ] ,
2007-04-17 01:01:22 -07:00
invalid _values : [ "content" , "padding" , "border" , "margin" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-force-broken-image-icon" : {
domProp : "MozForceBrokenImageIcon" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" ] ,
other _values : [ "1" ] ,
invalid _values : [ ]
} ,
"-moz-image-region" : {
domProp : "MozImageRegion" ,
2007-04-18 19:49:44 -07:00
inherited : true ,
2007-04-15 15:27:14 -07:00
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "rect(3px 20px 15px 4px)" , "rect(17px, 21px, 33px, 2px)" ] ,
invalid _values : [ ]
} ,
"-moz-margin-end" : {
domProp : "MozMarginEnd" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
/* auto may or may not be initial */
initial _values : [ "0" , "0px" , "0%" , "0em" , "0ex" ] ,
other _values : [ "1px" , "3em" ] ,
invalid _values : [ ]
} ,
"-moz-margin-start" : {
domProp : "MozMarginStart" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
/* auto may or may not be initial */
initial _values : [ "0" , "0px" , "0%" , "0em" , "0ex" ] ,
other _values : [ "1px" , "3em" ] ,
invalid _values : [ ]
} ,
"-moz-outline-radius" : {
domProp : "MozOutlineRadius" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "-moz-outline-radius-bottomleft" , "-moz-outline-radius-bottomright" , "-moz-outline-radius-topleft" , "-moz-outline-radius-topright" ] ,
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "2px" , "0.3em" , "2%" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-outline-radius-bottomleft" : {
domProp : "MozOutlineRadiusBottomleft" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "2px" , "0.3em" , "2%" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-outline-radius-bottomright" : {
domProp : "MozOutlineRadiusBottomright" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "2px" , "0.3em" , "2%" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-outline-radius-topleft" : {
domProp : "MozOutlineRadiusTopleft" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "2px" , "0.3em" , "2%" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-outline-radius-topright" : {
domProp : "MozOutlineRadiusTopright" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "2px" , "0.3em" , "2%" ] ,
2007-06-03 14:15:45 -07:00
invalid _values : [ "-2px" ]
2007-04-15 15:27:14 -07:00
} ,
"-moz-padding-end" : {
domProp : "MozPaddingEnd" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
initial _values : [ "0" , "0px" , "0%" , "0em" , "0ex" ] ,
other _values : [ "1px" , "3em" ] ,
invalid _values : [ ]
} ,
"-moz-padding-start" : {
domProp : "MozPaddingStart" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
initial _values : [ "0" , "0px" , "0%" , "0em" , "0ex" ] ,
other _values : [ "1px" , "3em" ] ,
invalid _values : [ ]
} ,
"-moz-user-focus" : {
domProp : "MozUserFocus" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "normal" , "ignore" , "select-all" , "select-before" , "select-after" , "select-same" , "select-menu" ] ,
invalid _values : [ ]
} ,
"-moz-user-input" : {
domProp : "MozUserInput" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "none" , "enabled" , "disabled" ] ,
invalid _values : [ ]
} ,
"-moz-user-modify" : {
domProp : "MozUserModify" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "read-only" ] ,
other _values : [ "read-write" , "write-only" ] ,
invalid _values : [ ]
} ,
"-moz-user-select" : {
domProp : "MozUserSelect" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "none" , "text" , "element" , "elements" , "all" , "toggle" , "tri-state" , "-moz-all" , "-moz-none" ] ,
invalid _values : [ ]
} ,
"azimuth" : {
domProp : "azimuth" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "center" , "0deg" ] ,
other _values : [ "center behind" , "behind far-right" , "left-side" , "73deg" , "90.1deg" , "0.1deg" ] ,
invalid _values : [ "0deg behind" , "behind 0deg" , "90deg behind" , "behind 90deg" ]
} ,
"background" : {
domProp : "background" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "background-attachment" , "background-color" , "background-image" , "background-position" , "background-repeat" , "-moz-background-clip" , "-moz-background-inline-policy" , "-moz-background-origin" ] ,
2007-04-15 15:29:35 -07:00
initial _values : [ "transparent" , "none" , "repeat" , "scroll" , "0% 0%" , "top left" , "left top" , "transparent none" , "top left none" , "left top none" , "none left top" , "none top left" , "none 0% 0%" , "transparent none repeat scroll top left" , "left top repeat none scroll transparent" ] ,
2007-04-15 15:27:14 -07:00
other _values : [ "green" , "none green repeat scroll left top" , "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==)" , "repeat url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==') transparent left top scroll" , "repeat-x" , "repeat-y" , "no-repeat" , "none repeat-y transparent scroll 0% 0%" , "fixed" , "0% top transparent fixed repeat none" , "top" , "left" , "50% 50%" , "center" , "bottom right scroll none transparent repeat" , "50% transparent" , "transparent 50%" , "50%" ] ,
2007-04-15 15:29:35 -07:00
invalid _values : [
/* mixes with keywords have to be in correct order */
"50% left" , "top 50%" ,
/* bug 258080: don't accept background-position separated */
"left url(404.png) top" , "top url(404.png) left"
]
2007-04-15 15:27:14 -07:00
} ,
"background-attachment" : {
domProp : "backgroundAttachment" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "scroll" ] ,
other _values : [ "fixed" ] ,
invalid _values : [ ]
} ,
"background-color" : {
domProp : "backgroundColor" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "transparent" , "rgba(255, 127, 15, 0)" , "hsla(240, 97%, 50%, 0.0)" , "rgba(0, 0, 0, 0)" , "rgba(255,255,255,-3.7)" ] ,
other _values : [ "green" , "rgb(255, 0, 128)" , "rgb(255.0,0.387,3489)" , "#fc2" , "#96ed2a" , "black" , "rgba(255,255,0,3)" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"background-image" : {
domProp : "backgroundImage" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==)" , "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==')" , 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==")' , ] ,
invalid _values : [ ]
} ,
"background-position" : {
domProp : "backgroundPosition" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "top left" , "left top" , "0% 0%" , "0% top" , "left 0%" ] ,
other _values : [ "top" , "left" , "right" , "bottom" , "center" , "center bottom" , "bottom center" , "center right" , "right center" , "center top" , "top center" , "center left" , "left center" , "right bottom" , "bottom right" , "50%" ] ,
invalid _values : [ "50% left" , "top 50%" ]
} ,
"background-repeat" : {
domProp : "backgroundRepeat" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "repeat" ] ,
other _values : [ "repeat-x" , "repeat-y" , "no-repeat" ] ,
invalid _values : [ ]
} ,
"border" : {
domProp : "border" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-bottom-color" , "border-bottom-style" , "border-bottom-width" , "border-left-color" , "border-left-style" , "border-left-width" , "border-right-color" , "border-right-style" , "border-right-width" , "border-top-color" , "border-top-style" , "border-top-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
other _values : [ "solid" , "medium solid" , "green solid" , "10px solid" , "thick solid" ] ,
invalid _values : [ "5%" ]
} ,
"border-bottom" : {
domProp : "borderBottom" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-bottom-color" , "border-bottom-style" , "border-bottom-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
2007-05-15 20:03:34 -07:00
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "5%" ]
} ,
"border-bottom-color" : {
domProp : "borderBottomColor" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "color" : "black" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"border-bottom-style" : {
domProp : "borderBottomStyle" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"border-bottom-width" : {
domProp : "borderBottomWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-18 19:49:44 -07:00
prerequisites : { "border-bottom-style" : "solid" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
"border-collapse" : {
domProp : "borderCollapse" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "separate" ] ,
other _values : [ "collapse" ] ,
invalid _values : [ ]
} ,
"border-color" : {
domProp : "borderColor" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-top-color" , "border-right-color" , "border-bottom-color" , "border-left-color" ] ,
initial _values : [ "currentColor" , "currentColor currentColor" , "currentColor currentColor currentColor" , "currentColor currentColor currentcolor CURRENTcolor" ] ,
other _values : [ "green" , "currentColor green" , "currentColor currentColor green" , "currentColor currentColor currentColor green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"border-left" : {
domProp : "borderLeft" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-left-color" , "border-left-style" , "border-left-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
2007-05-15 20:03:34 -07:00
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "5%" ]
} ,
"border-left-color" : {
domProp : "borderLeftColor" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "color" : "black" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"border-left-style" : {
domProp : "borderLeftStyle" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-04-15 15:27:14 -07:00
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"border-left-width" : {
domProp : "borderLeftWidth" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-04-18 19:49:44 -07:00
prerequisites : { "border-left-style" : "solid" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
"border-right" : {
domProp : "borderRight" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-right-color" , "border-right-style" , "border-right-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
2007-05-15 20:03:34 -07:00
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "5%" ]
} ,
"border-right-color" : {
domProp : "borderRightColor" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "color" : "black" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"border-right-style" : {
domProp : "borderRightStyle" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-04-15 15:27:14 -07:00
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"border-right-width" : {
domProp : "borderRightWidth" ,
inherited : false ,
2007-07-04 11:51:16 -07:00
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-04-18 19:49:44 -07:00
prerequisites : { "border-right-style" : "solid" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
"border-spacing" : {
domProp : "borderSpacing" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "0" , "0 0" , "0px" , "0 0px" ] ,
other _values : [ "3px" , "4em 2px" , "4em 0" , "0px 2px" ] ,
invalid _values : [ "0%" , "0 0%" ]
} ,
"border-style" : {
domProp : "borderStyle" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-top-style" , "border-right-style" , "border-bottom-style" , "border-left-style" ] ,
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" , "none none" , "none none none" , "none none none none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" , "none solid" , "none none solid" , "none none none solid" , "groove none none none" , "none ridge none none" , "none none double none" , "none none none dotted" ] ,
invalid _values : [ ]
} ,
"border-top" : {
domProp : "borderTop" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-top-color" , "border-top-style" , "border-top-width" ] ,
initial _values : [ "none" , "medium" , "currentColor" , "none medium currentcolor" ] ,
2007-05-15 20:03:34 -07:00
other _values : [ "solid" , "thin" , "green" , "medium solid" , "green solid" , "10px solid" , "thick solid" , "5px green none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "5%" ]
} ,
"border-top-color" : {
domProp : "borderTopColor" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "color" : "black" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "currentColor" ] ,
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
} ,
"border-top-style" : {
domProp : "borderTopStyle" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX hidden is sometimes the same as initial */
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
invalid _values : [ ]
} ,
"border-top-width" : {
domProp : "borderTopWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-18 19:49:44 -07:00
prerequisites : { "border-top-style" : "solid" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
} ,
"border-width" : {
domProp : "borderWidth" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "border-top-width" , "border-right-width" , "border-bottom-width" , "border-left-width" ] ,
2007-04-18 19:49:44 -07:00
prerequisites : { "border-style" : "solid" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "medium" , "3px" , "medium medium" , "3px medium medium" , "medium 3px medium medium" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" , "2px 0 0px 1em" ] ,
invalid _values : [ "5%" ]
} ,
"bottom" : {
domProp : "bottom" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX requires position to be set */
/* XXX 0 may or may not be equal to auto */
initial _values : [ "auto" ] ,
other _values : [ "32px" , "-3em" , "12%" ] ,
invalid _values : [ ]
} ,
"caption-side" : {
domProp : "captionSide" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "top" ] ,
other _values : [ "right" , "left" , "bottom" ] ,
invalid _values : [ ]
} ,
"clear" : {
domProp : "clear" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "left" , "right" , "both" ] ,
invalid _values : [ ]
} ,
"clip" : {
domProp : "clip" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
2007-04-18 19:49:44 -07:00
other _values : [ "rect(0 0 0 0)" , "rect(auto,auto,auto,auto)" , "rect(3px, 4px, 4em, 0)" , "rect(auto, 3em, 4pt, 2px)" , "rect(2px 3px 4px 5px)" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "rect(auto, 3em, 2%, 5px)" ]
} ,
"color" : {
domProp : "color" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-18 19:49:44 -07:00
/* XXX should test currentColor, but may or may not be initial */
initial _values : [ "black" , "#000" ] ,
2007-04-15 15:27:14 -07:00
other _values : [ "green" , "#f3c" , "#fed292" , "rgba(45,300,12,2)" , "transparent" ] ,
invalid _values : [ "fff" , "ffffff" , "#f" , "#ff" , "#ffff" , "#fffff" , "#fffffff" , "#ffffffff" , "#fffffffff" ]
} ,
"content" : {
domProp : "content" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX needs to be on pseudo-elements */
initial _values : [ "normal" , "none" ] ,
other _values : [ '""' , "''" , '"hello"' , "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==)" , "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==')" , 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==")' , ] ,
invalid _values : [ ]
} ,
"counter-increment" : {
domProp : "counterIncrement" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "foo 1" , "bar" , "foo 3 bar baz 2" ] ,
invalid _values : [ ]
} ,
"counter-reset" : {
domProp : "counterReset" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "bar 0" , "foo" , "foo 3 bar baz 2" ] ,
invalid _values : [ ]
} ,
"cue" : {
domProp : "cue" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "cue-before" , "cue-after" ] ,
initial _values : [ "none" , "none none" ] ,
other _values : [ "url(404.wav)" , "url(404.wav) none" , "none url(404.wav)" ] ,
invalid _values : [ ]
} ,
"cue-after" : {
domProp : "cueAfter" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "url(404.wav)" ] ,
invalid _values : [ ]
} ,
"cue-before" : {
domProp : "cueBefore" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "url(404.wav)" ] ,
invalid _values : [ ]
} ,
"cursor" : {
domProp : "cursor" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "crosshair" , "default" , "pointer" , "move" , "e-resize" , "ne-resize" , "nw-resize" , "n-resize" , "se-resize" , "sw-resize" , "s-resize" , "w-resize" , "text" , "wait" , "help" , "progress" ] ,
invalid _values : [ ]
} ,
"direction" : {
domProp : "direction" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "ltr" ] ,
other _values : [ "rtl" ] ,
invalid _values : [ ]
} ,
"display" : {
domProp : "display" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "inline" ] ,
/* XXX none will really mess with other properties */
2007-07-12 16:50:13 -07:00
prerequisites : { "float" : "none" , "position" : "static" } ,
2007-04-15 15:27:14 -07:00
other _values : [ "block" , "list-item" , "inline-block" , "table" , "inline-table" , "table-row-group" , "table-header-group" , "table-footer-group" , "table-row" , "table-column-group" , "table-column" , "table-cell" , "table-caption" , "none" ] ,
invalid _values : [ ]
} ,
"elevation" : {
domProp : "elevation" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "level" , "0deg" ] ,
other _values : [ "below" , "above" , "60deg" , "higher" , "lower" , "-79deg" , "0.33deg" ] ,
invalid _values : [ ]
} ,
"empty-cells" : {
domProp : "emptyCells" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "show" ] ,
other _values : [ "hide" ] ,
invalid _values : [ ]
} ,
"float" : {
domProp : "cssFloat" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "left" , "right" ] ,
invalid _values : [ ]
} ,
"font" : {
domProp : "font" ,
inherited : true ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "font-style" , "font-variant" , "font-weight" , "font-size" , "line-height" , "font-family" , "font-stretch" , "font-size-adjust" ] ,
/* XXX could be sans-serif */
initial _values : [ "medium serif" ] ,
2007-05-15 20:03:34 -07:00
other _values : [ "large serif" , "9px fantasy" , "bold italic small-caps 24px/1.4 Times New Roman, serif" , "caption" , "icon" , "menu" , "message-box" , "small-caption" , "status-bar" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"font-family" : {
domProp : "fontFamily" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "serif" ] ,
other _values : [ "sans-serif" , "Times New Roman, serif" , "'Times New Roman', serif" , "cursive" , "fantasy" ] ,
invalid _values : [ ]
} ,
"font-size" : {
domProp : "fontSize" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "medium" ] ,
2007-04-20 17:17:29 -07:00
other _values : [ "large" , "2em" , "50%" , "xx-small" , "36pt" , "8px" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"font-size-adjust" : {
domProp : "fontSizeAdjust" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ "0.3" , "0.5" , "0.7" ] ,
invalid _values : [ ]
} ,
"font-stretch" : {
domProp : "fontStretch" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" ] ,
other _values : [ "wider" , "narrower" , "ultra-condensed" , "extra-condensed" , "condensed" , "semi-condensed" , "semi-expanded" , "expanded" , "extra-expanded" , "ultra-expanded" ] ,
invalid _values : [ ]
} ,
"font-style" : {
domProp : "fontStyle" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" ] ,
other _values : [ "italic" , "oblique" ] ,
invalid _values : [ ]
} ,
"font-variant" : {
domProp : "fontVariant" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" ] ,
other _values : [ "small-caps" ] ,
invalid _values : [ ]
} ,
"font-weight" : {
domProp : "fontWeight" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-17 11:01:17 -07:00
initial _values : [ "normal" , "400" ] ,
other _values : [ "bold" , "100" , "200" , "300" , "500" , "600" , "700" , "800" , "900" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ "107" , "399" , "401" , "699" , "710" ]
} ,
"height" : {
domProp : "height" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ " auto" ] ,
/* XXX these have prerequisites */
other _values : [ "15px" , "3em" , "15%" ] ,
2007-05-03 16:11:00 -07:00
invalid _values : [ "none" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ]
2007-04-15 15:27:14 -07:00
} ,
2007-05-16 08:51:37 -07:00
"ime-mode" : {
domProp : "imeMode" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "normal" , "disabled" , "active" , "inactive" ] ,
invalid _values : [ "none" , "enabled" , "1px" ]
} ,
2007-04-15 15:27:14 -07:00
"left" : {
domProp : "left" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX requires position to be set */
/* XXX 0 may or may not be equal to auto */
initial _values : [ "auto" ] ,
other _values : [ "32px" , "-3em" , "12%" ] ,
invalid _values : [ ]
} ,
"letter-spacing" : {
domProp : "letterSpacing" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "normal" ] ,
other _values : [ "0" , "0px" , "1em" , "2px" , "-3px" ] ,
invalid _values : [ ]
} ,
"line-height" : {
domProp : "lineHeight" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-07-11 16:42:35 -07:00
/ *
* Inheritance tests require consistent font size , since
2007-07-11 15:23:03 -07:00
* getComputedStyle ( which uses the CSS2 computed value , or
* CSS2 . 1 used value ) doesn ' t match what the CSS2 . 1 computed
2007-07-11 16:42:35 -07:00
* value is . And they even require consistent font metrics for
* computation of 'normal' .
* /
prerequisites : { "font-size" : "19px" , "font-size-adjust" : "none" , "font-family" : "serif" , "font-weight" : "normal" , "font-style" : "normal" } ,
2007-04-15 15:27:14 -07:00
initial _values : [ "normal" ] ,
other _values : [ "1.0" , "1" , "1em" , "27px" ] ,
invalid _values : [ ]
} ,
"list-style" : {
domProp : "listStyle" ,
inherited : true ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "list-style-type" , "list-style-position" , "list-style-image" ] ,
2007-04-18 19:49:44 -07:00
initial _values : [ "outside" , "disc" , "none disc outside" ] ,
other _values : [ "inside none" , "none inside" , "none none inside" , "none outside none" , "square" , 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==")' , "none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"list-style-image" : {
domProp : "listStyleImage" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "none" ] ,
other _values : [ 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==")' ] ,
invalid _values : [ ]
} ,
"list-style-position" : {
domProp : "listStylePosition" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "outside" ] ,
other _values : [ "inside" ] ,
invalid _values : [ ]
} ,
"list-style-type" : {
domProp : "listStyleType" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "disc" ] ,
other _values : [ "circle" , "decimal-leading-zero" , "upper-alpha" ] ,
invalid _values : [ ]
} ,
"margin" : {
domProp : "margin" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "margin-top" , "margin-right" , "margin-bottom" , "margin-left" ] ,
initial _values : [ "0" , "0px 0 0em" , "0% 0px 0em 0pt" ] ,
other _values : [ "3px 0" , "2em 4px 2pt" , "1em 2em 3px 4px" ] ,
invalid _values : [ ]
} ,
"margin-bottom" : {
domProp : "marginBottom" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX testing auto has prerequisites */
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
} ,
"margin-left" : {
domProp : "marginLeft" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
/* XXX testing auto has prerequisites */
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
} ,
"margin-right" : {
domProp : "marginRight" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
/* XXX testing auto has prerequisites */
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
} ,
"margin-top" : {
domProp : "marginTop" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX testing auto has prerequisites */
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
} ,
"marker-offset" : {
domProp : "markerOffset" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
initial _values : [ "auto" ] ,
other _values : [ "6em" , "-1px" ] ,
invalid _values : [ ]
} ,
"marks" : {
/* XXX not a real property; applies only to page context */
domProp : "marks" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "crop" , "cross" , "crop cross" , "cross crop" ] ,
invalid _values : [ "none none" , "crop none" , "none crop" , "cross none" , "none cross" ]
2007-04-15 15:27:14 -07:00
} ,
"max-height" : {
domProp : "maxHeight" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "30px" , "50%" , "0" ] ,
2007-05-03 16:11:00 -07:00
invalid _values : [ "auto" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ]
2007-04-15 15:27:14 -07:00
} ,
"max-width" : {
domProp : "maxWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
2007-05-03 16:11:00 -07:00
other _values : [ "30px" , "50%" , "0" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ] ,
2007-04-16 18:07:22 -07:00
invalid _values : [ "auto" ]
2007-04-15 15:27:14 -07:00
} ,
"min-height" : {
domProp : "minHeight" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" ] ,
other _values : [ "30px" , "50%" ] ,
2007-05-03 16:11:00 -07:00
invalid _values : [ "auto" , "none" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ]
2007-04-15 15:27:14 -07:00
} ,
"min-width" : {
domProp : "minWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" ] ,
2007-05-03 16:11:00 -07:00
other _values : [ "30px" , "50%" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ] ,
2007-04-16 18:07:22 -07:00
invalid _values : [ "auto" , "none" ]
2007-04-15 15:27:14 -07:00
} ,
"opacity" : {
domProp : "opacity" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1" , "17" , "397.376" ] ,
other _values : [ "0" , "0.4" , "0.0000" , "-3" ] ,
invalid _values : [ "0px" , "1px" ]
2007-04-15 15:27:14 -07:00
} ,
"orphans" : {
domProp : "orphans" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
// XXX requires display:block
initial _values : [ "2" ] ,
other _values : [ "1" , "7" ] ,
invalid _values : [
// "0", // not clear whether it's valid or not.
// "-1", // not clear whether it's valid or not.
"0px" , "3px"
]
2007-04-15 15:27:14 -07:00
} ,
"outline" : {
domProp : "outline" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "outline-color" , "outline-style" , "outline-width" ] ,
2007-04-16 18:07:22 -07:00
initial _values : [
"none" , "medium" ,
// XXX Should be invert, but currently currentcolor.
//"invert", "none medium invert"
"currentColor" , "none medium currentcolor"
] ,
other _values : [ "solid" , "medium solid" , "green solid" , "10px solid" , "thick solid" ] ,
invalid _values : [ "5%" ]
2007-04-15 15:27:14 -07:00
} ,
"outline-color" : {
domProp : "outlineColor" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "color" : "black" } ,
2007-04-16 18:07:22 -07:00
initial _values : [ "currentColor" ] , // XXX should be invert
other _values : [ "green" , "rgba(255,128,0,0.5)" , "transparent" ] ,
invalid _values : [ "#0" , "#00" , "#0000" , "#00000" , "#0000000" , "#00000000" , "#000000000" ]
2007-04-15 15:27:14 -07:00
} ,
"outline-offset" : {
domProp : "outlineOffset" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" ] ,
other _values : [ "-3px" , "1em" ] ,
invalid _values : [ "5%" ]
2007-04-15 15:27:14 -07:00
} ,
"outline-style" : {
domProp : "outlineStyle" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
// XXX Should 'hidden' be the same as initial?
initial _values : [ "none" ] ,
other _values : [ "solid" , "dashed" , "dotted" , "double" , "outset" , "inset" , "groove" , "ridge" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"outline-width" : {
domProp : "outlineWidth" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-18 19:49:44 -07:00
prerequisites : { "outline-style" : "solid" } ,
2007-04-16 18:07:22 -07:00
initial _values : [ "medium" , "3px" ] ,
other _values : [ "thin" , "thick" , "1px" , "2em" ] ,
invalid _values : [ "5%" ]
2007-04-15 15:27:14 -07:00
} ,
"overflow" : {
domProp : "overflow" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "display" : "block" } ,
2007-04-15 15:27:14 -07:00
subproperties : [ "overflow-x" , "overflow-y" ] ,
2007-04-16 18:07:22 -07:00
initial _values : [ "visible" ] ,
other _values : [ "auto" , "scroll" , "hidden" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"overflow-x" : {
domProp : "overflowX" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "display" : "block" , "overflow-y" : "visible" } ,
2007-04-16 18:07:22 -07:00
initial _values : [ "visible" ] ,
other _values : [ "auto" , "scroll" , "hidden" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"overflow-y" : {
domProp : "overflowY" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-07-12 16:50:13 -07:00
prerequisites : { "display" : "block" , "overflow-x" : "visible" } ,
2007-04-16 18:07:22 -07:00
initial _values : [ "visible" ] ,
other _values : [ "auto" , "scroll" , "hidden" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"padding" : {
domProp : "padding" ,
inherited : false ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "padding-top" , "padding-right" , "padding-bottom" , "padding-left" ] ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0px 0 0em" , "0% 0px 0em 0pt" ] ,
other _values : [ "3px 0" , "2em 4px 2pt" , "1em 2em 3px 4px" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"padding-bottom" : {
domProp : "paddingBottom" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
2007-04-15 15:27:14 -07:00
} ,
"padding-left" : {
domProp : "paddingLeft" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
2007-04-15 15:27:14 -07:00
} ,
"padding-right" : {
domProp : "paddingRight" ,
inherited : false ,
type : CSS _TYPE _SHORTHAND _AND _LONGHAND ,
/* no subproperties */
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
2007-04-15 15:27:14 -07:00
} ,
"padding-top" : {
domProp : "paddingTop" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0px" , "0%" ] ,
other _values : [ "1px" , "2em" , "5%" ] ,
invalid _values : [ ]
2007-04-15 15:27:14 -07:00
} ,
"page" : {
domProp : "page" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "foo" , "bar" ] ,
invalid _values : [ "3px" ]
2007-04-15 15:27:14 -07:00
} ,
"page-break-after" : {
domProp : "pageBreakAfter" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "always" , "avoid" , "left" , "right" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"page-break-before" : {
domProp : "pageBreakBefore" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "always" , "avoid" , "left" , "right" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"page-break-inside" : {
domProp : "pageBreakInside" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "avoid" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"pause" : {
domProp : "pause" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "pause-before" , "pause-after" ] ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0s" , "0ms" , "0 0" , "0s 0ms" , "0ms 0" ] ,
other _values : [ "1s" , "200ms" , "-2s" , "50%" , "-10%" , "10% 200ms" , "-3s -5%" ] ,
invalid _values : [ "0px" ]
2007-04-15 15:27:14 -07:00
} ,
"pause-after" : {
domProp : "pauseAfter" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0s" , "0ms" ] ,
other _values : [ "1s" , "200ms" , "-2s" , "50%" , "-10%" ] ,
invalid _values : [ "0px" ]
2007-04-15 15:27:14 -07:00
} ,
"pause-before" : {
domProp : "pauseBefore" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "0s" , "0ms" ] ,
other _values : [ "1s" , "200ms" , "-2s" , "50%" , "-10%" ] ,
invalid _values : [ "0px" ]
2007-04-15 15:27:14 -07:00
} ,
"pitch" : {
domProp : "pitch" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "medium" ] ,
other _values : [ "x-low" , "low" , "high" , "x-high" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"pitch-range" : {
domProp : "pitchRange" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "50" , "50.0" ] ,
other _values : [ "0" , "100.0" , "99.7" , "47" , "3.2" ] ,
invalid _values : [ " -0.01" , "100.2" , "108" , "-3" ]
2007-04-15 15:27:14 -07:00
} ,
"position" : {
domProp : "position" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "static" ] ,
other _values : [ "relative" , "absolute" , "fixed" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"quotes" : {
domProp : "quotes" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ '"\\201C" "\\201D" "\\2018" "\\2019"' ] ,
other _values : [ "none" , "'\"' '\"'" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"richness" : {
domProp : "richness" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "50" , "50.0" ] ,
other _values : [ "0" , "100.0" , "99.7" , "47" , "3.2" ] ,
invalid _values : [ " -0.01" , "100.2" , "108" , "-3" ]
2007-04-15 15:27:14 -07:00
} ,
"right" : {
domProp : "right" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX requires position to be set */
/* XXX 0 may or may not be equal to auto */
initial _values : [ "auto" ] ,
other _values : [ "32px" , "-3em" , "12%" ] ,
invalid _values : [ ]
} ,
"size" : {
/* XXX not a real property; applies only to page context */
domProp : "size" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "landscape" , "portrait" , "8.5in 11in" , "14in 11in" , "297mm 210mm" , "21cm 29.7cm" , "100mm" ] ,
invalid _values : [
// XXX spec unclear on 0s and negatives
"100mm 100mm 100mm"
]
2007-04-15 15:27:14 -07:00
} ,
"speak" : {
domProp : "speak" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "normal" ] ,
other _values : [ "none" , "spell-out" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"speak-header" : {
domProp : "speakHeader" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "once" ] ,
other _values : [ "always" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"speak-numeral" : {
domProp : "speakNumeral" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "continuous" ] ,
other _values : [ "digits" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"speak-punctuation" : {
domProp : "speakPunctuation" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "code" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"speech-rate" : {
domProp : "speechRate" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "medium" ] ,
other _values : [ "x-slow" , "slow" , "fast" , "x-fast" , "faster" , "slower" , "80" , "500" , "73.2" ] ,
invalid _values : [
// "0", "-80" // unclear
]
2007-04-15 15:27:14 -07:00
} ,
"stress" : {
domProp : "stress" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "50" , "50.0" ] ,
other _values : [ "0" , "100.0" , "99.7" , "47" , "3.2" ] ,
invalid _values : [ " -0.01" , "100.2" , "108" , "-3" ]
2007-04-15 15:27:14 -07:00
} ,
"table-layout" : {
domProp : "tableLayout" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "fixed" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"text-align" : {
domProp : "textAlign" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
// don't know whether left and right are same as start
initial _values : [ "start" ] ,
other _values : [ "center" , "justify" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"text-decoration" : {
domProp : "textDecoration" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "underline" , "overline" , "line-through" , "blink line-through underline" , "underline overline line-through blink" ] ,
invalid _values : [ "underline none" , "none underline" , "line-through blink line-through" ]
2007-04-15 15:27:14 -07:00
} ,
"text-indent" : {
domProp : "textIndent" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" ] ,
other _values : [ "2em" , "5%" , "-10px" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"text-shadow" : {
domProp : "textShadow" ,
inherited : false ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "2px 2px" , "2px 2px 1px" , "2px 2px green" , "2px 2px 1px green" , "green 2px 2px" , "green 2px 2px 1px" , "green 2px 2px, blue 1px 3px 4px" ] ,
invalid _values : [ "3% 3%" , "2px 2px 2px 2px" , "2px 2px, none" ]
2007-04-15 15:27:14 -07:00
} ,
"text-transform" : {
domProp : "textTransform" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "capitalize" , "uppercase" , "lowercase" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"top" : {
domProp : "top" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
/* XXX requires position to be set */
/* XXX 0 may or may not be equal to auto */
initial _values : [ "auto" ] ,
other _values : [ "32px" , "-3em" , "12%" ] ,
invalid _values : [ ]
} ,
"unicode-bidi" : {
domProp : "unicodeBidi" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "normal" ] ,
other _values : [ "embed" , "bidi-override" ] ,
invalid _values : [ "auto" , "none" ]
2007-04-15 15:27:14 -07:00
} ,
"vertical-align" : {
domProp : "verticalAlign" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "baseline" ] ,
other _values : [ "sub" , "super" , "top" , "text-top" , "middle" , "bottom" , "text-bottom" , "15%" , "3px" , "0.2em" , "-5px" , "-3%" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"visibility" : {
domProp : "visibility" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "visible" ] ,
other _values : [ "hidden" , "collapse" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"voice-family" : {
domProp : "voiceFamily" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "male" ] , /* arbitrary guess */
other _values : [ "female" , "child" , "Bob, male" , "Jane, Juliet, female" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"volume" : {
domProp : "volume" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "50" , "50.0" , "medium" ] ,
other _values : [ "0" , "100.0" , "99.7" , "47" , "3.2" , "silent" , "x-soft" , "soft" , "loud" , "x-loud" ] ,
invalid _values : [ " -0.01" , "100.2" , "108" , "-3" ]
2007-04-15 15:27:14 -07:00
} ,
"white-space" : {
domProp : "whiteSpace" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "normal" ] ,
other _values : [ "pre" , "nowrap" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"widows" : {
domProp : "widows" ,
inherited : true ,
backend _only : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
// XXX requires display:block
initial _values : [ "2" ] ,
other _values : [ "1" , "7" ] ,
invalid _values : [
// "0", // not clear whether it's valid or not.
// "-1", // not clear whether it's valid or not.
"0px" , "3px"
]
2007-04-15 15:27:14 -07:00
} ,
"width" : {
domProp : "width" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ " auto" ] ,
/* XXX these have prerequisites */
2007-05-03 16:11:00 -07:00
other _values : [ "15px" , "3em" , "15%" , "-moz-intrinsic" , "-moz-min-intrinsic" , "-moz-shrink-wrap" , "-moz-fill" ] ,
invalid _values : [ "none" ]
2007-04-15 15:27:14 -07:00
} ,
"word-spacing" : {
domProp : "wordSpacing" ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "normal" , "0" , "0px" , "-0em" ] ,
other _values : [ "1em" , "2px" , "-3px" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"z-index" : {
domProp : "zIndex" ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
/* XXX requires position */
initial _values : [ "auto" ] ,
other _values : [ "0" , "3" , "-7000" , "12000" ] ,
invalid _values : [ "3.0" , "17.5" ]
2007-04-15 15:27:14 -07:00
}
,
"clip-path" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mypath)" , "url('404.svg#mypath')" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"clip-rule" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "nonzero" ] ,
other _values : [ "evenodd" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"color-interpolation" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "sRGB" ] ,
other _values : [ "auto" , "linearRGB" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"color-interpolation-filters" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "linearRGB" ] ,
other _values : [ "sRGB" , "auto" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"dominant-baseline" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "use-script" , "no-change" , "reset-size" , "ideographic" , "alphabetic" , "hanging" , "mathematical" , "central" , "middle" , "text-after-edge" , "text-before-edge" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"fill" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "black" , "#000" , "#000000" , "rgb(0,0,0)" , "rgba(0,0,0,1)" ] ,
other _values : [ "green" , "#fc3" , "url('#myserver')" , "url(foo.svg#myserver)" , 'url("#myserver") green' , "none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"fill-opacity" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1" , "2.8" , "1.000" ] ,
other _values : [ "0" , "0.3" , "-7.3" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"fill-rule" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "nonzero" ] ,
other _values : [ "evenodd" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"filter" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#myfilt)" ] ,
invalid _values : [ "url(#myfilt) none" ]
2007-04-15 15:27:14 -07:00
} ,
"flood-color" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "black" , "#000" , "#000000" , "rgb(0,0,0)" , "rgba(0,0,0,1)" ] ,
other _values : [ "green" , "#fc3" ] ,
invalid _values : [ "url('#myserver')" , "url(foo.svg#myserver)" , 'url("#myserver") green' ]
2007-04-15 15:27:14 -07:00
} ,
"flood-opacity" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1" , "2.8" , "1.000" ] ,
other _values : [ "0" , "0.3" , "-7.3" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"marker" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _TRUE _SHORTHAND ,
subproperties : [ "marker-start" , "marker-mid" , "marker-end" ] ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mysym)" ] ,
invalid _values : [ "none none" , "url(#mysym) url(#mysym)" , "none url(#mysym)" , "url(#mysym) none" ]
2007-04-15 15:27:14 -07:00
} ,
"marker-end" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mysym)" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"marker-mid" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mysym)" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"marker-start" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mysym)" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"mask" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "url(#mymask)" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"pointer-events" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "visiblepainted" ] ,
other _values : [ "visibleFill" , "visiblestroke" , "Visible" , "painted" , "fill" , "stroke" , "all" , "none" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"shape-rendering" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "optimizeSpeed" , "crispEdges" , "geometricPrecision" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stop-color" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "black" , "#000" , "#000000" , "rgb(0,0,0)" , "rgba(0,0,0,1)" ] ,
other _values : [ "green" , "#fc3" ] ,
invalid _values : [ "url('#myserver')" , "url(foo.svg#myserver)" , 'url("#myserver") green' ]
2007-04-15 15:27:14 -07:00
} ,
"stop-opacity" : {
domProp : null ,
inherited : false ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1" , "2.8" , "1.000" ] ,
other _values : [ "0" , "0.3" , "-7.3" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "black" , "#000" , "#000000" , "rgb(0,0,0)" , "rgba(0,0,0,1)" , "green" , "#fc3" , "url('#myserver')" , "url(foo.svg#myserver)" , 'url("#myserver") green' ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-dasharray" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "none" ] ,
other _values : [ "5px,3px,2px" , " 5px ,3px , 2px " , "1px" , "5%" , "3em" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-dashoffset" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "0" , "-0px" , "0em" ] ,
other _values : [ "3px" , "3%" , "1em" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-linecap" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "butt" ] ,
other _values : [ "round" , "square" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-linejoin" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "miter" ] ,
other _values : [ "round" , "bevel" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-miterlimit" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "4" ] ,
other _values : [ "1" , "7" , "5000" ] ,
invalid _values : [ "0.9" , "0" , "-1" , "3px" ]
2007-04-15 15:27:14 -07:00
} ,
"stroke-opacity" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1" , "2.8" , "1.000" ] ,
other _values : [ "0" , "0.3" , "-7.3" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"stroke-width" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "1px" ] ,
other _values : [ "0" , "0px" , "-0em" , "17px" , "0.2em" ] ,
invalid _values : [ "-0.1px" , "-3px" ]
2007-04-15 15:27:14 -07:00
} ,
"text-anchor" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "start" ] ,
other _values : [ "middle" , "end" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
} ,
"text-rendering" : {
domProp : null ,
inherited : true ,
type : CSS _TYPE _LONGHAND ,
2007-04-16 18:07:22 -07:00
initial _values : [ "auto" ] ,
other _values : [ "optimizeSpeed" , "optimizeLegibility" , "geometricPrecision" ] ,
2007-04-15 15:27:14 -07:00
invalid _values : [ ]
}
}