Intent to Experiment: CSS Initial Letters

336 views
Skip to first unread message

Yoshifumi Inoue

unread,
Nov 21, 2022, 2:49:24 AM11/21/22
to blink-dev

Contact emails

yo...@chromium.orgko...@chromium.org

Explainer

None

Specification

https://drafts.csswg.org/css-inline/#initial-letter-styling

Design docs


https://bit.ly/3KzJ27G

Summary

Initial letters are large, decorative letters have been used to start new sections of text since before the invention of printing. In fact, their use predates lowercase letters entirely. Blink will support CSS property "initial-letter".



Blink component

Blink>Layout>Inline

TAG review

Not applicable

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Chrome supports full syntax of `initial-letter`: 1 `initial-letter:` number 2 `initial-letter:` number integer 3.`initial-letter:` number `drop` 4.`initial-letter:` number `raise` However Safari supports: 1. `-webkit-initial-letter:` integer 2. `-webkit-initial-letter:` integer integer So, web authors need to use Safari compatible syntax.



Gecko: In development (https://bugzilla.mozilla.org/show_bug.cgi?id=1223880) No active development since 2017.

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=229090) Needs to use the prefix version `-webkit-initial-letter`. Supports only an integer size. No `drop` and `raise` keyword support.

Web developers: No signals

Other signals: It’s implemented only in Safari, but the usage is high. 

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No.



Goals for experimentation

The goal for the experiment is to seek feedback about this feature and observe no crash and no performance regression.



Reason this experiment is being extended

N/A

Ongoing technical constraints

N/A

Debuggability

As other CSS properties.

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes,

Is this feature fully tested by web-platform-tests?

Yes,

DevTrial instructions

https://output.jsbin.com/basukanebo/1

Flag name

CSSInitialLetter

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1276900

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5167442033115136

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABJ-EHNMC29gEMkgopMJFW6LfWCCuxXmC0F%2BRPpOuM%3Dznbo5LQ%40mail.gmail.com


This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Nov 21, 2022, 7:46:39 AM11/21/22
to Yoshifumi Inoue, blink-dev
On Mon, Nov 21, 2022 at 8:49 AM Yoshifumi Inoue <yo...@chromium.org> wrote:

Contact emails

yo...@chromium.orgko...@chromium.org

Explainer

None

Specification

https://drafts.csswg.org/css-inline/#initial-letter-styling

Design docs


https://bit.ly/3KzJ27G

Summary

Initial letters are large, decorative letters have been used to start new sections of text since before the invention of printing. In fact, their use predates lowercase letters entirely. Blink will support CSS property "initial-letter".



Blink component

Blink>Layout>Inline

TAG review

Not applicable

Why is it N/A?
 


TAG review status

Not applicable

Risks



Interoperability and Compatibility

Chrome supports full syntax of `initial-letter`: 1 `initial-letter:` number 2 `initial-letter:` number integer 3.`initial-letter:` number `drop` 4.`initial-letter:` number `raise` However Safari supports: 1. `-webkit-initial-letter:` integer 2. `-webkit-initial-letter:` integer integer So, web authors need to use Safari compatible syntax.



Gecko: In development (https://bugzilla.mozilla.org/show_bug.cgi?id=1223880) No active development since 2017.

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=229090) Needs to use the prefix version `-webkit-initial-letter`. Supports only an integer size. No `drop` and `raise` keyword support.

Can you ask for positions regarding the unprefixed version and additions from the proprietary Safari syntax?
 

Web developers: No signals

Is it possible to get such signals? Do you have partners lined up to use the OT?
What's the timeline in which you want the experiment to run?
 


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5167442033115136

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABJ-EHNMC29gEMkgopMJFW6LfWCCuxXmC0F%2BRPpOuM%3Dznbo5LQ%40mail.gmail.com


This intent message was generated by Chrome Platform Status.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABJ-EHPFVLa-frSXmjhbK97L%3D8eh7ZeS6Uap3BiSNfksDicdHA%40mail.gmail.com.

Emilio Cobos Álvarez

unread,
Nov 21, 2022, 11:22:11 AM11/21/22
to blin...@chromium.org
On 11/21/22 08:49, Yoshifumi Inoue wrote:
> /Gecko/: In development
> (https://bugzilla.mozilla.org/show_bug.cgi?id=1223880
> <https://bugzilla.mozilla.org/show_bug.cgi?id=1223880>) No active
> development since 2017.

While it is my understanding that we're not opposed to this feature, I
don't think this quite qualifies as an official position. Would be worth
to file an issue in
<https://github.com/mozilla/standards-positions/issues/new>

Thanks,

-- Emilio

Yoshifumi Inoue

unread,
Nov 22, 2022, 3:19:22 AM11/22/22
to Emilio Cobos Álvarez, blink-dev
Thanks for the reply!
First of all, this thread is changed to "Intent to Ship: CSS Initial Letters".
Because WebKit already shipped with a prefixed version.

I would like answer questions here:

Q: TAG review: Why it N/A
Because WebKit already shipped with a prefixed version.

Q: Web Developers: No signals: Is it possible to get such signals? Do you have partners lined up to use the OT?

Here is Web Developers demand, I was put into the wrong box in the tool.
It’s implemented only in Safari, but the usage is high. 
@Yoav, Could you tell me what "OT" stands for?

Q: What's the timeline in which you want the experiment to run?
We would like to ship in canary, once I get LGTM.
This is intent to ship instead of experiment, because WebKit shipped.

Q. Gecko's position
I file the request:


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Yoav Weiss

unread,
Nov 22, 2022, 3:31:37 AM11/22/22
to Yoshifumi Inoue, Emilio Cobos Álvarez, blink-dev
On Tue, Nov 22, 2022 at 9:19 AM Yoshifumi Inoue <yo...@chromium.org> wrote:
Thanks for the reply!
First of all, this thread is changed to "Intent to Ship: CSS Initial Letters".
Because WebKit already shipped with a prefixed version.

I would like answer questions here:

Q: TAG review: Why it N/A
Because WebKit already shipped with a prefixed version.

Q: Web Developers: No signals: Is it possible to get such signals? Do you have partners lined up to use the OT?

Here is Web Developers demand, I was put into the wrong box in the tool.
It’s implemented only in Safari, but the usage is high. 
@Yoav, Could you tell me what "OT" stands for?

Origin Trial. Apologies for the abbreviation!
 

Q: What's the timeline in which you want the experiment to run?
We would like to ship in canary, once I get LGTM.
This is intent to ship instead of experiment, because WebKit shipped.

Oh, ok!
 

Q. Gecko's position
I file the request:

Can you also file for a position on the WebKit repo and ask them explicitly about their opinions on shipping the unprefixed version, including its new functionality?




On Tue, Nov 22, 2022 at 1:22 AM Emilio Cobos Álvarez <emi...@mozilla.com> wrote:
On 11/21/22 08:49, Yoshifumi Inoue wrote:
> /Gecko/: In development
> (https://bugzilla.mozilla.org/show_bug.cgi?id=1223880
> <https://bugzilla.mozilla.org/show_bug.cgi?id=1223880>) No active
> development since 2017.

While it is my understanding that we're not opposed to this feature, I
don't think this quite qualifies as an official position. Would be worth
to file an issue in
<https://github.com/mozilla/standards-positions/issues/new>

Thanks,

  -- Emilio

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/71b0bebd-e427-56bc-d5a6-6151bb40519e%40mozilla.com.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Yoshifumi Inoue

unread,
Nov 22, 2022, 3:52:08 AM11/22/22
to blink-dev, Yoav Weiss, Emilio Cobos Alvarez, blink-dev, Yoshifumi Inoue

>Can you also file for a position on the WebKit repo and ask them explicitly about their opinions on shipping the unprefixed version, including its new functionality?
I field.
https://github.com/WebKit/standards-positions/issues/94

WebKit Bugzilla has:
https://bugs.webkit.org/show_bug.cgi?id=229090 Unprefix -webkit-initial-letter
https://bugs.webkit.org/show_bug.cgi?id=246676 Add support for the values raise | drop on initial-letter property

I resent "Intent to Ship" email. Please move to there for future discussion.
Sorry for confusion. m(_ _)m
And thanks for your patient!





2022年11月22日火曜日 17:31:37 UTC+9 Yoav Weiss:
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Florian Rivoal

unread,
Jan 26, 2023, 10:24:09 PM1/26/23
to Yoshifumi Inoue, blink-dev
Sorry for the very late feedback.

On 22Nov 2022, at 17:19, Yoshifumi Inoue <yo...@chromium.org> wrote:


Here is Web Developers demand, I was put into the wrong box in the tool.
It’s implemented only in Safari, but the usage is high. 
I think it is a great feature, and I am very happy to see progress on it, but it’s possible that these numbers are overstating developer demand due to a misunderstanding.

Percentages this high seem more likely to refer to the ::first-letter pseudo which has existed since css1, not the initial-letter property which is relatively new. Their names are close, and the features interact, so it wouldn’t be surprising that people answering a survey, and paying limited attention, would have thought they were being asked about the more famous of the two.

—Florian
Reply all
Reply to author
Forward
0 new messages