Open r12a opened 5 years ago
I would have expected that the bidi isolation that applies to an HTML div
or li
when it is a block element would remain unchanged around the content of the element when CSS is used to convert it to inline, eg. for constructing tabs on a page. (I would expect that the same applies for all block elements that are defined in HTML to have isolation.)
I coudn't find any text in the Writing Modes spec to confirm that expectation. @fantasai @kojiishi what do you think?
Here is the recommended default UA stylesheet in HTML spec:
https://html.spec.whatwg.org/#bidi-rendering
Firefox seems to be the reasonable one, and also it follows the recommendation of the spec.
Right, the spec is in HTML. We have a contributor on our crbug 296863 but he is not active these days.
And that was the reason why I argued that the HTML spec's specifying div as meaningless at all is inaccurate. Because the unicode-bidi
value for a div defaults to isolate
, which is inconsistent with specifying div as meaningless at all
It seems to me that isolation for a block is irrelevant until it is converted to inline. Thus FF's behavior (isolating the converted block) is the more useful one. Also, when in doubt, isolating is less likely to produce surprising effects than not isolating, so if the specs need to be clarified, this is the preferred choice.
@ntounsi describes some interesting behaviour that i will reproduce here: