Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unicode-bidi:isolate the default for an element with a dir attribute (instead of unicode-bidi:embed) (chrome) #27

Closed
r12a opened this issue Mar 16, 2016 · 1 comment
Labels
tracker i18n is following a discussion, but doesn't require resolution.

Comments

@r12a
Copy link
Contributor

r12a commented Mar 16, 2016

https://code.google.com/p/chromium/issues/detail?id=391260

aharon.l...@gmail.com, Jul 3, 2014

Version: All
OS: All

The HTML5 spec changes the semantics of the dir attribute to use unicode-bidi:isolate instead of unicode-bidi:embed (on all elements except BDO), and unicode-bidi: isolate-override instead of unicode-bidi:bidi-override on BDO.

Here is a link to the relevant section of the HTML5 spec and the CSS involved:
http://www.w3.org/TR/html5/rendering.html#bidi-rendering

Similarly, the definition of the dir attribute in the HTML5 spec speaks of it making the element's content "directionally isolated"; see http://www.w3.org/TR/html5/dom.html#the-dir-attribute

This is a very important change that should make it easier to author bidi pages. It was proposed and extensively discussed by the W3C i18n WG (http://www.w3.org/International/wiki/Html-bidi-isolation), and then by the WHATWG and HTML5 WG (https://www.w3.org/Bugs/Public/show_bug.cgi?id=23260).

It is also a very easily implemented change - just a change in the Chrome's default CSS.

The change is not backward compatible, but it is very close to the behavior of IE 8 through IE 11. The bodies mentioned above were well aware of the lack of backward compatibility, but approved the change nonetheless because of its benefits going forward.

It is now the standard.

Chrome's implementation of unicode-bidi:isolate (prefixed as -webkit-isolate) has undergone a number of bug fixes over the past year and a half and is currently stable and, as far as I know, bug-free.

For the past three months, all Google Web Search and Google Maps pages have already included a piece of CSS (very similar to that in http://www.w3.org/TR/html5/rendering.html#bidi-rendering) that implements this behavior, i.e. applies isolation to all elements with the dir attribute. It fixed a number of problems in those pages, and did not cause any problems. In a couple of cases, it caused a visible change in the display that was considered to be neither good nor bad, just different.

It is time to implement the HTML5 spec and make this Chrome's default behavior for all pages.

BTW, this supersedes issue 296863.

@r12a r12a added tracker i18n is following a discussion, but doesn't require resolution. browser-implementations labels Mar 16, 2016
@r12a r12a modified the milestone: track Mar 17, 2016
@r12a
Copy link
Contributor Author

r12a commented Jul 21, 2017

This is now fixed for Chrome. See https://www.w3.org/International/tests/repo/results/the-dir-attribute-isolation

We should open a new issue for Edge.

@r12a r12a closed this as completed Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracker i18n is following a discussion, but doesn't require resolution.
Projects
None yet
Development

No branches or pull requests

1 participant