::first-letter/::first-line pseudo selector does not support opacity
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: maclockard, Assigned: MatsPalmgren_bugz)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0
Steps to reproduce:
Tried to use ::first-letter pseudo selector and an opacity attribute. See attached file for example.
Actual results:
The first letter's opacity it unaffected by the opacity attribute. It's still possible to change opacity, but only through the color attribute. Unfortunately, this workaround cannot be used in many cases when inheriting color.
Expected results:
Opacity should change.
![]() |
||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
•
|
||
Hmm, were opacity
recently added to the ::first-letter/line
specs? Seems odd that we'd miss such a thing...
https://drafts.csswg.org/css-pseudo-4/#first-letter-styling
Same for ::first-line
btw:
https://drafts.csswg.org/css-pseudo-4/#first-line-styling
Anyway, should be an easy fix hopefully:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ad90215977932bdec183fd8b99544ba9a1e5a99f
Assignee | ||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 5•5 years ago
|
||
Thanks for the fast response! this is awesome
Comment 8•5 years ago
|
||
bugherder |
Description
•