Summary: | Putting a dir attribute on a bdi element makes it lose isolation | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aharon (Vladimir) Lanin <aharon> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | aharon, amir.aharoni, eric, leviw, playmobil, rniwa, shanestephens |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 63903 | ||
Bug Blocks: | 50910 |
Description
Aharon (Vladimir) Lanin
2011-10-18 15:46:20 PDT
It would have been better if I had left out the first two lines I quoted from the HTML5 spec re the default stylesheet. They set direction, and not unicode-bidi, and are irrelevant to the bug. Furthermore, they make use of the :dir() pseudo-class, which has not been implemented yet (as far as I know); I am guessing that the direction property currently gets set by means other than the default stylesheet. In any case, the relevant lines from the HTML5 spec are: [dir] { unicode-bidi: embed; } bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; } bdo, bdo[dir] { unicode-bidi: bidi-override; } bdo[dir=auto i] { unicode-bidi: bidi-override isolate; } textarea[dir=auto i], pre[dir=auto i] { unicode-bidi: plaintext; } I expect that some of these, e.g. the last one, are already in the default stylesheet. The rest need to go in, and the order is important. Fixed in http://trac.webkit.org/changeset/101268. |