WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
243832
::first-letter styles should apply to text in slot element
https://bugs.webkit.org/show_bug.cgi?id=243832
Summary
::first-letter styles should apply to text in slot element
Sarah Gebauer
Reported
2022-08-11 09:41:20 PDT
Example
https://codepen.io/xgebi/pen/zYWJZZj
In both, Firefox and Chrome, when I try to style first letter of a div element which gets its content through slot, ::first-letter styles should apply. In the example above 'A' should be blue and 'bc' red. At the moment Safari can detect ::first-letter styles but does not apply them.
Attachments
Add attachment
proposed patch, testcase, etc.
Sarah Gebauer
Comment 1
2022-08-11 09:53:26 PDT
(In reply to Sarah Gebauer from
comment #0
)
> Example
https://codepen.io/xgebi/pen/zYWJZZj
> > In both, Firefox and Chrome, when I try to style first letter of a div > element which gets its content through slot, ::first-letter styles should > apply. In the example above 'A' should be blue and 'bc' red. > > At the moment Safari can detect ::first-letter styles but does not apply > them.
It's resolved in Safari TP.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug