none | <filter>+
none or non-empty whitespace separated list of filters. The <filter> here is one of following functions:
colorize(color)
- per pixel, transforms the image to grayscale values (luminocity) and use that luminocity as multiplier for the color to determine final pixels colors.color-schema(color)
- per pixel, selectively. For each gray pixel applies color to it according to its luminocity.contrast-brightness-gamma( contrast, brightness, gamma )
- per pixel, increase/decrease contrast, brightness and gamma value of each pixel. Contrast and brightness accept values in the range 0.0 ... 0.1, where value 0.5 means "no change". Gamma (exponent) accepts values 0.0 ... 5.0 where value 1.0 means no change.contrast(value)
- per pixel, increase/decrease contrast of each pixel. Takes numeric value in the range 0.0 ... 0.1, where 0.5 means "no change".brightness(value)
- per pixel, increase/decrease brightness of each pixel. Takes numeric value in the range 0.0 ... 0.1, where 0.5 means "no change".gamma(value)
- per pixel, increase/decrease gamma of each pixel. Takes numeric value in the range 0.0 ... 5.0 where value 1.0 means no change.hue(color)
or hue(number)
- per pixel, converts each pixel to HSV representation, changes its hue value and converts the color back to RGB color space. Thus if original color is black, gray or white then it will not change and if it is non-gray color then it will be transformed/changed. The number here is in the range 0 ... 360 - angle of color vector in HSV space.flip-x()
- mirrors the image in horizontal direction.flip-y()
- mirrors the image in vertical direction.no-repeat | repeat | repeat-x | repeat-y | stretch [keep-ratio] | expand [stretch-top] [stretch-bottom] [stretch-left] [stretch-right] [stretch-middle]
Defines image fill mode, accepts one of the values:
no-repeat
- image is rendered once according at position defined by ***-image-position
.repeat
- fills image rendering area in full.repeat-x
- repeates the image in a row at position defined by ***-image-position
.repeat-y
- repeates the image in a column at position defined by ***-image-position
.stretch
- fills the image rendering area in full stretching/shrinking it if needed in both directions.stretch keep-ratio
- inscribes ti image inside image rendering area preserving its width/height ratio.expand
- expands nine sections of the image defined by ***-image-position
so it will cover the area in full. Corner sections rendered as they are. top/left/bottom/right/middle sections are tiled to fill. If stretch-top
, stretch-bottom
, stretch-left
or stretch-middle
are specified then corresponding sections are stretched rather than tiled.none | <filter>+
none or non-empty whitespace separated list of filters. The <filter> here is one of following functions:
colorize(color)
- per pixel, transforms the image to grayscale values (luminocity) and use that luminocity as multiplier for the color to determine final pixels colors.color-schema(color)
- per pixel, selectively. For each gray pixel applies color to it according to its luminocity.contrast-brightness-gamma( contrast, brightness, gamma )
- per pixel, increase/decrease contrast, brightness and gamma value of each pixel. Contrast and brightness accept values in the range 0.0 ... 0.1, where value 0.5 means "no change". Gamma (exponent) accepts values 0.0 ... 5.0 where value 1.0 means no change.contrast(value)
- per pixel, increase/decrease contrast of each pixel. Takes numeric value in the range 0.0 ... 0.1, where 0.5 means "no change".brightness(value)
- per pixel, increase/decrease brightness of each pixel. Takes numeric value in the range 0.0 ... 0.1, where 0.5 means "no change".gamma(value)
- per pixel, increase/decrease gamma of each pixel. Takes numeric value in the range 0.0 ... 5.0 where value 1.0 means no change.hue(color)
or hue(number)
- per pixel, converts each pixel to HSV representation, changes its hue value and converts the color back to RGB color space. Thus if original color is black, gray or white then it will not change and if it is non-gray color then it will be transformed/changed. The number here is in the range 0 ... 360 - angle of color vector in HSV space.flip-x()
- mirrors the image in horizontal direction.flip-y()
- mirrors the image in vertical direction.no-repeat | repeat | repeat-x | repeat-y | stretch [keep-ratio] | expand [stretch-top] [stretch-bottom] [stretch-left] [stretch-right] [stretch-middle]
Defines image fill mode, accepts one of the values:
no-repeat
- image is rendered once according at position defined by ***-image-position
.repeat
- fills image rendering area in full.repeat-x
- repeates the image in a row at position defined by ***-image-position
.repeat-y
- repeates the image in a column at position defined by ***-image-position
.stretch
- fills the image rendering area in full stretching/shrinking it if needed in both directions.stretch keep-ratio
- inscribes ti image inside image rendering area preserving its width/height ratio.expand
- expands nine sections of the image defined by ***-image-position
so it will cover the area in full. Corner sections rendered as they are. top/left/bottom/right/middle sections are tiled to fill. If stretch-top
, stretch-bottom
, stretch-left
or stretch-middle
are specified then corresponding sections are stretched rather than tiled.clip | ellipsis | path-ellipsis
The property defines the way of text drawing when it overflows. The property is in effect only for text container elements that a) are establishing boxes (e.g. are display:block
) and have b) overflow-x:hidden;
defined on them.
clip
- default value, text is clipped by content area;ellipsis
- truncates the string to fit into content area and adds …
(ellipsis character) at the end indicating that there are more characters.path-ellipsis
- splits the string on last '/' or '\' character and truncates start part and adds …
(ellipsis character) in between start and end fragments. H-SMILE specific.inherit | none | left-to-right | top-to-right |
inherit( <part-list> ) | none( <part-list> ) | left-to-right( <part-list> ) | top-to-right( <part-list> )
Where <part-list>
is a comma separated list that contains one or many of following literals: border
, padding
, margin
, background
, foreground
, layout
.
Default value: inherit
.
The property defines mapping of directional related properties. For example this declaration:
div { mapping: left-to-right(border,margin); }
will cause left and right borders (colors, widths and styles) and margins to be swapped (mirrored in this case) so for example border defined as border-left will be used as border-right for rendering purposes.
Note that is inheritable by default property. So if to define body { mapping: left-to-right;}
all directional properties of the element and its descendants will be mirrored horizontally.
Meaning of part names in <part-list>
:
border
- all border related properties : color, style and width.padding
- all padding properties, padding-left, padding-right, etc.margin
- all margin properties, margin-left, margin-right, hit-margin, etc.background
- directional background properties: background-position, background image bits and gradients.foreground
- directional foreground properties: foreground-position and foreground image bits.layout
- layout is mirrored. For example flow:horizontal; mapping: left-to-right(layout);
will cause blocks to be replaced from right to left.