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

zh-cn: translate CSS-TOM Guide #25068

Merged
merged 9 commits into from
Dec 21, 2024
Merged

zh-cn: translate CSS-TOM Guide #25068

merged 9 commits into from
Dec 21, 2024

Conversation

xyy94813
Copy link
Contributor

Description

translate CSS-TOM Guide

Motivation

Learning and translating

Additional details

None.

Related issues and pull requests

None.

@xyy94813 xyy94813 requested a review from a team as a code owner December 15, 2024 09:25
@xyy94813 xyy94813 requested review from yin1999 and removed request for a team December 15, 2024 09:25
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Dec 15, 2024
Copy link
Contributor

github-actions bot commented Dec 15, 2024

Preview URLs

Flaws (86)

URL: /zh-CN/docs/Web/API/CSS_Typed_OM_API
Title: CSS 类型对象模型 API
Flaw count: 49

  • macros:
    • /zh-CN/docs/Web/API/CSSStyleValue does not exist but fell back to /en-US/docs/Web/API/CSSStyleValue
    • /zh-CN/docs/Web/API/CSSStyleValue/parse_static does not exist but fell back to /en-US/docs/Web/API/CSSStyleValue/parse_static
    • /zh-CN/docs/Web/API/CSSStyleValue/parseAll_static does not exist but fell back to /en-US/docs/Web/API/CSSStyleValue/parseAll_static
    • /zh-CN/docs/Web/API/StylePropertyMap/set does not exist but fell back to /en-US/docs/Web/API/StylePropertyMap/set
    • /zh-CN/docs/Web/API/StylePropertyMap/append does not exist but fell back to /en-US/docs/Web/API/StylePropertyMap/append
    • and 44 more flaws omitted

URL: /zh-CN/docs/Web/API/CSS_Object_Model
Title: CSS 对象模型(CSSOM)
Flaw count: 36

  • macros:
    • /zh-CN/docs/Web/API/AnimationEvent does not exist but fell back to /en-US/docs/Web/API/AnimationEvent
    • /zh-CN/docs/Web/API/CSSFontFaceRule does not exist but fell back to /en-US/docs/Web/API/CSSFontFaceRule
    • /zh-CN/docs/Web/API/CSSFontFeatureValuesMap does not exist
    • /zh-CN/docs/Web/API/CSSFontFeatureValuesRule does not exist but fell back to /en-US/docs/Web/API/CSSFontFeatureValuesRule
    • /zh-CN/docs/Web/API/CSSImportRule does not exist but fell back to /en-US/docs/Web/API/CSSImportRule
    • and 31 more flaws omitted

URL: /zh-CN/docs/Web/CSS/@property/inherits
Title: inherits
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/CSS/registerProperty_static does not exist but fell back to /en-US/docs/Web/API/CSS/registerProperty_static

(comment last updated: 2024-12-21 14:14:59)

xyy94813 and others added 2 commits December 15, 2024 18:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

一些建议

files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
Comment on lines 23 to 25
- : `CSSStyleValue` 接口的 `parse()` 方法允许通过 CSS 字符串构造 `CSSNumericValue`。它将特定 CSS 属性设置为指定值,并将第一个值作为 `CSSStyleValue` 对象返回。
- {{domxref('CSSStyleValue.parseAll_static', 'CSSStyleValue.parseAll()')}}
- : `CSSStyleValue` 接口的 `parseAll()` 方法将特定 CSS 属性的所有出现设置为指定值,并返回 `CSSStyleValue` 对象数组,每个对象包含一个提供的值。
Copy link
Member

Choose a reason for hiding this comment

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

最好去更新一下英文文档的样式(反馈到上游),我的想法是可以简化一下描述。例如,可以写成“Construct a CSSNumericValue from a CSS string”。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

上游是不是可以统一简化为:

“Method that allowed construct a CSSNumericValue from a CSS string”

Comment on lines 32 to 38
- : `StylePropertyMap` 接口的 `set` 方法,将具有给定属性的 CSS 声明更改为给定的值。
- {{domxref('StylePropertyMap.append()')}}
- : `StylePropertyMap` 接口的 `append` 方法基于给定的属性和值,向 `StylePropertyMap` 添加新的 CSS 声明的方法。
- {{domxref('StylePropertyMap.delete()')}}
- : `StylePropertyMap` 接口的 `delete` 方法,将从 `StylePropertyMap` 中删除具有给定属性的 CSS。
- {{domxref('StylePropertyMap.clear()')}}
- : `StylePropertyMap` 接口的 `clear` 方法,将从 `StylePropertyMap` 删除所有声明。
Copy link
Member

Choose a reason for hiding this comment

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

同,现在的描述的废话有点多

files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/css_typed_om_api/index.md Outdated Show resolved Hide resolved
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

👍

@yin1999 yin1999 merged commit 6cd764a into mdn:main Dec 21, 2024
7 checks passed
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