Skip to content

[css-sizing-3] max-content contribution of replaced only-aspect-ratio elements might be improvable #4218

Closed
@tabatkins

Description

@tabatkins

We appear to have no interop on this case:

<!DOCTYPE html>
<div style="width: max-content; border: thick double;">
<svg style="float:left;" viewBox="0 0 200 100"></svg>

Chrome gives it 0x0, Firefox gives it ICB width and then ratio height. The spec says 300px width and ratio height.

We suggest to go with FF's behavior, as this seems more useful than 0, and less arbitrary than 300px.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions