Skip to content

Conversation

@InkSha
Copy link
Contributor

@InkSha InkSha commented Nov 14, 2025

Description

对 CSS attr() 的中文文档进行了更新与修订,补充了被遗漏的规范细节。主要包括:

  • 改进 <attr-type> 的类型取值说明。
  • 补充 <fallback-value> 的完整行为(包括允许 fallback 使用非同类值,例如 auto)。
  • 明确 type(<url>) 的安全限制。

Motivation

当前中文文档在多个技术细节上与最新规范 不一致,且缺少部分关键说明。

此次更新可确保读者获得与规范同步且更完整的参考资料,避免对 attr() 行为产生误解。

Additional details

Related issues and pull requests

@InkSha InkSha requested a review from a team as a code owner November 14, 2025 03:26
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Nov 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 15, 2025

Preview URLs

Flaws (46)

URL: /zh-CN/docs/Web/CSS/Reference/Values/attr
Title: attr()
Flaw count: 46

  • broken_links:
    • /zh-CN/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#question_mark is a redirect
    • /zh-CN/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#question_mark is a redirect
    • /zh-CN/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#brackets is a redirect
    • /zh-CN/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#question_mark is a redirect
    • /zh-CN/docs/Web/CSS/CSS_values_and_units/Value_definition_syntax#brackets is a redirect
    • and 27 more flaws omitted
  • macros:
    • Macro produces link /zh-CN/docs/Web/CSS/content which is a redirect
    • Macro produces link /zh-CN/docs/Web/CSS/var which is a redirect
    • Can't resolve /zh-CN/docs/Web/CSS/type
    • Can't resolve /zh-CN/docs/Web/CSS/type
    • Macro produces link /zh-CN/docs/Web/CSS/url_value which is a redirect
    • and 9 more flaws omitted
External URLs (1)

URL: /zh-CN/docs/Web/CSS/Reference/Values/attr
Title: attr()

(comment last updated: 2025-11-20 00:55:57)

@github-project-automation github-project-automation bot moved this from Review requested to In progress - PRs in MDN translated-content l10n-zh Nov 17, 2025
InkSha and others added 4 commits November 17, 2025 14:19
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@InkSha
Copy link
Contributor Author

InkSha commented Nov 17, 2025

@yin1999 已根据英文文档进行修改,烦请复核。

InkSha and others added 2 commits November 19, 2025 15:19
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yin1999 yin1999 enabled auto-merge (squash) November 20, 2025 00:54
@yin1999
Copy link
Member

yin1999 commented Nov 20, 2025

@InkSha 欢迎来到 MDN 社区 🎉

@yin1999 yin1999 merged commit a6d31ba into mdn:main Nov 20, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from In progress - PRs to Done in MDN translated-content l10n-zh Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

l10n-zh Issues related to Chinese content.

Projects

Development

Successfully merging this pull request may close these issues.

2 participants