WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
179815
::first-letter should include preceding punctuation and space separators
https://bugs.webkit.org/show_bug.cgi?id=179815
Summary
::first-letter should include preceding punctuation and space separators
Johannes Odland
Reported
2017-11-17 02:51:24 PST
According to the specification the following should be included in ::first-letter: "Punctuation (i.e, characters defined in Unicode in the "open" (Ps), "close" (Pe), "initial" (Pi). "final" (Pf) and "other" (Po) punctuation classes), that precedes or follows the first letter should be included."
https://drafts.csswg.org/selectors-3/#first-letter
It also states: "In some cases the ::first-letter pseudo-element should include more than just the first non-punctuation character on a line." In the Norwegian language quotes are started either with Left-pointing Double Angle Quotation Mark '«' or an En Dash '–'. The User agent should treat these equally and include them and the following letter in the ::first-letter pseudo element.
Attachments
Add attachment
proposed patch, testcase, etc.
Johannes Odland
Comment 1
2017-11-17 05:59:31 PST
In the following sentence the en dash, space and letter should be included in ::first-letter: "– Jeg vil bare være et helt vanlig menneske."
Johannes Odland
Comment 2
2017-11-17 06:02:50 PST
Example on NRK P3's webpage (Norwegian Broadcasting Corporation):
http://p3.no/dokumentar/uhelbredelig/
Sam Sneddon [:gsnedders]
Comment 3
2021-08-11 04:39:04 PDT
***
Bug 216963
has been marked as a duplicate of this bug. ***
Sam Sneddon [:gsnedders]
Comment 4
2021-08-11 04:39:48 PDT
there's nothing really specific about Norwegian (in either written form) here; it's just the general punctuation/space issue
Brent Fulgham
Comment 5
2022-06-30 09:43:35 PDT
This appears to be tracked by this radar: <
rdar://69870767
>
Johannes Odland
Comment 6
2022-12-21 03:00:27 PST
Adding a link to the failing WPT tests:
https://wpt.fyi/results/css/css-pseudo/first-letter-punctuation-and-space.html?label=experimental&label=master&aligned&view=subtest
Johannes Odland
Comment 7
2023-01-18 06:08:51 PST
Forgot to update this issue, but the spec was updated a while ago to include all punctuation characters:
https://www.w3.org/TR/css-pseudo-4/#first-letter-pattern
``` Preceding and following punctuation must also be included as part of the first-letter text in the ::first-letter pseudo-element as follows: All punctuation—i.e, characters that belong to the Punctuation (P*) Unicode general category [UAX44]—that precedes the first letter. Any punctuation other than opening punctuation and dashes—i.e. characters that belong to the Punctuation (P*) Unicode general category, excluding Open Punctuation (Ps) and Dash Punctuation (Pd)—that follows the first letter. Any intervening typographic space—i.e. characters that belong to the Zs Unicode general category [UAX44] other than U+3000 IDEOGRAPHIC SPACE or any word-separator characters ```
Karl Dubost
Comment 8
2023-01-18 15:52:09 PST
Bugs elsewhere.
https://bugs.chromium.org/p/chromium/issues/detail?id=1163175
https://bugzilla.mozilla.org/show_bug.cgi?id=602459
See Also
https://github.com/web-platform-tests/interop/issues/187#issuecomment-1387144773
Johannes Odland
Comment 9
2025-03-14 14:10:51 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/42507
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