New CSS display property values, "ruby", "ruby-base", and "ruby-text", are added. The default display values of <ruby>, <rb> and <rt> are changed to them, and ruby layout respects these display values. Web authors can use any elements such as <div> to render ruby by setting the new display values.
This feature does not affect most <ruby> usages on existing pages. However, the rendering results may change if the `display` property value of <ruby> or <rt> is set to a non-default value because ruby rendering is triggered by the new `display` value, not the tag name. https://chromestatus.com/metrics/feature/timeline/popularity/3282 At most 0.07% page views might be affected. However, <ruby>s in 9 of the top 10 sites have no <rt>, and their rendering won't be changed. The remaining 1 site will be broken, and it's same as Firefox's rendering result. We have a plan to show a console message about this incompatibility before enabling the feature.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
Rolling css_properties.json5 into devtools-frontend should be enough.
Some of https://wpt.fyi/results/css/css-ruby and https://wpt.fyi/results/css/css-display/parsing
Shipping on desktop | 121 |
Shipping on Android | 121 |
Shipping on WebView | 121 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneContact emails
tk...@chromium.orgExplainer
NoneSpecification
https://drafts.csswg.org/css-ruby-1/#ruby-displaySummary
New CSS display property values, "ruby", "ruby-base", and "ruby-text", are added. The default display values of <ruby>, <rb> and <rt> are changed to them, and ruby layout respects these display values. Web authors can use any elements such as <div> to render ruby by setting the new display values.
--
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/CAGH7WqEN8XsgSTymzAnpK7yXfWvYNF7Y1jqpcQ%2BXhTiMh22-cQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra9XjE_aOHBBdy%3DNebWZHOKDMtUiNJ3b1fYbv%3Dh-fcqw9g%40mail.gmail.com.
My reading of #1771 is that the only thing keeping <rb> out of HTML is the lack of a Blink or WebKit implementation. It looks like https://github.com/whatwg/html/pull/6478 is already written to improve the text, so the only thing for Kent to do is to make sure that this change implements that PR and then say so on the PR?
On 10/19/23 03:41, TAMURA, Kent wrote:
>
> Specification
>
> https://drafts.csswg.org/css-ruby-1/#ruby-display
>
> Summary
>
> New CSS displayproperty values, "ruby", "ruby-base", and "ruby-text", are
> added. The default display values of <ruby>, <rb> and <rt> are changed to
> them, and ruby layout respects these display values. Web authors can use any
> elements such as <div> to render ruby by setting the new display values.
It seems you're listing a subset of values, which makes me wonder what
differences you would be introducing between Blink's behavior and the behavior
described in the specs (if any)?
> TAG review
>
> None; Firefox already shipped this.
Firefox shipped a complete implementation of the ruby box model, so it's a bit
different from what you're proposing.
> /Gecko/: Shipped/Shipping
>
> /WebKit/: Positive (https://github.com/WebKit/standards-positions/issues/232)
WebKit's position is also against the whole spec...
I think it would be important to understand how Blink's proposed
implementation might differ from the spec and from Firefox's implementation,
particularly in terms of the box model and layout structures it generates for
various ruby markup patterns.
Also, CSS Ruby Layout is quite complicated, do you have a prototype already? I
didn't see an Intent to Prototype come through earlier. I think it would be a
good idea to evaluate the quality of the implementation and any differences
with Firefox before approving an intent to ship. At least, if I were in
charge, I would want to...
~fantasai
--
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/9d2c0ed1-478f-4f30-976a-eaff5d2c3ea6%40inkedblade.net.
ruby { display: ruby; }rt { display: ruby-text; }
On Fri, Oct 20, 2023 at 4:42 AM fantasai <fantasa...@inkedblade.net> wrote:On 10/19/23 03:41, TAMURA, Kent wrote:
>
> Specification
>
> https://drafts.csswg.org/css-ruby-1/#ruby-display
>
> Summary
>
> New CSS displayproperty values, "ruby", "ruby-base", and "ruby-text", are
> added. The default display values of <ruby>, <rb> and <rt> are changed to
> them, and ruby layout respects these display values. Web authors can use any
> elements such as <div> to render ruby by setting the new display values.
It seems you're listing a subset of values, which makes me wonder what
differences you would be introducing between Blink's behavior and the behavior
described in the specs (if any)?I think the new behavior will be a subset of CSS ruby. Blink will be compatible with CSS ruby box generation, but web authors won't have a way to specify ruby-base-container and ruby-text-container to elements.
> TAG review
>
> None; Firefox already shipped this.
Firefox shipped a complete implementation of the ruby box model, so it's a bit
different from what you're proposing.
> /Gecko/: Shipped/Shipping
>
> /WebKit/: Positive (https://github.com/WebKit/standards-positions/issues/232)
WebKit's position is also against the whole spec...I don't think WebKit is against the specification though their ruby development is not active.
I think it would be important to understand how Blink's proposed
implementation might differ from the spec and from Firefox's implementation,
particularly in terms of the box model and layout structures it generates for
various ruby markup patterns.
Also, CSS Ruby Layout is quite complicated, do you have a prototype already? I
didn't see an Intent to Prototype come through earlier. I think it would be a
good idea to evaluate the quality of the implementation and any differences
with Firefox before approving an intent to ship. At least, if I were in
charge, I would want to...We don't have an implementation of this change yet.
~fantasai
--
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/9d2c0ed1-478f-4f30-976a-eaff5d2c3ea6%40inkedblade.net.
--TAMURA Kent
Software Engineer, Google
--
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/CAGH7WqFTDZiUd980%3DOHb3OsQ8-279kXb9dSQu2JYprOX%2Bx8JGA%40mail.gmail.com.
Thank you very much for the summary - I was trying to parse the thread on Friday and meant to ask follow-up questions. :)
LGTM1
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra-J66ckraNAKjs1Ps6wsv%2BQnPKPuBX4RUA4y3315W1Cmg%40mail.gmail.com.
Also, please request approval for the rest of the review gates
(right now I only see Debuggability); you'll be blocked on getting
the rest of the LGTMs until those are in progress.
--
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/973e0592-b537-4c14-b3b0-87953bad890c%40inkedblade.net.
LGTM3 but attend to Rick's comment below before shipping.
(Fantasia/Kent: It should be possible to test the implementation using the flags the WPT bots use to test so I assume Fantasia can test it with an appropriate flag and new enough build? chrome://flags/#enable-experimental-web-platform-features ? )
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_xCX0L%2Bf0HDj2Uy%2B%2BkXNMRKmRbuaaFvuUHZGXdk7mymg%40mail.gmail.com.
Hey Kent,To Fantasai's point, can you point to the specific WPT test cases for this intent? Are Chrome or Firefox failing any, and if so can you explain why?Tentative LGTM2 assuming WPT coverage shows we're matching Firefox behavior. Also happy to discuss the nuance here first if it's not completely the case that we match Firefox.RickOn Mon, Oct 30, 2023 at 3:12 PM fantasai <fantasa...@inkedblade.net> wrote:On 10/19/23 22:39, TAMURA, Kent wrote:
> fantasai wrote:
> > It seems you're listing a subset of values, which makes me wonder what
> > differences you would be introducing between Blink's behavior and the
> > behavior described in the specs (if any)?
>
> I think the new behavior will be a subset of CSS ruby. Blink will be
> compatible with CSS ruby box generation, but web authors won't have a way to
> specify ruby-base-container and ruby-text-container to elements.
OK, that seems reasonable. So therefore if the author writes in their stylesheet:
ruby { display: ruby; }
rt { display: ruby-text; }
rb { display: ruby-base; }
They will get the exact same rendering as in Firefox for all markup
permutations of <ruby>, <rb>, and <rt>, correct?