← 返回首页
[css-sizing-3] max-content contribution of replaced only-aspect-ratio elements might be improvable · Issue #4218 · w3c/csswg-drafts · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

New issue
New issue

Description

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.