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

Support CSS Conditional 5 font feature detection extensions #35829

Merged
merged 1 commit into from Sep 13, 2022

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 8, 2022

[1] defines two additional conditional functions font-tech() and
font-format() which were introduced after the resolution of TAG review
[2] and discussion in the CSS working group [3].

These functions allow conditional CSS to be included depending on level
of font support in the font stack of the UA. Feature detection becomes
particular important when checking for the level of color font support,
as UA capabilities still very and not all user agents provide support
for COLRv1 for example.

Implement behind SupportsFontFormatTech RuntimeEnabledFeatures flag
for now, pending I2S.

[1] https://www.w3.org/TR/css-conditional-5/#at-supports-ext
[2] w3ctag/design-reviews#666
[3] w3c/csswg-drafts#6520 (comment)

Bug: 1255685
Change-Id: I96ab292bc9644b049a84e073b367063cdbedd26f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3197710
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046434}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

[1] defines two additional conditional functions `font-tech()` and
`font-format()` which were introduced after the resolution of TAG review
[2] and discussion in the CSS working group [3].

These functions allow conditional CSS to be included depending on level
of font support in the font stack of the UA. Feature detection becomes
particular important when checking for the level of color font support,
as UA capabilities still very and not all user agents provide support
for COLRv1 for example.

Implement behind `SupportsFontFormatTech` RuntimeEnabledFeatures flag
for now, pending I2S.

[1] https://www.w3.org/TR/css-conditional-5/#at-supports-ext
[2] w3ctag/design-reviews#666
[3] w3c/csswg-drafts#6520 (comment)

Bug: 1255685
Change-Id: I96ab292bc9644b049a84e073b367063cdbedd26f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3197710
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046434}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants