Chapter 5 - Selectors - 5.12.3 The :before and :after pseudo-elements
Go to the relevant page of the specification.
- before-after-selector-001
-
After and before pseudo-elements
After and before pseudo-element allows inserted text after or before a given element. - before-first-letter-selector-001
-
First-letter pseudo-element with :before pseudo-element
When the :first-letter pseudo-element is combined with :before, :first-letter applies to the generated text of :before.