Skip to content

Conversation

@pepelsbey
Copy link
Member

@pepelsbey pepelsbey commented Oct 26, 2025

Description

  • Rewrites the @supports font-format example to fix the mistake.
  • Fixes the color font example URL to link to a font file, not CSS.

Motivation

  • The src is a descriptor exclusive to @font-face, not a property that can be set.
  • Google Fonts serves CSS files at these URL, not font files.

Additional details

Initially reported on Mastodon by @RoelN

@pepelsbey pepelsbey requested a review from a team as a code owner October 26, 2025 16:39
@pepelsbey pepelsbey requested review from estelle and removed request for a team October 26, 2025 16:39
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Oct 26, 2025
@pepelsbey pepelsbey requested review from bsmth and dipikabh and removed request for estelle October 26, 2025 16:39
@github-actions github-actions bot added the size/s [PR only] 6-50 LoC changed label Oct 26, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 26, 2025

Preview URLs

Flaws (15)

URL: /en-US/docs/Web/CSS/@supports
Title: @supports
Flaw count: 15

  • broken_links:
    • Can't resolve /en-US/docs/Web/CSS/rule-list
    • Can't resolve /en-US/docs/Web/CSS/function-token
    • Can't resolve /en-US/docs/Web/CSS/any-value
    • Can't resolve /en-US/docs/Web/CSS/any-value
    • Can't resolve /en-US/docs/Web/CSS/at-keyword-token
    • and 10 more flaws omitted
External URLs (2)

URL: /en-US/docs/Web/CSS/@supports
Title: @supports

(comment last updated: 2025-10-28 13:02:52)

@pepelsbey pepelsbey requested a review from RoelN October 27, 2025 11:32
@pepelsbey pepelsbey requested a review from a team as a code owner October 28, 2025 12:02
@pepelsbey pepelsbey requested a review from RoelN October 28, 2025 13:00
@RoelN
Copy link

RoelN commented Oct 28, 2025

@pepelsbey Thanks for these changes, and your patience! :-) I can't approve this PR via the Github interface, but this looks good to me 👍

### Testing for the support of a font technology

The following example applies the CSS style if the browser supports the `COLRv1` font technology:
The following example applies the [Bungee Spice](https://fonts.google.com/specimen/Bungee+Spice) color font if the browser supports the `COLRv1` font technology:
Copy link
Member

Choose a reason for hiding this comment

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

For later: might be interesting to look at using something from shared assets repo instead.

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

TY!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants