Skip to content

Adjust css-view-transitions/span-with-overflowing-text-and-box-decorations.html to use a 20px font-size (divisible by 5) for its Ahem text #1248

Description

@dholbert

Test List

https://wpt.fyi/results/css/css-view-transitions/span-with-overflowing-text-and-box-decorations.html

Rationale

This test is currently annotated as having lots of fuzzy pixels:

<meta name="fuzzy" content="maxDifference=0-3;totalPixels=0-4900">

...and it currently has a slightly-worse-than-allowed fuzzy failure in Firefox, as shown on wpt.fyi.

Rather than bumping the threshold to get Firefox passing, I looked at why the test is fuzzy, and (in Firefox at least) it's because it uses an Ahem font-size of 12px:

:root {
  font: 12px/1 Ahem;
}

That goes against two general recommendations for using Ahem in WPTs -- quoting with numbers added by me for readability:

  1. If the test uses the Ahem font, make sure its computed font-size is a multiple of 5px, otherwise baseline alignment may be rendered inconsistently.
  2. A minimum computed font-size of 20px is suggested.

https://web-platform-tests.org/writing-tests/ahem.html#usage

If I switch to 20px/1 Ahem to satisfy those recommendations, then the test passes in Firefox with no fuzzy pixels (I assume in other browsers as well).

I propose we make that change.

Activity

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

    test-change-proposalProposal to add or remove tests for an interop area

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions