
xml.obfl-css-definition.xpl Maven / Gradle / Ivy
Convert CSS styles to OBFL properties.
The input is assumed to be a tree-of-boxes representation of a document, where boxes
are represented by css:box elements. Box properties may be declared in style attributes
or individial css:* attributes or both.
css:* attributes are added on boxes in such a way that for each box and for each OBFL
property, the computed value of the OBFL property is equal to the computed value of the
corresponding CSS property in the input. Declarations are omitted from the output when
possible, and 'initial' and 'inherit' values are concretized. style attributes on boxes
are dropped, and if they contain unhandled properties, it will result in
warnings. Unhandled css:* attributes in the input are retained.