The following lists some of the custom style properties that Mozilla supports.
Properties:
Used to specify a binding to use for the element. The property should be a URL of an XBL file containing the binding. The URL may contain an anchor to point to a specific binding with the XBL file, referenced by its id attribute.
This property can be used to give borders rounded corners. This should be set to a numeric value indicating the amount of rounding to use. You must use a unit (usually px for pixels). A higher number makes the border rounder.
Sets the rounding of the lower left corner of the border.
Sets the rounding of the lower right corner of the border.
Sets the rounding of the upper left corner of the border.
Sets the rounding of the upper right corner of the border.
The align attribute specifies how child elements of the box are aligned, when the size of the box is larger than the total size of the children. For boxes that have horizontal orientation, it specifies how its children will be aligned vertically. For boxes that have vertical orientation, it is used to specify how its children are algined horizontally. The pack attribute is related to the alignment but is used to specify the position in the opposite direction. You can also specify the value of align using the style property '-moz-box-align'.
Specifies the direction in the which the children of a box are placed.
Indicates the flexibility of the Style Properties. Flexible elements grow and shrink to fit their given space. The actual value is not relevant unless there are other flexible elements within the same container. Elements with larger flex values will grow more than elements with lower flex values, at the ratio determined by the two elements.
This property is used to group flexible elements together and should be set to an integer. Elements with a lower flexgroup are flexed first. When those elements have reached their maximum sizes, the elements with the next higher flexgroup are flexed. This process continues until there are no more elements remaining. The same process occurs when decreasing the size, except in the other direction.
This is the corresponding style property for a XUL element's orient attribute. For elements that are types of boxes, it determines whether the children are laid out horizontally or vertically.
The pack attribute specifies where child elements of the box are placed when the box is larger that the size of the children. For boxes with horizontal orientation, it is used to indicate the position of children horizontally. For boxes with vertical orientation, it is used to indicate the position of children vertically. The align attribute is used to specify the position in the opposite direction. You can also specify the value of pack using the style property '-moz-box-pack'.
This property determines how the width and height of the element is calculated. It affects the width and height properties.
This property determines how the width and height of the element is calculated. It affects the width and height properties.
This property can be used to make an element partially transparent. Any content behind the element will be partially visible. This should be a percentage where 100% means fully opaque and 0% means invisible.
This property can be used to set the outline of the element. An outline is like a border but has some differences in the way it is drawn. This is similar to the CSS2 outline property which Mozilla does not currently support.
Sets the color of the outline.
This property can be used to give outlines rounded corners. This should be set to a numeric value indicating the amount of rounding to use. You must use a unit (usually px for pixels). A higher number makes the outline rounder.
Sets the rounding of the lower left corner of the outline.
Sets the rounding of the lower right corner of the outline.
Sets the rounding of the upper left corner of the outline.
Sets the rounding of the upper right corner of the outline.
Sets the style of the border, which can have the same values as the border-style property.
Sets the width of the outline.
Used to indicate whether the element can have the focus. By setting this to 'ignore', you can disable focusing the element, which means that the user will not be able to activate the element. The element will be skipped in the tab sequence. A similar property 'user-focus' has been proposed for CSS3.
This can be used to indicate whether the value of the element can be modifed. This mainly applies to textboxes.
Used to indicate whether the text of the element can be selected. This doesn't have any affect on content loaded as chrome, except in textboxes. A similar property 'user-select' has been proposed for CSS3.
Although the display property is part of standard CSS, some additional values are allowed, for the XUL layout styles. You can use these values for non-XUL elements too, although they may produce unusual results.
Mozilla supports some additional values for the overflow property that are not in standard CSS. The overflow property is used to specify what happens when the content to too large for the container.