-
Notifications
You must be signed in to change notification settings - Fork 107
Restrictions
petebrady edited this page Aug 16, 2011
·
3 revisions
Treesaver does not support all features provided in HTML/CSS.
The requirements for content structure are more restrictive than normal HTML documents. However, most of the limitations are targeted toward malformed content. Specifically, the limitations are:
-
No naked text outside of blocks: All text-content must live within a paragraph, or other similar elements. Naked text is also not supported with
<div>
,<ul>
, and<ol>
-
No nested paragraphs: A paragraph must only contain inline content. Use
<div>
for nesting. - Element IDs will be stripped: Because an element may be broken across a column or page, we must remove the ID attribute to make sure there is not more than one element with the same ID
-
<script>
elements will be stripped: JavaScript files should be included in the<head>
-
Do not rely on #IDs for styling: Because an element can be repeated across columns or pages,
id
attributes are removed from all items -
Do not rely on
:first-child
or similar positional selectors: The pagination process completely changes the document structure, and will wreak havoc on position-dependent styling. Adjacent sibling, and parenting selectors are fine, however. - Do not use negative margins on flow elements: Not currently supported