diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /testing/web-platform/tests/css/css-ruby | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-ruby')
5 files changed, 40 insertions, 0 deletions
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( + '<div style="line-height:1;">' + + '<span style="display:inline-block; width:1em; height:4em; vertical-align:top"></span><br>' + + '<ruby>base<rt>annotation</rt></ruby></div>'); + 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'); </script> </body> 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 @@ <p><rb>a</rb><rt>x</rt><rb>b</rb><rt>y</rt></p> <p><rbc><span>a</span><rb></rb>b</rbc><rt>x</rt><rt></rt><rt>y</rt></p> <p><rb>a</rb><rb></rb><rb>b</rb><rtc><span>x</span><rt></rt>y</rtc></p> + +<p>'a' and 'b c' should be paired with 'x' and 'y z' repectively:</p> +<p><ruby>a <rt>x</rt><span style="display:block">b</span> c<rt>y z</ruby></p> + +<p>'a b' and 'c' should be paired with 'x y' and 'z' repectively:</p> +<p><ruby>a <span style="display:block">b</span> <rt>x y</rt><span>c</span><rt>z</ruby></p> + +<p>'a b' and 'c d' should be paired with 'w x' and 'y z' repectively:</p> +<p><ruby>a <span style="display:block">b</span> <rt>w x</rt><span>c</span> <span style="display:block">d</span><rt>y z</ruby> 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 @@ <p><rbc><span data-insert="after" data-tag="rb">a</span>b</rbc><rt>x</rt><rt></rt><rt>y</rt></p> <!-- pseudo ruby text --> <p><rb>a</rb><rb></rb><rb>b</rb><rtc><span data-insert="after" data-tag="rt">x</span>y</rtc></p> + +<p>'a' and 'b c' should be paired with 'x' and 'y z' repectively:</p> +<p><ruby>a <span style="display:block" data-insert="before" data-tag="rt" data-text="x">b</span> c<rt>y z</ruby></p> + +<p>'a b' and 'c' should be paired with 'x y' and 'z' repectively:</p> +<p><ruby>a <span style="display:block">b</span> <span data-insert="before" data-tag="rt" data-text="x y">c</span><rt>z</ruby></p> + +<p>'a b' and 'c d' should be paired with 'w x' and 'y z' repectively:</p> +<p><ruby>a <span style="display:block">b</span> <span data-insert="before" data-tag="rt" data-text="w x">c</span> <span style="display:block">d</span><rt>y z</ruby> 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 @@ <p><rbc>ab</rbc><rt>xy</rt></p> <p><rb>ab</rb><rtc style="letter-spacing: 1px">xy</rtc></p> + +<p>'a b c' should be paried with 'x y z':</p> +<p><ruby>a b <span style="display:block">c</span><rt>x y z</ruby> +<p><ruby>a <span style="display:block">b</span> c<rt>x y z</ruby> +<p><ruby><span style="display:block">a</span> b <span style="display:block">c</span><rt>x y z</ruby> 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 @@ <!-- pseudo ruby text --> <!-- letter-spacing is added here to avoid fuzzy on Windows. See bug 1111891 --> <p><rb>ab</rb><rtc style="letter-spacing: 1px">x<rt class="remove"></rt>y</rtc></p> + +<p>'a b c' should be paried with 'x y z':</p> +<!-- merge --> +<p><ruby>a <rt class="remove">w</rt><span>b</span> <span style="display:block">c</span><rt>x y z</ruby> +<p><ruby>a <span style="display:block">b</span> <rt class="remove">w</rt><span>c</span><rt>x y z</ruby> +<p><ruby><span style="display:block">a</span> <rt class="remove">w</rt><span>b</span> <span style="display:block">c</span><rt>x y z</ruby> |