Files
sousa-gecko/testing/web-platform/tests/css/css-text/bidi/empty-span-001.html
T
Jonathan Kew 3f73016e18 Bug 1966313 - Ignore empty inline frames in nsBidiPresUtils::TraverseFrames. r=dshin
Note that this changes the behavior of an existing reftest at
layout/reftests/bidi/588739-2.html. This is expected, because this
testcase was using an empty <span> with no other relevant properties,
and expecting it to interrupt bidi reordering, but that is exactly
the behavior reported as a bug here.

Both Chrome and Safari agree with the updated rendering of that
testcase (and the WPT version added here), so the change is both
logically correct and aligns us with the other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D249259
2025-05-14 21:16:06 +00:00

24 lines
1017 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text: bidi reordering testcase</title>
<link rel="author" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1966313">
<link rel="match" href="empty-span-001-ref.html">
<meta name="assert" content="empty spans should not disrupt bidi reordering">
<p>All the following lines should match:</p>
<span dir="auto">1;234;56א;</span><br>
<span dir="auto"><span></span>1;234;56א;</span><br>
<span dir="auto">1<span></span>;234;56א;</span><br>
<span dir="auto">1;<span></span>234;56א;</span><br>
<span dir="auto">1;2<span></span>34;56א;</span><br>
<span dir="auto">1;23<span></span>4;56א;</span><br>
<span dir="auto">1;234<span></span>;56א;</span><br>
<span dir="auto">1;234;<span></span>56א;</span><br>
<span dir="auto">1;234;5<span></span>6א;</span><br>
<span dir="auto">1;234;56<span></span>א;</span><br>
<span dir="auto">1;234;56א<span></span>;</span><br>
<span dir="auto">1;234;56א;<span></span></span><br>