Extensions to CSS

WebKit supports several extended CSS properties. The following table lists the extended properties for which support is established. Additional non-standard properties are available in WebKit, but are not fully supported in AIR, either because they are still under development in WebKit, or because they are experimental features that may be removed in the future.

CSS property name

Values

Description

-webkit-border-horizontal-spacing

Non-negative unit of length

Specifies the horizontal component of the border spacing.

-webkit-border-vertical-spacing

Non-negative unit of length

Specifies the vertical component of the border spacing.

-webkit-line-break

after-white-space, normal

Specifies the line break rule to use for Chinese, Japanese, and Korean (CJK) text.

-webkit-margin-bottom-collapse

collapse, discard, separate

Defines how the bottom margin of a table cell collapses.

-webkit-margin-collapse

collapse, discard, separate

Defines how the top and bottom margins of a table cell collapses.

-webkit-margin-start

Any unit of length.

The width of the starting margin. For left-to-right text, this property overrides the left margin. For right-to-left text, this property overrides the right margin.

-webkit-margin-top-collapse

collapse, discard, separate

Defines how the top margin of a table cell collapses.

-webkit-nbsp-mode

normal, space

Defines the behavior of non-breaking spaces within the enclosed content.

-webkit-padding-start

Any unit of length

Specifies the width of the starting padding. For left-to-right text, this property overrides the left padding value. For right-to-left text, this property overrides the right padding value.

-webkit-rtl-ordering

logical, visual

Overrides the default handling of mixed left-to-right and right-to-left text.

-webkit-text-fill-color

Any named color or numeric color value

Specifies the text fill color.

-webkit-text-security

circle, disc, none, square

Specifies the replacement shape to use in a password input field.

-webkit-user-drag

  • auto — Default behavior

  • element — The entire element is dragged

  • none — The element cannot be dragged

Overrides the automatic drag behavior.

-webkit-user-modify

read-only, read-write, read-write-plaintext-only

Specifies whether the content of an element can be edited.

-webkit-user-select

  • auto — Default behavior

  • none — The element cannot be selected

  • text — Only text in the element can be selected

Specifies whether a user can select the content of an element.

For more information, see the Apple Safari CSS Reference (http://developer.apple.com/documentation/AppleApplications/Reference/SafariCSSRef/).