Bug 246676 - Add support for the values raise | drop on initial-letter property
Summary: Add support for the values raise | drop on initial-letter property
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-10-17 22:14 PDT by Karl Dubost
Modified: 2023-05-02 13:36 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2022-10-17 22:14:28 PDT
See for tests https://wpt.fyi/results/css/css-initial-letter?label=master&label=experimental&aligned&view=subtest&q=initial-letter

Spec
https://www.w3.org/TR/css-inline/#sizing-drop-initials

Applies to:
certain inline-level boxes and ::first-letter and inside ::marker boxes (see prose)

raise
Computes to an initial letter sink of 1.
drop
Computes to an initial letter sink equal to the initial letter size floored to the nearest positive whole number.
If the initial letter sink value is omitted, drop is assumed.


Blink
https://groups.google.com/a/chromium.org/g/blink-reviews-style/c/jHLdqhphZ3M
https://chromium-review.googlesource.com/c/chromium/src/+/3874383 (the current patch doesn't include raise and drop)

Gecko doesn't implement yet raise and drop
https://bugzilla.mozilla.org/show_bug.cgi?id=1223880

CSSWG discussion
https://github.com/w3c/csswg-drafts/issues/2955
Comment 1 Radar WebKit Bug Importer 2022-10-24 22:15:17 PDT
<rdar://problem/101529501>
Comment 2 yosin 2022-11-22 00:50:29 PST
Blink attempts to ship CSS `initial-letter` applies only `::first-letter`.

The patch[1] implements:
  * `initial-letter: number integer`
  * `initial-letter: number drop`
  * `initial-letter: number raise`
  * `initial-letter: drop number`
  * `initial-letter: raise number`
  * `initial-letter: number`

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3981353