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

add translation for @scope #26308

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

add translation for @scope #26308

wants to merge 19 commits into from

Conversation

dyq747
Copy link
Contributor

@dyq747 dyq747 commented Mar 11, 2025

Description

add translation for @scope

Motivation

Additional details

Related issues and pull requests

@dyq747 dyq747 requested a review from a team as a code owner March 11, 2025 07:05
@dyq747 dyq747 requested review from yin1999 and removed request for a team March 11, 2025 07:05
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Mar 11, 2025
Copy link
Contributor

github-actions bot commented Mar 11, 2025

Preview URLs

External URLs (1)

URL: /zh-CN/docs/Web/CSS/@scope
Title: @scope

(comment last updated: 2025-03-11 07:09:40)

Copy link
Contributor

@PassionPenguin PassionPenguin left a comment

Choose a reason for hiding this comment

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

格式有问题,参见其他已有的 @-rules 的翻译先自己看看改一下吧:)


{{CSSRef}}

**`@scope`** [CSS](/zh-CN/docs/Web/CSS) [@规则](/zh-CN/docs/Web/CSS/CSS_syntax/At-rule) 能够让你选中特定的 DOM 子树中的元素,无需编写过于具体的难以覆盖的选择器就能准确地定位元素,也不用将选择器与 DOM 结构紧密地耦合。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
**`@scope`** [CSS](/zh-CN/docs/Web/CSS) [@规则](/zh-CN/docs/Web/CSS/CSS_syntax/At-rule) 能够让你选中特定的 DOM 子树中的元素,无需编写过于具体的难以覆盖的选择器就能准确地定位元素,也不用将选择器与 DOM 结构紧密地耦合。
**`@scope`** [CSS](/zh-CN/docs/Web/CSS) [@ 规则](/zh-CN/docs/Web/CSS/CSS_syntax/At-rule)能够让你选中特定的 DOM 子树中的元素,无需编写过于具体的难以覆盖的选择器就能准确地定位元素,也不用将选择器与 DOM 结构紧密地耦合。


**`@scope`** [CSS](/zh-CN/docs/Web/CSS) [@规则](/zh-CN/docs/Web/CSS/CSS_syntax/At-rule) 能够让你选中特定的 DOM 子树中的元素,无需编写过于具体的难以覆盖的选择器就能准确地定位元素,也不用将选择器与 DOM 结构紧密地耦合。

在 JavaScript 中,可以通过 CSS 对象模型接口 {{DOMxRef("CSSScopeRule")}} 访问 `@scope` 。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
在 JavaScript 中,可以通过 CSS 对象模型接口 {{DOMxRef("CSSScopeRule")}} 访问 `@scope`
在 JavaScript 中,可以通过 CSS 对象模型接口 {{DOMxRef("CSSScopeRule")}} 访问 `@scope`

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.

还是有与 #26307 类似的问题,请确保主分支只包含来自上游的提交,然后再基于主分支创建新的分支,并贡献新的内容

@yin1999 yin1999 marked this pull request as draft March 11, 2025 11:33
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
Status: In progress - PRs
Development

Successfully merging this pull request may close these issues.

3 participants