Skip to content

Conversation

@AbhishekGiri04
Copy link
Contributor

Description

Fixed incorrect specification link in CSS font-stretch documentation. The link was pointing to the @font-face descriptor instead of the CSS property.

Motivation

The note section was linking to section 4.1.4 (@font-face descriptor) when it should reference section 2.3.1 (CSS property). This was confusing for readers trying to understand the property specification.

Additional details

  • Changed link from https://drafts.csswg.org/css-fonts/#font-stretch-desc to https://drafts.csswg.org/css-fonts/#font-stretch-prop
  • File: files/en-us/web/css/reference/properties/font-stretch/index.md

Related issues and pull requests

Fixes #42551

@AbhishekGiri04 AbhishekGiri04 requested a review from a team as a code owner December 27, 2025 17:11
@AbhishekGiri04 AbhishekGiri04 requested review from chrisdavidmills and removed request for a team December 27, 2025 17:11
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed labels Dec 27, 2025
@github-actions
Copy link
Contributor

Preview URLs

Flaws (33)

URL: /en-US/docs/Web/CSS/Reference/Properties/appearance
Title: appearance
Flaw count: 19

  • broken_links:
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • and 10 more flaws omitted
  • macros:
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Value_processing which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Inheritance which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Value_processing which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_animated_properties which is a redirect

URL: /en-US/docs/Web/CSS/Reference/Properties/font-stretch
Title: font-stretch
Flaw count: 14

  • broken_links:
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/percentage is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • Link /en-US/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#single_bar is a redirect
    • and 5 more flaws omitted
  • macros:
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Value_processing which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Inheritance which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_cascade/Value_processing which is a redirect
    • Macro cssinfo produces link /en-US/docs/Web/CSS/CSS_animated_properties which is a redirect
External URLs (1)

URL: /en-US/docs/Web/CSS/Reference/Properties/font-stretch
Title: font-stretch

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

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

Hi @AbhishekGiri04, and thank you for your contribution.

I think changing this is a good idea, but it seems confusing to me, to link the mention of font-width to the spec section for the font-stretch alias. Maybe link it to https://drafts.csswg.org/css-fonts/#propdef-font-width instead?

If you also want to link to the font-stetch spec section, maybe link it from the later text that says "font-stretch has been kept as an alias" ?

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/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong link to CSS font-stretch spec

2 participants