Bug 161070 - initial letters should respect font style setting
Summary: initial letters should respect font style setting
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 20:10 PDT by Jeremy Chen
Modified: 2022-07-14 16:45 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Chen 2016-08-22 20:10:39 PDT
In current implementation, it seems that a newFontDescription is created and set for initial-letter's pseudoStyle.
However, only size is considered, the other font related style is not.
I think web authors may prefer have initial-letter keep its flexibility to set a font different from its surrounding text.
This also mentioned in spec: https://drafts.csswg.org/css-inline/#initial-letter-properties as well. 

test case: http://codepen.io/anon/pen/AXkxbE
Comment 1 Brent Fulgham 2022-07-14 16:45:00 PDT
This test case works properly in Safari 15.5+. I don't believe there is further action needed here.