EPUB 3 reading systems that visually render content are expected to provide support for the CSS properties listed on this page, but support is not required. Properties not listed here may still be used (e.g., from evolving CSS 3 modules), but content authors should use due diligence and assess the impact on rendering and accessibility when using such properties.
Property | Considerations |
---|---|
background | The background property is a shorthand for
defining one or more properties. Refer to each individual background-* property for potential
issues.Note that background properties are largely unsupported at this time outside of fixed layouts. |
background-attachment | |
background-color |
|
background-image |
|
background-position | |
background-repeat | |
These border properties are shorthands for
defining one or more properties. Refer to each individual border-* property for issues |
|
border-collapse | |
|
|
border-spacing | |
|
|
|
|
caption-side | |
clear | |
clip |
|
color |
|
content |
|
cursor |
|
direction | The direction property is not supported in EPUB
3. HTML5 markup, such as the bdi and bdo elements and dir
attribute, should be used to express directionality |
display |
|
empty-cells |
|
float |
|
font | The font property is a shorthand for defining
one or more properties. Refer to each individual font-* property for issues |
font-family |
|
font-size |
|
font-style |
|
font-variant | |
font-weight |
|
height |
|
letter-spacing |
|
line-height |
|
list-style | The list-style property is a shorthand for
defining one or more properties. Refer to each individual list-style-* property for issues
|
list-style-image |
|
list-style-position | |
list-style-type |
|
|
|
|
|
overflow |
|
position |
|
quotes | |
table-layout | |
text-align |
|
text-decoration |
|
text-indent |
|
text-transform |
|
unicode-bidi | The unicode-bidi property is not supported in
EPUB 3. HTML5 markup, such as the bdi and bdo elements and dir
attribute, should be used to express directionality |
vertical-align | |
visibility |
|
white-space | |
width |
|
word-spacing |
|
z-index | |
|
|
Pseudo-Class | Considerations |
---|---|
:active | |
:first-child | |
:focus | |
:hover | The :hover pseudo-selector should never be used, as it is not
device independent and may not be activatable by many readers as ebook readers typically do
not have mice. |
:lang | |
:link | |
:visited |
Pseudo-Element | Considerations |
---|---|
:before and :after |
|
:first-letter | |
:first-line |
Note that prefixed properties should be used until the CSS 3 Speech module becomes a recommendation and a revision to EPUB 3 is released. The syntax for the prefixed properties is taken from the Working Draft dated August, 18, 2011. Each prefixed property links to this draft. The semantics are drawn from the current draft or recommendation and are provided on the corresponding CSS property in parentheses.
Property | Considerations |
---|---|
-epub-cue (cue) |
|
-epub-pause (pause) |
|
-epub-rest (rest) |
|
-epub-speak (speak) |
|
-epub-speak-as (speak-as) |
|
-epub-voice-family (voice-family) |
Note that prefixed properties should be used until the CSS Text module becomes a recommendation and a revision to EPUB 3 is released. The syntax for the prefixed properties is taken from the Working Draft dated April, 12, 2011. Each prefixed property links to this draft. The semantics are drawn from the current draft or recommendation and are provided on the corresponding CSS property in parentheses.
Note that prefixed properties should be used until the CSS 3 Writing Modes module becomes a recommendation and a revision to EPUB 3 is released. The syntax for the prefixed properties is taken from the Working Draft dated April, 28, 2011. Each prefixed property links to this draft. The semantics are drawn from the current draft or recommendation and are provided on the corresponding CSS property in parentheses.
Property | Considerations |
---|---|
-epub-text-combine-horizontal (text-combine-horizontal) |
|
-epub-text-combine-mode (text-combine-mode) |
|
-epub-text-orientation (text-orientation) |
|
-epub-writing-mode (writing-mode) |
Property | Considerations |
---|---|
break-after | |
break-before | |
break-inside | |
column-count | |
column-fill | |
column-gap | |
column-rule | |
column-rule-color | |
column-rule-style | |
column-rule-width | |
column-span | |
column-width | |
columns |