-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Restore the rb and rtc elements and update ruby content model accordingly #6478
base: main
Are you sure you want to change the base?
Conversation
3f22240
to
77c1733
Compare
The auto-generated previews don't seem to include images. Since they're quite useful for this section of the spec, here's a built copy which includes images: https://html.rivoal.net/multipage/ |
See also https://github.com/web-platform-tests/wpt/tree/master/css/vendor-imports/mozilla/mozilla-central-reftests/ruby for more ruby tests in WPT. |
(edited the original comment to mention support by Amazon, as described in #1771 (comment)) |
If this pull request is not merged in the near future and W3C publishes a separate note as well as CSS Ruby, we will have two versions of Open Web Platform. We should strongly avoid that. |
Wouldn't you say that the version of the web platform users and developers experience is what implementations are shipping and willing to ship, which is the sticking point to getting this landed? It does seem weird that Google and Apple would be on board with CSS Ruby, but not with this... |
My understanding is that Google and Apple are happy to not formally object to CSS Ruby being worked on by its editors, but they have not made any movement to implement it. I think the framing in @murata2makoto's comment is needlessly inflammatory. There are at least three versions of the web platform: those implemented by WebKit, Gecko, and Blink respectively. They are not always in sync. And there are different specs covering different aspects of them. Right now, and for the foreseeable future, the Gecko version of the web platform supports CSS Ruby and rb/rtc. The WebKit/Blink version does not. This is similar to how the Blink version of the web platform supports Web Serial, and the WebKit/Gecko versions do not. This is OK, and happens all the time. It's how we move the web forward. |
You might think that I am blaming WHATWG, but I am not. I am just saying what is happening is not good. In spite of the twenty-five year history, ruby standardization is unlikely to happen. |
@murata2makoto Recalling the latest statements from Chrome and Safari reps regarding the changes proposed in this PR — At #1771 (comment) on 2021-03-12, @kojiishi said:
At #1771 (comment) on the same day, 2021-03-12, @rniwa said:
And to be specific about what seems to be getting requested that Chrome and Safari don’t plan to implement:
So even if the HTML editors were to merge this patch immediately, the real problem in practice would remain that Chrome and Safari project reps have clearly stated they have no plans to actually implement it — and the existence of the requested requirements in the HTML spec would no more make the Chrome and Safari projects change their minds about this than the existence of this PR. So with respect to everyone involved here, I would like to point out that if you want to get the requested requirements implemented in Chrome and Safari, the possible productive ways to actually make that happen do not seem to include repeatedly lobbying the HTML editors to prematurely merge PRs into the HTML spec. Instead the actual productive ways to make the requested requirements get implemented in Chrome and Safari are to either:
And I say all that with full agreement that the requested requirements are clearly important and have very compelling use cases — and if it were within my experience and abilities to implement the support for them myself in the Chrome and Safari code, I would stop everything else I’m doing and instead work on implementing browser patches for it myself until I had something that could be landed in the Chrome and Safari code. But the reality is that I don’t myself have the experience and abilities needed to do that work. But clearly there are other people around who do have the experience and abilities needed. So if those of you who have been advocating here in this issue tracker for these requirements to be supported would be interested in putting some effort together into finding a way to get someone with the necessary experience and abilities actually working on implementing browser patches for it, I would be very happy to join that effort. |
dbda7c3
to
a77934e
Compare
Fixes whatwg#1771, fixes whatwg#121 Co-authored-by: fantasai <[email protected]>
@rniwa is right - I would love to work on improving ruby support in WebKit, but doing so isn't near the top of my to-do list. This is very different than a negative position on this issue. |
This pull request un-obsoletes the rb and rtc elements, changes the content model to take them into account, and updates the rendering section accordingly. It does not make any changes to parsing.
As discussed in #1771, the ruby model currently defined in the HTML spec isn't quite enough to support the needs of ruby. The additional
rb
andrtc
elements are needed to properly express the full semantics that need to be there for styling and fallback to work properly. See explanation in fantasai’s blog post (which the CSS Ruby Layout spec and the proposed markup model are both based on) and in the proposed specification text itself.The model defined here is the same one that had been defined in the old W3C HTML5 specification. The pull request contains two commits: one that imports the W3C spec text, and one that substantially reworks the prose and examples to better explain its semantics. We recommend reviewing the combined result; the commit split is largely to preserve history.
rb
as defined in this pull requestgrep -RI "ruby-.*-container" wpt/html | wc -w
yields 67)html5lib_*
tests under https://github.com/web-platform-tests/wpt/tree/master/html/syntax/parsing should be updated as well, but they are autogenerated from https://github.com/html5lib/html5lib-python/. probably, the best course of action is to land this PR, then update html5lib accordingly, then update wpt.CC @r12a @kojiishii @upsuper
💥 Error: 503 Service Unavailable 💥
PR Preview failed to build. (Last tried on Oct 6, 2021, 12:47 AM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 HTML Diff Service - The HTML Diff Service is used to create HTML diffs of the spec changes suggested in a pull request.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.