Closed
Bug 717811
Opened 13 years ago
Closed 8 years ago
<bdi> does not act as neutral character when it is immediately followed or preceded by characters with strong direction
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: aharon, Unassigned)
References
Details
(Keywords: rtl)
Attachments
(6 files)
For the purposes of applying the bidirectional algorithm to a paragraph-level container containing a unicode-bidi:isolate element like <bdi>, the isolate element is supposed to be treated like a neutral character. This is currently not the case when the <bdi> is *immedately* followed or preceded by a character with string direction, or by another <bdi>. I am attaching three test cases being submitted to the HTML5 test suite that fail due to this bug.
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Reporter | ||
Comment 3•13 years ago
|
||
Reporter | ||
Comment 4•13 years ago
|
||
Reporter | ||
Comment 5•13 years ago
|
||
Updated•12 years ago
|
Attachment #588252 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #588253 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #588254 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #588259 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #588260 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #588263 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 6•12 years ago
|
||
This bug is much more of a problem than I thought, because unicode-bidi:-moz-isolate is the Mozilla default for block elements. This is a specified by HTML5; IE9 and WebKit still have unicode-bidi:normal as the default. The unfortunate result is that the following gets badly garbled in Mozilla, but not in IE or WebKit: <html dir="rtl"><h3 style="display: inline;"><span dir="ltr">John Doe‏</span></h3><a href="#" style="margin-right:10px;">12 באפר 2012</a></html>
Reporter | ||
Comment 7•12 years ago
|
||
Sorry, I meant to write: <html dir="rtl"><h3 style="display: inline;"><span dir="ltr">John Doe</span>‏</h3><a href="#" style="margin-right:10px;">12 באפר 2012</a></html>
Comment 8•12 years ago
|
||
see also attachment 587960 [details] from bug 712600
May a related bug: Bug 996627
Reporter | ||
Comment 10•10 years ago
|
||
Not sure whether bug 996627 is truly related. It stops reproducing when any on of the three seemingly do-nothing <span>s in the test case there is removed. A <span> should be invisible to the UBA. The problem here is caused by actual strongly directional characters (that do get fed into the UBA) immediately adjacent to the <bdi>.
Reporter | ||
Comment 11•9 years ago
|
||
Ted, any chance you can take a look at this bug? Fixing bug 1160847 is supposed to be the way to do it, but that ran into trouble.
Comment 12•8 years ago
|
||
It seems my existing patches for bug 1160847 also fix this bug.
Comment 13•8 years ago
|
||
Fixed by bug 1160847.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•