[css-position-3] Coordinates of Containing Blocks of Positioned Boxes from Inline Boxes with Mixed Bidi Direction Text Content are Unclear · Issue #7917 · w3c/csswg-drafts (original) (raw)

"css-position-3: 2.1. Containing Blocks of Positioned Boxes" says:

If the ancestor is an inline box, the containing block is formed by the block-start and inline-start content edges of the first box fragment of the ancestor, and the block-end and inline-end content edges of the last box fragment of the ancestor.

When taking into account bidi (see "css-writing-modes-3: 2.4.5. Reordering-induced Box Fragmentation") it is unclear whether first and last are meant logically or visually.

While we consider visual the only useful and expected interpretation in this case, we normally would assume logical when nothing is specified.

Chrome and Firefox have different interpretations:

Source:

abcאdef

Chrome (visual):
image

Firefox (logical):
image

This also demonstrates how unexpected the logical version is.

Whether extending the paragraph is enough or the processes requires more detailed specification we are not sure.