Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial support for Ruby? What does that mean? #7136

Open
jensimmons opened this issue Aug 29, 2024 · 9 comments
Open

Partial support for Ruby? What does that mean? #7136

jensimmons opened this issue Aug 29, 2024 · 9 comments

Comments

@jensimmons
Copy link
Contributor

https://caniuse.com/ruby
Screenshot 2024-08-29 at 2 28 53 PM

Partial support refers to only supporting basic ruby, may still be missing writing-mode, Complex ruby and CSS3 Ruby.

I'm wondering if this is accurate anymore. Without specific details of what's missing to be considered "full support", it's unclear if Safari or Chrome have full support.

@jensimmons
Copy link
Contributor Author

Safari Technology Preview 202 just added support for ruby-align and ruby-position, strengthening our support for CSS that lets authors refine ruby layout. But I don't think that's what this page is about. This seems to be about the core HTML support, with vertical writing mode. And I have a feeling we passed that bar long, long ago.

How can we get more details so this page can be updated?

@jensimmons jensimmons changed the title Partial support for Ruby? Partial support for Ruby? What does that mean? Aug 29, 2024
@jensimmons
Copy link
Contributor Author

Or perhaps this page should simply be replaced with something more specific.

@jensimmons
Copy link
Contributor Author

jensimmons commented Aug 29, 2024

Safari does support vertical writing modes for ruby.

Safari do not yet support ruby-overhang or ruby-merge. But given the fact they are not documented in MDN BCD, it's very doubtful any browser does. Firefox 38 certainly does not.

Safari also does not support annotation spanning (ruby columns in general) yet. It's unclear if another browsers do.

@Fyrd
Copy link
Owner

Fyrd commented Aug 30, 2024

Yes, looking at the test results here I agree Ruby CSS support is much more complex than is expressed in the support table.

Perhaps this table could be repurposed to refer to just the HTML elements and leave the CSS properties to their individual BCD tables?

@jensimmons
Copy link
Contributor Author

That's what I was thinking too — if the HTML is supported, and changes writing modes (so — both horizontal and vertical ruby), then it's "fully supported".

Then all the CSS properties for adjusting / refining ruby layout can be tracked one by one.

This maps the rest of web tech. Do you support <h1> headlines? Great, done. Do you support these 97 CSS properties to refine how that headline looks? Let's list all of them, and provide support data one by one —especially since that list is always expanding.

@jensimmons
Copy link
Contributor Author

The question then becomes how do we know when each browser gained "full support"? To answer that, we need to know what's required for "full".

Supporting vertical writing modes seems required. Vertical typography is very common and popular in Japanese graphic design, and only supporting horizontal ruby seems limited.

But what else?

@yisibl
Copy link
Contributor

yisibl commented Sep 3, 2024

WebKit now supports ruby-overhang.
WebKit/WebKit@1a18e15

@yisibl
Copy link
Contributor

yisibl commented Sep 3, 2024

Also, the new Ruby specification is at https://w3c.github.io/html-ruby/

@fantasai
Copy link

fantasai commented Sep 4, 2024

Given that Firefox is marked as full support and others as partial, I suspect this is about support for ruby markup (<ruby>, <rt>, <rb>, <rtc>). Gecko supports all of these tags, correctly handling pairing and multi-level annotations, whereas Blink and WebKit only support the first two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants