manakai//CSS Extensions

manakai//CSS Extensions

[1] manakai implements some proprietary extensions to CSS.

[2] For Selectors extensions, see separate documentation: Selectors Extensions.

<color>

[17] The keyword '-manakai-default' can be used as <color>. The keyword identifies the initial value of the 'color' property. The computed value of the keyword is the initial value of the 'color' property, represented in the same format as computed value of the RGB or RGBA value.

<'outline-color'>

[16] The keyword '-manakai-invert-or-currentcolor' can be used as <'outline-color'>. The keyword represents 'invert' if that keyword is supported, or 'currentColor' otherwise. The computed value of the keyword is the computed value of 'invert' or 'currentColor', respectively.

<absolute-size>

[15] The keyword '-manakai-xxx-large' MUST be replaced by '-webkit-xxx-large' at parse time.

'border-spacing'

[14] The '-manakai-border-spacing-x' property MUST be replaced by '-webkit-border-horizontal-spacing' property at parse time.

[13] The '-manakai-border-spacing-y' property MUST be replaced by '-webkit-border-vertical-spacing' property at parse time.

<generic-family>

[12] The keyword '-manakai-default' can be used as <geeric-family>. The keyword identifies the initial value of the 'font-family' property. The computed value of the keyword is the initial value of the 'font-family' property.

[11] Following values are obsolete: '-manakai-caption', '-manakai-icon', '-manakai-menu', and '-manakai-message-box'.

<'quotes'>

[10] The keyword '-manakai-default' can be used as <'quotes'>. The keyword identifies the initial value of the 'quotes' property. The computed value of the keyword is the computed value of the initial value of the 'quotes' property.

Property extensions

[6] Properties '-manakai-border-spacing-x' and '-manakai-border-spacing-y' work as longhand properties for the standard 'border-spacing' property [CSS21].

Allowed values for these properties are same as allowed values for border-spacing, except that only one value MAY be specified.

If '-manakai-border-spacing-x' property is specified, then it MUST be interpreted as if the 'border-spacing' property were specified with two values, whose first value is the value specified to the '-manakai-border-spacing-x' property, and whose second value is the special value that represents the horizontal spacing length is left unchanged.

If '-manakai-border-spacing-y' property is specified, then it MUST be interpreted as if the 'border-spacing' property were specified with two values, whose first value is the special value that represents the vertical spacing length is left unchanged, and whose second value is the value specified to the '-manakai-border-spacing-y' property.

The computed value of these properties are the first or the second value of the computed value of the 'border-spacing' property, respectively.

Other characteristics of thse properties, such as whether inherited or not, are same as those for the 'border-spacing' property.

Attributes ManakaiBorderSpacingX and ManakaiBorderSpacingY on the CSSStyleDeclaration interface [CSSOM] MUST reflect these properties, respectively.

Property value extensions

[3] Keyword '-manakai-default' MAY be used where <color> is expected. It represents the initial value of the 'color' property [CSS21].

The initial value of the 'color' property is the user-specified default color for texts.

The computed value of '-manakai-default' is itself.

[7] Keyword '-manakai-default' MAY also be used where <font-family> is expected. It represents the intial value of the 'font-family' property [CSS21].

The initial value of the '-manakai-default' is the user-defined default font family.

The computed value of '-manakai-default' is itself.

[9] Keyword '-manakai-default' MAY also be used where <'quotes'> is expected. It represents the intial value of the 'quotes' property [CSS21].

The initial value of the '-manakai-default' is the default quotation marks.

The computed value of '-manakai-default' is itself.

[4] Keyword '-manakai-invert-or-currentcolor' MAY be used where <'outline-color'> is expected. It represents the initial value of the 'outline-color' property [CSS21].

The initial value of the 'outline-color' property is either 'invert' or 'currentColor', depending on the environment.

The computed value of '-manakai-invert-or-currentcolor' is 'invert', if that keyword is supported, or same as the computed value of the 'color' property, otherwise.

[5] Keyword '-manakai-xxx-large]] represents what '-webkit-xxx-large' represents [WEBKIT].

Should we deprecate this keyword and convert into '-webkit-xxx-large' at parse time?

[8] Keywords '-manakai-caption', '-manakai-icon', '-manakai-menu', '-manakai-message-box', '-manakai-small-caption', and '-manakai-status-bar' MAY be used where <font-family> is expected. These represent font families that would be used when CSS 2.1 system font keywords with similar names are specified.

Computed values of these keywords are same as themselves.

References

[CSS21] CSS 2.1 Specification, latest version <http://www.w3.org/TR/CSS21/>.

[CSSOM] CSSOM Specification.

[WEBKIT] Ref to WebKit extensions

memo