CSS first-line pseudo-elementExternal Link

BaselineWidely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2018.

Allows styling specifically for the first line of text using the ::first-line pseudo-element. Note that only a limited set of properties can be applied.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 97.57% of all users can use this feature, 97.57% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support