CSS Property Reference

This is a description of CSS properties recognized by RAP and their admissible values.


Defines one or more animated effects.

Any number of animations can be set at once, separated by commas. To disables all animations, set only none.

Format: <animation-name> <animation-duration> <animation-timing-function> (, <animation-name> <animation-duration> <animation-timing-function> )* | none



References the name of an effect the widget supports. (See the animation-description of the individual widgets.) Unsupported effects will be ignored. (However the effect might be supported in the future and then not be ignored anymore.) If the given effects contradict each other (e.g. fadeIn and slideIn), the widget may use either one.

Currently existing effects:


The duration of the effect in seconds or milliseconds.

Format: positive integer, immediately followed by s or ms.


Describes how the animation progresses over time.

Valid values are: ease, linear, ease-in, ease-out and ease-in-out.


Defines the color used as the background of the element:

Format: <named-color> | <hex-color> | <rgb-color> | transparent


Defines either an image or a color-gradient to cover the background of a widget. May also be none, in this case background-color will be used.

Format: <image-url> | <color-gradient> | none



Supported image-formats are jpeg, gif and png. The path is relative to the root of the bundle.

Format: url(, followed by the path and filename, followed by ).


Format: gradient(, followed by a list of comma-separated arguments, followed by ).

The first three arguments define the type and direction of the gradient. RAP currently only supports linear vertical gradients from the top to the bottom and linear vertical gradients from left to right. Therefore these arguments have to be either exactly "linear, left top, left bottom" or exactly "linear, left top, right top". Any other arguments will produce an error.

After this, the colors are defined. At least two colors have to be given, using from( COLOR ) and to( COLOR ). Between these two, any number of colors may be defined using color-stop( POSITION, COLOR ).

POSITION is a ascending percentage value.
<named-color> | <hex-color> | <rgb-color>.

For the same widget, background-image should not be combined with any background-color other than transparent, as the behavior of RAP for this case is not defined and may differ from case to case.


Used to define the border that is drawn around a widget or a part of a widget.

Format: <border-width> <border-style> <border-color>

All 3 values are optional, though at least one must be given.



The width of the border. Defaults to 0px.

Format: <dimension>


One of the following values: solid, dotted, dashed, hidden, double, inset, outset, groove, ridge, none.
Defaults to solid.

Note that if border-radius of the same widget has a value larger than 0px, any border-style other than none or hidden is interpreted as solid.


Format: <named-color> | <hex-color> | <rgb-color> | transparent
Is black by default.


See border.


Defines only the color of the border.

Format: <border-color>


Defines the four radii of a rounded border.

Format: <box-dimension>

Note that in this case the box-dimension values stand for top-left top-right bottom-right bottom-left.


This property is currently ignored.

Format: <named-color> | <hex-color> | <rgb-color>


Defines only the color of the upper border.

Format: <border-color>


Defines only the color of the lower border.

Format: <border-color>


Used to define the shadow that is drawn behind the widget.

Format: <shadow> | none


Format: <dimension> <dimension> (<dimension> (<dimension>)?)? <shadow-color>



Format: <named-color> | <hex-color> | <rgb-color> | <rgba-color>


Like the <rgb-color> notation, but with one more parameter for opacity as used in the opacity attribute.



Used to define the shadow that is drawn behind the widget text. Note: Internet Explorer does not support text shadow.

Format: <text-shadow> | none


Format: <dimension> <dimension> (<dimension>)? <shadow-color>



The color used for foreground-elements, e.g. Text.

Format: <named-color> | <hex-color> | <rgb-color> | inherit


Valid color-names are: black, gray, silver, white, maroon, red, purple, fuchsia, green, lime, navy, blue, olive, yellow, teal, aqua.


The format in hexadecimal notation is a # immediately followed by either three or six hexadecimal characters. The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros.



The format in the rgb notation is rgb(, followed by a comma-separated list of three numerical values (either integer or percentage), followed by ). The integer value 255 corresponds to 100%.



Defines a the form of the mouse pointer over a certain widget.

Format: <cursor-type> | <image-url>


One of the following: default, wait, crosshair, help, move, text, pointer, e-resize, n-resize, w-resize, s-resize, ne-resize, se-resize, nw-resize, sw-resize, col-resize, row-resize, progress, not-allowed, no-drop.


The font used to render the text.

Format: (<font-style>)? (<font-weight>)? <font-size> <font-family>


Optional value, may be normal or italic. Is normal by default.


Optional value, may be normal or bold. Default is normal.


Height of the text in pixels. See <dimension>.


Name of the font that should be used. Is ignored if the font is not available on the client-system.
Several comma-seperated values can be given. The order is relevant, as the first available font will be used.
Font names containing any white spaces must be quoted.

As a fallback mechanism, one of the following generic fonts should be given as the last value: serif, sans-serif, cursive, fantasy, monospace.

For the color of the text, the color-property is used. Effects can be added using text-decoration.



A dimension that defines the height of certain parts of a widget.

Format: <dimension>


A non-negative integer with px as unit. May be zero.



Defines the distance between the element and its surroundings.

Format: <box-dimension>


Defines four dimensions, in the order of top right bottom left.



A rational number between (and including) 0 and 1 without a unit.



Defines the distance between the elements border and its content.

Format: <box-dimension>


The font list returned by Display#getFontList().

See font


Defines an RWT system image.

Format: <image-url>


Defines an RWT system image.

Format: <image-url>


Defines an RWT system image.

Format: <image-url>


Defines an RWT system image.

Format: <image-url>


Defines an RWT system image.

Format: <image-url>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


Defines an RWT system color.

Format: <named-color> | <hex-color> | <rgb-color>


A dimension that defines the distance between certain parts of a widget.

Format: <dimension>


Additional decorative effects to render a text with.

Format: underline | overline | line-through | none



A dimension that defines the width of certain parts of a widget.

Format: <dimension>