[webkit-changes] [WebKit/WebKit] d96647: <ruby> children should have white-space:nowrap

Antti Koivisto noreply at github.com
Wed Jan 31 12:48:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d96647d9709657c02a36a2334bd8c30f6149e646
      https://github.com/WebKit/WebKit/commit/d96647d9709657c02a36a2334bd8c30f6149e646
  Author: Antti Koivisto <antti at apple.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    A LayoutTests/fast/ruby/implicit-base-child-nowrap-expected.html
    A LayoutTests/fast/ruby/implicit-base-child-nowrap.html
    M Source/WebCore/css/ruby.css

  Log Message:
  -----------
  <ruby> children should have white-space:nowrap
https://bugs.webkit.org/show_bug.cgi?id=268475
rdar://121202426

Reviewed by Alan Baradlay.

We may end up wrapping inside anonymous ruby base because while the base
has 'white-space:nowrap' the content doesn't necessarily have it.

* LayoutTests/fast/ruby/implicit-base-child-nowrap-expected.html: Added.
* LayoutTests/fast/ruby/implicit-base-child-nowrap.html: Added.
* Source/WebCore/css/ruby.css:
(ruby > rt):
(ruby > :not(rb, rbc)):

Set nowrap for any direct ruby children (except for unsupported ruby elements to avoid behavior changes for them).

Canonical link: https://commits.webkit.org/273852@main




More information about the webkit-changes mailing list