Bug 163216 - ::first-letter selects punctuation character preceding following word when first word is single character
Summary: ::first-letter selects punctuation character preceding following word when fi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 10
Hardware: All macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-10 09:30 PDT by Darren Brierton
Modified: 2022-07-14 16:50 PDT (History)
6 users (show)

See Also:


Attachments
Test case for this bug (1.19 KB, text/html)
2016-10-10 09:30 PDT, Darren Brierton
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Brierton 2016-10-10 09:30:56 PDT
Created attachment 291113 [details]
Test case for this bug

Take the following Portuguese text: <p>O “refrigerador do deserto” ou “pote no pote” de Bah Abba</p>

Applying a ::first-letter selector to that element results in the quotation mark preceding the following word also being selected. Test case attached.

This bug is present in current versions of Safari on both iOS and macOS.
Comment 1 Johannes Odland 2017-11-17 03:00:00 PST
In the text 
"– Vi er lei av å høre at vi har et problem" Both the en dash and the V should be included.
Comment 2 Brent Fulgham 2022-07-14 16:49:58 PDT
This continues to be a problem in Safari 15.5+
Comment 3 Radar WebKit Bug Importer 2022-07-14 16:50:10 PDT
<rdar://problem/97043031>