The properties not listed in the following two tables are not supported by XXE.
The following properties can be inherited whether explicitly (inherit keyword) or implicitly (inherited property).
For all properties except line-height where the specified number is inherited (which is the correct behavior), the inherited value is the actual value not the computed value.
Property | Value | Restrictions |
---|---|---|
background-color | color | transparent | inherit | normal[a] | - |
border | width [style color?]? | inherit | Order is strictly width, style, color |
border-color | side_value{1,4} | - |
border-bottom-color | color | transparent | inherit | - |
border-left-color | " | - |
border-right-color | " | - |
border-top-color | " | - |
border-top-left-radius |
| - NoteAll the following |
border-top-right-radius | " | - |
border-bottom-left-radius | " | - |
border-bottom-right-radius | " | - |
border-radius | [ | - |
border-style | none | dotted | dashed | solid | double | groove | ridge | inset | outset | No hidden |
border-width | thin | thick | medium | length | inherit | - |
color | color | inherit | normal[a] | - |
counter-reset, counter-increment | [ identifier integer ? ]+ | none | inherit | - |
display | none | inline | block | list-item | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | inline-block | tree | inherit | No run-in, compact. |
font | [style weight?]? size family | inherit | Order is strictly style then weight |
font-family | [[name | generic] ,]* [name | generic] | inherit | normal[a] | The generic font families cursive and fantasy are not supported. |
font-size | medium | small | large | x-small | x-large | xx-small | xx-large | smaller | larger | length | percentage | inherit | - |
font-style | normal | italic | oblique | inherit | italic and oblique are aliases |
font-weight | normal | bold | inherit | No N00, bolder, lighter |
line-height | normal | number | inherit | No length, percentage |
list-style-image | URI | none | | inherit | Also supports icon(name ). |
list-style-position | outside | inside | inherit | - |
list-style-type | decimal | lower-alpha | upper-alpha | lower-roman | upper-roman | none | inherit | No decimal-leading-zero, hebrew, armenian, lower-greek, etc. |
list-style | type [ position [ image ]? ]? | inherit | Order is strictly type then position then image. |
margin | side_value{1,4} | - |
margin-bottom | length | auto | inherit | No percentage |
margin-left | " | - |
margin-right | " | - |
margin-top | " | - |
padding | side_value{1,4} | - |
padding-bottom | length | inherit | No percentage |
padding-left | " | - |
padding-right | " | - |
padding-top | " | - |
text-align | left | right | center | inherit | No justify |
text-decoration | none | underline | overline | line-through | inherit | No blink |
text-indent | length | inherit | No percentage |
vertical-align | baseline | middle | sub | super | text-top | top | text-bottom | bottom | inherit | No length, percentage |
white-space | normal | pre | nowrap | inherit | - |
[a] " |
The following properties cannot be inherited whether explicitly (inherit keyword) or implicitly (inherited property).
Property | Value | Restrictions |
---|---|---|
border-spacing | length length? | - |
caption-side | top | bottom | left, right, inherit are not supported. |
content | string | uri | attr(X) | open-quote | close-quote | no-open-quote | no-close-quote | counter(name) | counter(name, style) | counters(name, separ) | counters(name, separ, style) | disc | circle | square | see extensions | No-open-quote, no-close-quote are ignored. Counter styles are limited to: decimal, lower-alpha, lower-latin, upper-alpha, upper-latin, lower-roman, upper-roman. |
height | length | auto | No percentage. This property is currently ignored. |
marker-offset | length | auto | fill | No percentage. |
width | length | auto | No percentage. This property is currently only useful to specify the minimum width of a table cell. |
Other restrictions:
The CSS box decorations (border, padding, etc) are not supported for inlined elements. The background-color is the only property supported for such elements.
A workaround consists in using display: inline-block; white-space: nowrap;
. See Section 8, “New values for the display property”. The white-space: nowrap;
is generally needed because, by default, ``inline-blocks'' and ``inline-tables'' are made as narrow as possible.
Inserting block elements inside inlined elements is not supported. It will not crash the XML editor, but the result will be ugly. However inserting element having property display: inline-block;
or property display: inline-table;
inside inlined elements should work fine.
The border properties, except border-color, cannot be specified individually for each side of the box.
When a CSS box has at least one rounded corner (specified using any of the border-radius properties), the only supported border-styles are: dotted
, dashed
and solid
.
:first-letter and :first-line pseudo-elements are ignored.
The !important specifier is ignored.