Firefox Plugin uses CSS Encoding

Source: Internet
Author: User
Style Properties

The following lists some of the custom style properties that Mozilla supports.

Properties:-moz-appearance

Used to cause an element to take its border, background style and size
From the operating system's theme. This causes XUL elements to be drawn
Similar to the way the user's system draws such elements. This
Currently only has an effect on Windows XP and Mac OS X.

-Moz-background-clip limit 1.2

Indicates whether the background, either the color or image, showould
Extend into the border area of the element. This property is similar
The CSS3 background-clip property.

  • Border:
    The background extends into the border of the element. It will be drawn
    Behind the border.
  • Padding:
    The background does not extend into the border.
-Moz-background-inline-policy limit 1.3

Specifies how the background image of an inline element is determined
When the content of the inline element wraps onto multiple lines.

  • Bounding-box:
  • Continuous:
    The background image wraps around on to each line as if the text had no
    Line breaks. For example, if the image is 500 pixels and the inline box is
    300 pixels, the first 300 pixels of the image appears on the first line,
    And the last 200 pixels followed by the first 100 pixels of the image
    Appear on the second line. The image repeats until the end of the content.
  • Each-box:
-Moz-background-origin limit 1.2

Determines how the background-position property is determined. This property is similar to the CSS3 background-origin property.

  • Content:
    The position is relative to the content.
  • Border:
    The position is relative to the border.
  • Padding:
    The position is relative to the padding.
-Moz-binding

Used to specify an XBL binding to use for the element. The property
Shocould be a URL of an XBL file containing the binding. The URL shocould
Contain an anchor to point to a specific binding with the XBL file,
Referenced by its id attribute.

-Moz-border-bottom-colors

Sets the border colors for the bottom edge. It shocould be set to a list
Of colors. When an element has a border that is larger than a single
Pixel, each line of pixels uses the next color specified in this
Property. This eliminates the need for nested boxes. If the border is
Wider than the number of colors specified for this property,
Remaining part of the border is the color specified by the border
Property.

-Moz-border-left-colors

Sets the border colors for the bottom edge. See the-moz-border-colors-bottom property for more information.

-Moz-border-radius

This property can be used to give borders rounded corners. This shoshould
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
Border rounder.

-Moz-border-radius-bottomleft

Sets the rounding of the lower left corner of the border.

-Moz-border-radius-bottomright

Sets the rounding of the lower right corner of the border.

-Moz-border-radius-topleft

Sets the rounding of the upper left corner of the border.

-Moz-border-radius-topright

Sets the rounding of the upper right corner of the border.

-Moz-border-right-colors

Sets the border colors for the right edge. See the-moz-border-colors-bottom property for more information.

-Moz-border-top-colors

Sets the border colors for the top edge. See the-moz-border-colors-bottom property for more information.

-Moz-box-align

This property is equivalent to the align attribute. It 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
Specify how its children are algined horizontally. The-moz-box-pack
Property is related to the alignment but is used to specify
Position in the opposite direction.

  • Start:
    Child elements are align starting from the left or top edge of the box. If
    The box is larger than the total size of the children, the extra space is
    Placed on the right or bottom side.
  • Center:
    Extra space is split equally along each side of the child elements, resulting
    The children being placed in the center of the box.
  • End:
    Child elements are placed on the right or bottom edge of the box. If the box
    Is larger than the total size of the children, the extra space is placed on
    The left or top side.
  • Baseline:
    This value applies to horizontally oriented boxes only. It causes the child
    Elements to be aligned so that their text labels are lined up.
  • Stretch:
    The child elements are stretched to fit the size of the box. For a horizontal
    Box, the children are stretched to be the height of the box. For a vertical
    Box, the children are stretched to be the width of the box. If the size of
    Box changes, the children stretch to fit. Use the flex attribute to create
    Elements that stretch in the opposite direction.
-Moz-box-direction

Specifies the direction in the which the children of a box are placed.

  • Normal:
    Children are placed either from left to right or top to bottom in
    Order the elements appear in the XUL source or document tree.
  • Reverse:
    Children are placed either from right to left or bottom to top in
    Order the elements appear in the XUL source or document tree.
-Moz-box-flex

Indicates the flexibility of an element. 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
Lower flex values, at the ratio determined by the two elements.

-Moz-box-ordinal-group

Indicates the ordinal group the element belongs to. elements with
Lower ordinal group are displayed before those with a higher ordinal
Group.

-Moz-box-orient

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.

  • Horizontal:
    The children of the element are placed horizontally in a row.
  • Vertical:
    The children of the element are placed vertically in a column.
-Moz-box-pack

This property is equivalent to the pack attribute. It specifies where
Child elements of the box are placed when the box is larger that
Size of the children. For boxes with horizontal orientation, it is used
To indicate the position of children horizontally. For boxes
Vertical orientation, it is used to indicate the position of children
Vertically. The-moz-box-align attribute is used to specify
Position in the opposite direction.

  • Start:
    Child elements are placed starting from the left or top edge of the box. If
    The box is larger than the total size of the children, the extra space is
    Placed on the right or bottom side.
  • Center:
    Extra space is split equally along each side of the child elements, resulting
    The children being placed in the center of the box.
  • End:
    Child elements are placed on the right or bottom edge of the box. If the box
    Is larger than the total size of the children, the extra space is placed on
    The left or top side.
-Moz-box-sizing

This property determines how the width and height of the element is calculated. It affects the width and height properties.

  • Content-box:
    The width and height properties specify the size of the element including
    Padding.
  • Border-box:
    The width and height properties specify the size of the element including
    Padding and border.
  • Padding-box:
    The width and height properties specify the size of the element. The padding,
    Border and margin are added outside of this size.
-Moz-image-region

For elements that have an image, this property sets the area of
Image that is used. You can set multiple elements to use the same image
But use a different region of the image, which redirects the amount of memory
Required. You can change this property to simulate animation.
Syntax is similar to the clip property. All four values are relative
The upper left corner of the image.

    -moz-image-region: rect(top, right, bottom, left);  
-Moz-key-equivalent

-Moz-opacity

This property can be used to make an element partially transparent. Any
Content behind the element will be partially visible. This shocould be
Decimal number between 0 and 1, where 0 means invisible and 1 means
Fully opaque. Thus, 0.5 means half-way between. Newer versions
Mozilla (1.7 and later) support the CSS3 property 'opacity '.

-Moz-outline

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.

-Moz-outline-color

Sets the color of the outline.

-Moz-outline-radius

This property can be used to give outlines rounded corners. This shoshould
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
Outline rounder.

-Moz-outline-radius-bottomleft

Sets the rounding of the lower left corner of the outline.

-Moz-outline-radius-bottomright

Sets the rounding of the lower right corner of the outline.

-Moz-outline-radius-topleft

Sets the rounding of the upper left corner of the outline.

-Moz-outline-radius-topright

Sets the rounding of the upper right corner of the outline.

-Moz-outline-style

Sets the style of the border, which can have the same values as the border-style property.

-Moz-outline-width

Sets the width of the outline.

-Moz-user-focus

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-focal'
Has been proposed for CSS3.

  • Ignore:
    The element does not accept the keyboard focus and will be skipped in
    Tab order.
  • Normal:
    The element can accept the keyboard focus.
-Moz-user-input

This can be used to indicate whether the value of the element can be modifed. This mainly applies to textboxes.

  • Disabled:
    The user cannot edit the value of the textbox. The user may still select text
    In the textbox.
  • Enabled:
    The user can edit the value of the textbox.
-Moz-user-select

Used to indicate whether the text of the element can be selected. This
Doesn't have any affect on content loaded as chrome, doesn t in
Textboxes. A similar property 'user-select' has been proposed for CSS3.

  • None:
    The text of the element cannot be selected.
  • Normal:
    The text can be selected by the user.
Display

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.

  • -Moz-box:
    Child elements are laid out horizontally or vertically.
  • -Moz-inline-box:
  • -Moz-grid:
    Child elements are laid out as a XUL grid.
  • -Moz-inline-grid:
  • -Moz-grid-group:
    Child elements are laid out as a group of grid columns or rows. This is
    Layout used by the rows and columns elements. You can use the orientation
    (-Moz-box-orient) to set which direction. Rows wocould normally have vertical
    Orientation and columns wowould have a horizontal orientation.
  • -Moz-grid-line:
    Child elements are laid out as a single column or row of a grid. You can use
    The orientation (-moz-box-orient) to set which direction.
  • -Moz-stack:
    Child elements are laid out one on top of each other like the XUL stack
    Element.
  • -Moz-inline-stack:
  • -Moz-deck:
    Child elements are laid out one on top of each other like the XUL deck
    Element. Unlike a stack, only the top element is displayed.
  • -Moz-popup:
  • -Moz-groupbox:
Overflow

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 is too large for the container.

  • -Moz-scrollbars-horizontal:
    Indicates that horizontal scrollbars shoshould appear.
  • -Moz-scrollbars-vertical:
    Indicates that vertical scrollbars shoshould appear.
  • -Moz-scrollbars-none:
    Indicates that no scrollbars shoshould appear.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.