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

RESOLVED FIXED

Status

()

Core
Layout: Text
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: Aharon (Vladimir) Lanin, Assigned: smontagu)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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".
(Reporter)

Updated

6 years ago
Blocks: 613154
(Reporter)

Comment 1

6 years ago
Created attachment 583453 [details]
test case
(Assignee)

Updated

6 years ago
Attachment #583453 - Attachment mime type: text/plain → text/html
(Assignee)

Comment 2

5 years ago
Fixed by bug 548206, testcase checked in https://hg.mozilla.org/integration/mozilla-inbound/rev/49d2d16b9d5b
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Depends on: 548206
Resolution: --- → FIXED
(Assignee)

Updated

5 years ago
Flags: in-testsuite+
OS: Windows 7 → All
Hardware: x86_64 → All
(Assignee)

Comment 4

5 years ago
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.