Skip to content

Wrong intrinsic size with percentage quirk #48976

Closed

Description

@Loirooriol

Missed this in #39869

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

Gecko is also affected: https://bugzilla.mozilla.org/show_bug.cgi?id=1967619

Servo & Gecko (bad) Blink & WebKit (good)
Image Image

Activity

  1. added
    C-has-manual-testcase
    A-layout/2020
    on Oct 16, 2026
  2. self-assigned this
    on Oct 17, 2026
  3. added a commit that references this issue on Oct 23, 2026
    0b21daa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layout/2020A-layout/blockC-has-manual-testcase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions