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-TW]: update the <fencedframe> element #25295

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

Dr-XYZ
Copy link
Contributor

@Dr-XYZ Dr-XYZ commented Dec 31, 2024

Description

Motivation

Additional details

Related issues and pull requests

@Dr-XYZ Dr-XYZ requested a review from a team as a code owner December 31, 2024 11:11
@Dr-XYZ Dr-XYZ requested review from JasonLamv-t and removed request for a team December 31, 2024 11:11
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Dec 31, 2024
Copy link
Contributor

github-actions bot commented Dec 31, 2024

Preview URLs

Flaws (60)

URL: /zh-TW/docs/Web/HTML/Element/fencedframe
Title: <fencedframe>:圍欄頁框元素
Flaw count: 60

  • macros:
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-TW/docs/Learn/HTML
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-TW/docs/Learn/Getting_started_with_the_web/HTML_basics
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-TW/docs/Learn/HTML/Introduction_to_HTML
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-TW/docs/Learn/HTML/Introduction_to_HTML/Getting_started
    • Wrong xref macro used (consider changing which macro you use). Error processing path /zh-TW/docs/Learn/HTML/Introduction_to_HTML/The_head_metadata_in_HTML
    • and 55 more flaws omitted
External URLs (4)

URL: /zh-TW/docs/Web/HTML/Element/fencedframe
Title: <fencedframe>:圍欄頁框元素

(comment last updated: 2025-01-16 05:01:08)

Dr-XYZ and others added 2 commits December 31, 2024 19:21
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>
@@ -2,7 +2,7 @@
title: <fencedframe>:圍欄頁框元素
slug: Web/HTML/Element/fencedframe
l10n:
sourceCommit: 5618052b7314a29552ff9e4331dd3da13dc19f5e
sourceCommit: 783ffd9c1cf35421242e028a1b8743cf2b1918dd
Copy link
Member

Choose a reason for hiding this comment

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

有两次新的提交,也请合进来吧

@Dr-XYZ Dr-XYZ requested a review from yin1999 January 16, 2025 04:59
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.

还有一些问题


然而,試圖通過 API 調用(例如 {{domxref("HTMLElement.focus()")}})是被禁止的——惡意腳本可以使用一系列這樣的調用來跨越邊界洩露推斷的信息。

## 定位和縮放

作為[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),可以使用 {{cssxref("object-position")}} 和 {{cssxref("object-fit")}} 屬性來調整 `<iframe>` 元素框中嵌入文檔的位置、對齊和縮放
作為一個[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
作為一個[替換元素](/zh-TW/docs/Web/CSS/Replaced_element)`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置。
作為[替換元素](/zh-TW/docs/Web/CSS/Replaced_element)`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置。

Comment on lines +63 to +65
> [!NOTE]
>
> {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。
Copy link
Member

Choose a reason for hiding this comment

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

请使用老格式,预览页渲染的样式不是我们希望看到的

Suggested change
> [!NOTE]
>
> {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。
> **備註:** {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。


嵌入內容的大小可以由 `<fencedframe>` 的 {{domxref("HTMLFencedFrameElement.config", "config")}} 物件的內部 `contentWidth` 和 `contentHeight` 屬性設置。在這種情況下,改變 `<fencedframe>` 的 `width` 或 `height` 將改變頁面上嵌入容器的大小,但容器內部的文件將被視覺縮放以適應。嵌入文件的報告寬度和高度(即 {{domxref("Window.innerWidth")}} 和 {{domxref("Window.innerHeight")}})將保持不變。

## 無障礙議題
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
## 無障礙議題
## 無障礙


## 無障礙議題

使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` 上的 [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title) 來標記其內容。標題的值應該簡要描述嵌入的內容:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` 上的 [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title) 來標記其內容。標題的值應該簡要描述嵌入的內容:
使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title)來標記其內容。標題的值應該簡要描述嵌入的內容:

@yin1999 yin1999 changed the title [zh-TW]: update Element/fencedframe [zh-TW]: update the <fencedframe> element Jan 16, 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
Status: In progress - PRs
Development

Successfully merging this pull request may close these issues.

2 participants