# Text Decoration Line

Set the type of decorative lines used on text.

**Widely available.** This feature is well established and works across many devices and browser versions.

Chrome 1 · Edge 12 · Firefox 1 · Safari 1

| Class | Properties | Value |
|-------|------------|-------|
| `tdl:lt` | text-decoration-line | `line-through` |
| `tdl:none` | text-decoration-line | `none` |
| `tdl:o` | text-decoration-line | `overline` |
| `tdl:u` | text-decoration-line | `underline` |

## Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in `@md:h:tdl:o`.

### Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

| Class | Applies |
|-------|---------|
| `@xs:tdl:o` | From 32rem up. |
| `@sm:tdl:o` | From 40rem up. |
| `@md:tdl:o` | From 48rem up. |
| `@lg:tdl:o` | From 64rem up. |
| `@xl:tdl:o` | From 80rem up. |
| `@xxl:tdl:o` | From 96rem up. |

### Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with `ct:is` first.

| Class | Applies |
|-------|---------|
| `@c:xs:tdl:o` | Container from 32rem up. |
| `@c:sm:tdl:o` | Container from 40rem up. |
| `@c:md:tdl:o` | Container from 48rem up. |
| `@c:lg:tdl:o` | Container from 64rem up. |
| `@c:xl:tdl:o` | Container from 80rem up. |
| `@c:xxl:tdl:o` | Container from 96rem up. |

### Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

| Class | Applies |
|-------|---------|
| `@pc:tdl:o` | On a touch screen. |
| `@prm:tdl:o` | With reduced motion on. |
| `@st:tdl:o` | On the first frame. |

### States

Apply a class only while the element is in a state, such as hovered, focused or checked.

| Class | Applies |
|-------|---------|
| `h:tdl:o` | On :hover. |
| `f:tdl:o` | On :focus. |
| `fv:tdl:o` | On :focus-visible. |
| `a:tdl:o` | On :active. |
| `d:tdl:o` | On :disabled. |
| `fc:tdl:o` | On :first-child. |
| `c:tdl:o` | On :checked. |
| `e:tdl:o` | On :empty. |
| `fw:tdl:o` | On :focus-within. |
| `i:tdl:o` | On :invalid. |
| `in:tdl:o` | On :indeterminate. |
| `lc:tdl:o` | On :last-child. |
| `nc:tdl:o` | On :nth-child. |
| `r:tdl:o` | On :required. |
| `ro:tdl:o` | On :read-only. |
| `v:tdl:o` | On :valid. |

### Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

| Class | Applies |
|-------|---------|
| `a::tdl:o` | On ::after. |
| `b::tdl:o` | On ::before. |
| `p::tdl:o` | On ::placeholder. |
| `s::tdl:o` | On ::selection. |