Closed Bug 712603 Opened 13 years ago Closed 12 years ago

By default, <bdi> should have dir="auto"

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aharon, Assigned: smontagu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

According to the HTML5 spec (http://dev.w3.org/html5/spec/Overview.html#the-bdi-element), "The dir global attribute defaults to auto on [the BDI] element (it never inherits from the parent element like with other elements)."

This does not seem to be implemented; <bdi> seems to inherit dir from its parent. Thus, <div dir=rtl><bdi>a!</bdi></div> (try it at data:text/html,%3Cdiv%20dir%3Drtl%3E%3Cbdi%3Ea!%3C%2Fbdi%3E%3C%2Fdiv%3E) is supposed to display as "a!" but displays as "!a".
Blocks: html5bidi
Attached file test case
Attachment #583453 - Attachment mime type: text/plain → text/html
Fixed by bug 548206, testcase checked in https://hg.mozilla.org/integration/mozilla-inbound/rev/49d2d16b9d5b
Status: NEW → RESOLVED
Closed: 12 years ago
Depends on: DirAuto
Resolution: --- → FIXED
Flags: in-testsuite+
OS: Windows 7 → All
Hardware: x86_64 → All
Thanks to Aharon for the testcase, but I don't think he'll want the bug actually assigned to him :)
Assignee: aharon → smontagu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: