Skip to content

Wrong intrinsic size with percentage quirk within inline-block/float #49210

Closed

Description

@Loirooriol

Leftover from #48976, I forgot that the quirk also allows skipping inline-blocks and floats.

<!-- quirks -->
<div style="height: 100px; width: max-content; background: red; outline: solid 2px">
  <div style="display: inline-block">
    <canvas width="200" height="200" style="height: 100%; background: green"></canvas>
  </div>
</div>

(Same with float: left instead of display: inline-block)

Actual Expected
Image Image

Like in #48976, Gecko is also wrong.

Activity

  1. added
    C-has-manual-testcase
    A-layout/2020
    on Oct 23, 2026
  2. added a commit that references this issue on Oct 27, 2026
    525aa57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/2020A-layout/floatsA-layout/inlineC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions