Given a shorthand property, returns an array of the computed properties for that shorthand property. If given
a known property that is not a shorthand, simply returns the given property. If given an unknown property,
returns an empty array.
shorthandProperty - the shorthand property name. For example, "background" or "border".
[recursivelyResolve=false] - recursively resolve additional longhand properties if the shorthands expand to additional shorthands. For example, the border property expands to border-width, which expands further to border-left-width, border-right-width, etc.
returns an array containing the computed properties for the given shorthand property. Returns an empty array if the given property is not a valid property.
Given a property and value attempts to expand the value into its longhand equivalents. Returns an object
mapping the property longhand names to the longhand values. If the property cannot be expanded (i.e. the property
is not a shorthand property) simply returns an object mapping the original property to the original value.
propertyName - the property name for the given value
propertyValue - the value of the property
[recursivelyResolve=false] - recursively resolve additional longhand properties if the shorthands expand to additional shorthands. For example, the border property expands to border-width, which expands further to border-left-width, border-right-width, etc.
[includeInitialValues=false] - when expanding the shorthand property, fill in any missing longhand values with their initial value. For example, the property declaration "border: 1px" only explicitly sets the "border-width" longhand property. If this param is true, the returned object will fill in the initial values for "border-style" and "border-color". By default, the returned object will only contain the "border-width".
throws {ParseError} - if the propertyValue cannot be parsed.
Because of the initial keyword and shorthand expansion,
there are many possible values that are equivalently identical
with the initial value of a css property. This function
returns true for all possible values that have the effect of
setting a property to its initial value.
property - string. the property to which the value is assigned.
Returns the initial value or values a property has by
default according the CSS specification. If the property's initial
value(s) is/are unknown, the global keyword initial is returned.
property - (string) the property name
recursivelyResolve - (boolean) when given a shorthand property,
causes the result to include long hand values.
includeShorthands - (boolean) when resolving recursively, causes the
the result to include the specified shorthand property as well as any
intermediate shorthands of this property set to the initial value.
Get the initial value for a property. Returns a string that is the initial
value has by default according the CSS specification. If the property's
initial value is unknown, the global keyword initial is returned.