From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/css/css-ruby/line-spacing.html | 11 +++++++++++ .../tests/css/css-ruby/ruby-dynamic-insertion-005-ref.html | 9 +++++++++ .../tests/css/css-ruby/ruby-dynamic-insertion-005.html | 9 +++++++++ .../tests/css/css-ruby/ruby-dynamic-removal-003-ref.html | 5 +++++ .../tests/css/css-ruby/ruby-dynamic-removal-003.html | 6 ++++++ 5 files changed, 40 insertions(+) (limited to 'testing/web-platform/tests/css/css-ruby') diff --git a/testing/web-platform/tests/css/css-ruby/line-spacing.html b/testing/web-platform/tests/css/css-ruby/line-spacing.html index 9d3c6f23e7..4854e984c4 100644 --- a/testing/web-platform/tests/css/css-ruby/line-spacing.html +++ b/testing/web-platform/tests/css/css-ruby/line-spacing.html @@ -149,5 +149,16 @@ test(() => { assert_greater_than_equal(thirdLine.top - rubyLine.top, rubyLine.top - firstLine.top + RUBY_EMPHASIS_SIZE); }, 'Don\'t Consume half-leading of the next line with text-emphasis'); + +// crbug.com/336592423 +test(() => { + const {container, ruby, rt} = renderRuby( + '
' + + '
' + + 'baseannotation
'); + const firstLine = container.querySelector('span').getBoundingClientRect(); + const rtBox = rt.getBoundingClientRect(); + assert_greater_than_equal(rtBox.top, firstLine.bottom); +}, 'An atomic-inline should not overlap with an annotation in the next line'); diff --git a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005-ref.html b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005-ref.html index 03e5cabe55..79a19130ff 100644 --- a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005-ref.html +++ b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005-ref.html @@ -11,3 +11,12 @@

axby

abxy

abxy

+ +

'a' and 'b c' should be paired with 'x' and 'y z' repectively:

+

a xb cy z

+ +

'a b' and 'c' should be paired with 'x y' and 'z' repectively:

+

a b x ycz

+ +

'a b' and 'c d' should be paired with 'w x' and 'y z' repectively:

+

a b w xc dy z diff --git a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005.html b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005.html index a684d665c8..66f7dbdd17 100644 --- a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005.html +++ b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-insertion-005.html @@ -20,3 +20,12 @@

abxy

abxy

+ +

'a' and 'b c' should be paired with 'x' and 'y z' repectively:

+

a b cy z

+ +

'a b' and 'c' should be paired with 'x y' and 'z' repectively:

+

a b cz

+ +

'a b' and 'c d' should be paired with 'w x' and 'y z' repectively:

+

a b c dy z diff --git a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003-ref.html b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003-ref.html index 0067c014f5..113598eff2 100644 --- a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003-ref.html +++ b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003-ref.html @@ -18,3 +18,8 @@

abxy

abxy

+ +

'a b c' should be paried with 'x y z':

+

a b cx y z +

a b cx y z +

a b cx y z diff --git a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003.html b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003.html index d35b2b968d..ff6c0b4c83 100644 --- a/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003.html +++ b/testing/web-platform/tests/css/css-ruby/ruby-dynamic-removal-003.html @@ -31,3 +31,9 @@

abxy

+ +

'a b c' should be paried with 'x y z':

+ +

a wb cx y z +

a b wcx y z +

a wb cx y z -- cgit v1.2.3