Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Change Proposal for font-size-adjust #634

Open
drott opened this issue Feb 13, 2024 · 7 comments
Open

Test Change Proposal for font-size-adjust #634

drott opened this issue Feb 13, 2024 · 7 comments
Labels
focus area: font-size-adjust test-change-proposal Proposal to add or remove tests for an interop area

Comments

@drott
Copy link

drott commented Feb 13, 2024

Test List (updated)

  • css-fonts/animations/font-size-adjust-composition.html - remove any tests that refer to ic-height.
  • css-fonts/parsing/ - ditto, remove any tests that refer to ic-height.
    • font-size-adjust-computed.html
    • font-size-adjust-valid.html
    • font-size-adjust-invalid.html

Rationale

ic-height fallback behavior is unresolved, compare w3c/csswg-drafts#6384

As long as we do not have a consistent, testable specified behavior for what we do when ic-height is not available, we can not logically achieve meaningful interop, or complete test coverage. There are realistic scenarios where the value is not available, and UA specific fallbacks cause the kind of surprising behavior that we want to remove through the Interop effort.

CC @shivamidow @lilles

@drott drott added the test-change-proposal Proposal to add or remove tests for an interop area label Feb 13, 2024
@lilles
Copy link
Member

lilles commented Feb 13, 2024

There are also subtests for ic-height in:

css-fonts/parsing/font-size-adjust-computed.html
css-fonts/parsing/font-size-adjust-valid.html
css-fonts/parsing/font-size-adjust-invalid.html

@drott
Copy link
Author

drott commented Feb 13, 2024

Updated issue description with those.

@nairnandu
Copy link
Contributor

@jgraham / @zcorpan can you review for Gecko?
@gsnedders / @nt1m can you review for WebKit?

@nt1m
Copy link
Member

nt1m commented Feb 14, 2024

Given it's early in the year I slightly favor the option of standardizing ic-height fallback behavior rather than removing this. I'm open to removing ic-height fallback behavior tests if the standardization timeline does not give enough room for other browsers to implement though. cc @fantasai

@emilio
Copy link

emilio commented Feb 14, 2024

Yes, alternatively can we move the ic-height stuff to separate tests, or guard it with CSS.supports checks instead?

@drott
Copy link
Author

drott commented Feb 14, 2024

Moving ic-height tests in that case to guarded by CSS.supports works for me, thanks for the suggestion. Our shipping decision for the ic-height value depends on if and what we can resolve on in w3c/csswg-drafts#6384

@drott
Copy link
Author

drott commented May 8, 2024

Following w3c/csswg-drafts#6384 I can foresee two possible outcomes:

  1. We do base the adjustments on unreliable heuristics, in which tests we can only WPT test situations in which the relevant metrics are available.
  2. We agree to make no adjustments if a specified metric is not available, in which case we can also test fallback behavior. (= no adjustment expected).

Do these outcomes sound reasonable to everyone on this thread? And would folks agree on checking tests and if needed or non interopable: removing expectations for fallback behavior from tests in the case of 1)?

This also means, we're okay shipping ic-height if in WPT tests we don't try to attempt to test or pretend we have interoperable fallback behavior in absence of the metric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus area: font-size-adjust test-change-proposal Proposal to add or remove tests for an interop area
Projects
None yet
Development

No branches or pull requests

6 participants