[Inactive CSS] Report ignored properties on ::first-letter pseudo-elements
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
Tracking
(firefox119 fixed)
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: sebo, Assigned: sebo)
References
(Blocks 3 open bugs, )
Details
(Whiteboard: [devtools:relnote])
Attachments
(1 file)
The ::first-letter pseudo-element can only be styled by a limited set of properties. Those properties are:
- all font properties
- the
colorandopacityproperties - all background properties
- any typesetting properties that apply to inline elements
- all text decoration properties
- any inline layout properties that apply to inline elements
- margin and padding properties
- border properties and
box-shadow - any other properties defined to apply to
::first-letterby their respective specifications
See https://drafts.csswg.org/css-pseudo-4/#first-letter-styling and https://developer.mozilla.org/en-US/docs/Web/CSS/::first-letter#allowable_properties.
Sebastian
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Given that the spec. says this:
User agents may apply other properties as well. However, in no case may the application of such unlisted properties to
::first-letterchange what first-letter text is represented by that::first-letter.
I think it's better to not mark every property besides the ones listed in the initial comment as invalid but only content. The spec. is pretty vague what those properties are but I believe content is currently the only property that can change the contents of an element.
Sebastian
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Description
•