18. If needed, selectors can use default attribute values
Prev | Chapter 4. Other extensions | Next

## 18. If needed, selectors can use default attribute values

By default, as mandated in CSS2, attribute selectors only consider attributes explicitly specified for an element. However, it is possible to force attribute selectors to also consider default attribute values defined in the DTD, W3C XML Schema or RELAX NG schema. To do this, simply add "`@use-default-attribute-values;`" at the top of the CSS file.

DITA example:

    @use-default-attribute-values;

    *[class~="topic/body"] {
        display: block;
        margin-left: 12pt;
    }

Prev | Up | Next
17. marker-offset: fill | Home | 19. Simple, fast, purely declarative counters