Page MenuHomePhabricator

Figures should support `inline-start` and `inline-end` alignments in addition to `left` and `right`.
Open, Needs TriagePublicFeature

Description

See the definitions of inline-start and inline-end in https://developer.mozilla.org/en-US/docs/Web/CSS/float

Some existing defaults (eg, the default alignment for thumb) are actually start currently, we're just doing this in an adhoc manner.

Can I Use: float flow relative values

See T269704: Default horizontal alignment of thumbnails should depend on content language, not the UI.

Event Timeline

Tacsipacsi changed the subtype of this task from "Task" to "Feature Request".Mar 28 2022, 8:45 AM
Tacsipacsi added a project: RTL.
Tacsipacsi subscribed.

I think it should be done in a similar manner to how thumbs works: not using inline-{start,end} directly in the result HTML/CSS, but rewriting the input inline-{start,end} (or maybe just {start,end}?) to left or right depending on the page language. This would make sure that e.g. partially translated pages, which have mixed directionality, don’t mix the image positions.