Skip to content

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

Closed

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.

Activity

  1. jensimmons commented on Aug 20, 2019

    @jensimmons
    Contributor

    I agree.

  2. css-meeting-bot commented on Jan 15, 2020

    @css-meeting-bot
    Member

    The CSS Working Group just discussed [css-sizing-3] max-content contribution of replaced only-ar elements might be improvable, and agreed to the following:

    • RESOLVED: Specify Firefox's behavior
    The full IRC log of that discussion <dael> Topic: [css-sizing-3] max-content contribution of replaced only-ar elements might be improvable
    <dael> github: https://github.com//issues/4218
    <dael> fantasai: We triaged this last week. Case is we have some box which says I want width max-content
    <dael> fantasai: Something inside it intrinsically sized with an aspect ratio and no size info
    <dael> fantasai: No interop. Chrome is 0x0 as max content. Spec says use 300px width and ratio for height. Resolvable but arbitratry. FF uses initial containing block. That seems useful. We suggest spec FF behavior
    <dael> astearns: Concerns?
    <dael> astearns: Objections to Specify Firefox's behavior?
    <dael> RESOLVED: Specify Firefox's behavior
  3. changed the title [-][css-sizing-3] max-content contribution of replaced only-ar elements might be improvable[/-] [+][css-sizing-3] max-content contribution of replaced only-aspect-ratio elements might be improvable[/+] on Jan 15, 2020
  4. fantasai commented on Jan 16, 2020

    @fantasai
    Collaborator

    Fixed in 57e2680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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