The `::first-line` pseudo-element can only be styled by a limited set of properties. Those properties are: - all font properties - the color and opacity properties - all background properties - any typesetting properties that apply to inline elements - all text decoration properties - the `ruby-position` property - any inline layout properties that apply to inline elements - any other properties defined to apply to `::first-line` by their respective specifications See https://drafts.csswg.org/css-pseudo-4/#first-line-styling and https://developer.mozilla.org/en-US/docs/Web/CSS/::first-line#allowable_properties. Sebastian
Bug 1842174 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The `::first-line` pseudo-element can only be styled by a limited set of properties. Those properties are: - all font properties - the `color` and `opacity` properties - all background properties - any typesetting properties that apply to inline elements - all text decoration properties - the `ruby-position` property - any inline layout properties that apply to inline elements - any other properties defined to apply to `::first-line` by their respective specifications See https://drafts.csswg.org/css-pseudo-4/#first-line-styling and https://developer.mozilla.org/en-US/docs/Web/CSS/::first-line#allowable_properties. Sebastian