Skip to content

Import tests for html ruby extensions#58150

Merged
frivoal merged 18 commits intoweb-platform-tests:masterfrom
frivoal:ruby-tests
Mar 5, 2026
Merged

Import tests for html ruby extensions#58150
frivoal merged 18 commits intoweb-platform-tests:masterfrom
frivoal:ruby-tests

Conversation

@frivoal
Copy link
Contributor

@frivoal frivoal commented Mar 1, 2026

These cover:

  • permutations of the allowed syntax for ruby base markup (with or without rb, interleaved and tabular markup)
  • usage of rt alone, rtc alone, and rt with rtc, and variants where (some) rt are implied
  • spanning annotations using rtc
  • multi-level ruby using rtc (both spanning and non-spanning)
  • the presence of rp, and the lack of interference with segmentation and pairing, not only when rp respect the content model, but even when it doesn't
  • inter-element spaces not interferring with segmentation and pairing

See the README for some more info on the approach followed.

These cover:
* permutations of the allowed syntax for ruby base markup (with or
  without rb, interleaved and tabular markup)
* usage of rt alone, rtc alone, and rt with rtc, and variants where
  (some) rt are implied
* spanning annotations using rtc
* multi-level ruby using rtc (both spanning and non-spanning)
* the presence of rp, and the lack of interference with segmentation and
  pairing, not only when rp respect the content model, but even when it
  doesn't
* inter-element spaces not interferring with segmentation and pairing

See the README for some more info on the approach followed.
@frivoal frivoal requested a review from fantasai March 1, 2026 01:29
@frivoal frivoal self-assigned this Mar 1, 2026
@frivoal frivoal added the html-ruby-extensions https://www.w3.org/TR/html-ruby-extensions/ label Mar 1, 2026
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

Copy link
Contributor

@fantasai fantasai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions for improvements. But overall the test suite seems good. Or at least the best we can do given the limitations.

@frivoal frivoal enabled auto-merge (squash) March 5, 2026 16:08
@frivoal frivoal merged commit 0828f9e into web-platform-tests:master Mar 5, 2026
22 checks passed
@frivoal frivoal deleted the ruby-tests branch March 5, 2026 16:20
@frivoal
Copy link
Contributor Author

frivoal commented Mar 5, 2026

Merged after having addressed all the feedback.

@frivoal
Copy link
Contributor Author

frivoal commented Mar 5, 2026

See also the implementation report based on these tests: https://w3c.github.io/html-ruby/implementation-report-2026-03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants