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 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'testing/web-platform/tests/css/css-ruby/line-spacing.html') 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'); -- cgit v1.2.3