Skip to content

[css-sizing-4] Clarify transfer (or non-transfer) of indefinite sizes through aspect-ratio #5306

Open

Description

@fantasai

Current spec specifies that definite sizes are transferred through the aspect ratio. But there are probably some cases where "indefinite" sizes need to also be transferred, e.g. replaced elements with an intrinsic size must always be able to transfer those sizes.

(Probably for non-replaced elements, such sizes shouldn't transfer, since in many cases they will require layout. This rationale should also be noted in the spec so it's clear.)

Activity

  1. tabatkins commented on Jul 20, 2020

    @tabatkins
    Member

    This is a corner case, but yeah, it is possible to have an SVG with an intrinsic width and nothing else. In this situation, setting 'aspect-ratio: 1 / 1;' should probably transfer the intrinsic width across to become an intrinsic height as well.

  2. fantasai commented on Jul 20, 2020

    @fantasai
    CollaboratorAuthor

    I wonder if we should define fixed-length intrinsic sizes of replaced elements as definite?

  3. tabatkins commented on Jul 20, 2020

    @tabatkins
    Member

    I'm a little scared of doing that; I don't have any example, but I suspect it might have unexpected effects on layout algorithms. The above commit at least gives us the minimal edit to solve this issue, tho.

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