| Attributes | | scope | where CSS is used, provides a way of defining ‘pseudo-elements’, that is, styling rules applicable to specific sub-portions of an element.| Status | Optional | | Datatype | teidata.enumerated | | Sample values include: | - first-line
- styling applies to the first line of the target element
- first-letter
- styling applies to the first letter of the target element
- before
- styling should be applied immediately before the content of the target element
- after
- styling should be applied immediately after the content of the target element
|
| | selector | contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the scheme attribute.| Status | Optional | | Datatype | teidata.text | <rendition scheme="css"
selector="text, front, back, body, div, p, ab">
display: block;
</rendition>
| <rendition scheme="css"
selector="*[rend*=italic]"> font-style: italic;
</rendition>
| | Note | Since the default value of the scheme attribute is assumed to be CSS, the default expectation for this attribute, in the absence of scheme, is that CSS selector syntax will be used. While rendition is used to point from an element in the transcribed source to a <rendition> element in the header which describes how it appears, the selector attribute allows the encoder to point in the other direction: from a <rendition> in the header to a collection of elements which all share the same renditional features. In both cases, the intention is to record the appearance of the source text, not to prescribe any particular output rendering. |
|
|