The manakai project

Web::CSS::Values

CSS value definitions

DESCRIPTION

XXX

REQUIRES FEATURES

XXX

If a property is supported, its initial value MUST be supported.

If a supported property only accepts <integer>, <number>, <length>, and/or <percentage>, any possible value MUST be supported. If a supported property only accepts the only keyword which is the initial value of the property, as well as <integer>, <number>, <length>, and/or <percentage>, any possible value MUST be supported.

If a supported property only accepts a keyword from the limited set, supported values MUST be flagged by:

  $resolver->{prop_value}->{$prop_name}->{$value} = 1

... where $prop_name is CSS property name in lowercase and $value is the supported keyword. The initial value of the property MUST be supported.

If it supports the 'background-position-x' or 'background-position-y' property, any possible value MUST be supported.

If it supports a property whose value is <line-width>, any possible value MUST be supported.

If it supports a property which allows either <url> or 'none', any possible value MUST be supported.

If it supports the 'font-family' property, it MUST support any possible value.

<color>

If <color> is supported, it MUST support RGB colors (internally represented as 'RGBA' values with alpha 0) and CSS 2.1 system colors.

$resolver->{prop_value}->{color}->{transparent} == 1

Transparent colors (internally represented as 'RGBA' values with alpha 1) MUST be supported.

$resolver->{function}->{rgba} == 1

Any RGBA color MUST be supported.

$resolver->{prop_value}->{color}->{flavor} == 1

The 'flavor' keyword MUST be supported.

<'outline-color'>

$resolver->{prop_value}->{'outline-color'}->{invert} == 1

The 'invert' and '-manakai-invert-or-currentcolor' keywords MUST be supported.

Width and height

Whether keywords 'available', 'min-content', 'max-content', and 'fit-content' are supported or not are controlled by:

  $resolver->{prop_value}->{$key}->{$keyword} == 1

... where $key is width (for 'width', 'min-width', and 'max-width' properties) or height (for 'height', 'min-height', and 'max-height' properties) and $keyword is the keyword, in lowercase, respectively.

SPECIFICATIONS

CSSVALUES

CSS Values and Units <http://dev.w3.org/csswg/css-values/>.

The parser MUST convert non-keyword <color> values to the |rgba()| functional notation.

The parser MUST interpret <length> value '0' as '0px'.

The number of <resolution> must be positive.

CSSSYNTAX

CSS Syntax <http://dev.w3.org/csswg/css-syntax/#integer>.

QUIRKS

Quirks Mode <http://quirks.spec.whatwg.org/>.

MQ

Media Queries <http://dev.w3.org/csswg/mediaqueries/#values>.

CSSCOLOR

CSS Color <http://dev.w3.org/csswg/css-color/#colorunits>.

Color keywords MUST be compared ASCII case-insensitively.

The parser MUST replace functions '-moz-rgba()' and '-moz-hsla()' by 'rgba()' and 'hsla()', respectively. The parser MUST replace functions 'hsl()' and 'hsla()' by equivalent 'rgb()' or 'rgba()' value. The parser must clamp the <alphavalue> component in 'rgba()' function, if necessary. If the <alphavalue> component of 'rgba()' function is equal to 1, it MUST be replaced by equivalent 'rgb()' function. Then, the parser MAY ignore 'rgba()' function if its <alphavalue> is not supported.

CSSUI

CSS Basic User Interface <http://dev.w3.org/csswg/css-ui/>.

MANAKAICSS

manakai CSS Extensions <http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%20CSS%20Extensions>.

SEE ALSO

Web::CSS::Props, Web::CSS::MediaQueries::Features.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2007-2013 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.