Skip to content

Implement dominant-baseline #50189

Done

Description

@Loirooriol

https://drafts.csswg.org/css-inline-3/#dominant-baseline-property

Writing modes (#2560) will at least need a proper implementation of the initial value:

Equivalent to alphabetic in horizontal writing modes and in vertical writing modes when text-orientation is sideways. Equivalent to central in vertical writing modes when text-orientation is mixed or upright.

But at that point we can maybe implement it fully.

Related: #45429 - Implement the new alignment-baseline keywords

Activity

  1. added
    B-feature-tracking
    on Nov 24, 2026
  2. Loirooriol commented on Nov 24, 2026

    @Loirooriol
    ContributorAuthor

    Example:

    <!DOCTYPE html>
    <div style="dominant-baseline: text-top">
      text
      <canvas width="50" style="background: cyan"></canvas>
    </div>
    Servo Firefox (expected)
    image image
  3. added
    C-has-manual-testcase
    on Nov 24, 2026
  4. Loirooriol commented on Nov 24, 2026

    @Loirooriol
    ContributorAuthor

    So in #50196 I plan to add support just for the basic values.

    Then #45429 can deal with the modern values for both dominant-baseline and alignment-baseline.

  5. added a commit that references this issue on Nov 25, 2026
    a256846
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/inlineB-feature-trackingC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions