Skip to content

[css-text-3][CSS2] bidi white space collapsing, with bidi control characters #2233

@frivoal

Description

@frivoal

CSS2 (and also CSS-TEXT-3) is pretty clear about how control characters should be processed when doing white space collapsing:

For each inline element (including anonymous inline elements), the following steps are performed, treating bidi formatting characters as if they were not there:
...

However, it seems that all browsers agree not to do that:
http://jsbin.com/locakid/edit?html,output

They do it correctly when the bidi situation is caused by markup/properties, but not when it comes from bidi control characters.

This causes web-platform-tests/wpt#5460

We need either to fix the specs or to fix the browsers. Browsers all behaving the same makes me doubt changing this is web compatible, but bidi or i18n experts should chime in about how important this is.

@fantasai, what do you think?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions