Skip to content

flex figures with caption-side alignment #31

Description

@dginev

The current flex subfigures have a constant align-items: flex-end; rule. That works relatively well when the captions are trailing underneath their subfigure panels.

However, when the captions are leading (on top of) the panels, the layout feels chaotic. For example Table 1 in arXiv:2510.22681v1:
https://arxiv.org/html/2510.22681v1#S3.T1

looks much better with align-items: flex-start;

In essence, the alignment should apply on the captioned side. I think we can achieve that with a CSS :has check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions