Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
PassionPenguin authored Jul 30, 2024
1 parent a3d62e2 commit 46546c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion files/zh-tw/web/security/mixed_content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ slug: Web/Security/Mixed_content
- 所有用到 {{cssxref("url")}} 的 CSS 值({{cssxref("@font-face")}}、{{cssxref("cursor")}}、{{cssxref("background-image")}}……等等)。
- {{HTMLElement("object")}}(`data` 屬性)

其他資源如 web fonts 與 workers 也可能被認定為主動型混合內容,[因為在 Chromium 就是這樣](https://source.chromium.org/chromium#chromium/src/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp%26q%3DMixedContentChecker::contextTypeFromContext%20f:cpp%26sq%3Dpackage:chromium%26type%3Dcs)
其他資源如 web fonts 與 workers 也可能被認定為主動型混合內容,[因為在 Chromium 就是這樣](https://source.chromium.org/chromium#chromium/src/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp&q=MixedContentChecker::contextTypeFromContext%20f:cpp&sq=package:chromium&type=cs)

## 網頁主控台的警告

Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/web/security/same-origin_policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ document.domain = "company.com";
下面是一些能跨來源嵌入的資源:

- `<script src="…"></script>` 內的 JavaScript,但語法錯誤訊息只限於同源程式碼腳本。
- CSS 的 `<link rel="stylesheet" href="...">`,由於 CSS 寬鬆語法規則,跨來源 CSS 要求正確的 Content-Type 標頭。限制在瀏覽器間各有差異: [IE](<https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622939(v%3Dvs.85)?redirectedfrom%3DMSDN>), [Firefox](https://www.mozilla.org/en-US/security/advisories/mfsa2010-46/), [Chrome](https://bugs.chromium.org/p/chromium/issues/detail?id%3D9877), [Safari](https://support.apple.com/en-us/104158) (請至 CVE-2010-0051)以及[Opera](http://www.opera.com/support/kb/view/943/).
- CSS 的 `<link rel="stylesheet" href="...">`,由於 CSS 寬鬆語法規則,跨來源 CSS 要求正確的 Content-Type 標頭。限制在瀏覽器間各有差異: [IE](<https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622939(v=vs.85)>), [Firefox](https://www.mozilla.org/en-US/security/advisories/mfsa2010-46/), [Chrome](https://bugs.chromium.org/p/chromium/issues/detail?id=9877), [Safari](https://support.apple.com/en-us/104158) (請至 CVE-2010-0051)以及[Opera](http://www.opera.com/support/kb/view/943/).
- {{htmlelement("img")}}的影像;支援格式有 PNG, JPEG, GIF, BMP, SVG 等等
- {{htmlelement("video")}}和{{htmlelement("audio")}}媒體檔案
- [`<object>`](/zh-TW/docs/HTML/Element/object), [`<embed>`](/zh-TW/docs/HTML/Element/embed)[`<applet>`](/zh-TW/docs/HTML/Element/applet)的外掛
Expand Down
5 changes: 2 additions & 3 deletions files/zh-tw/web/svg/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SVG 是一種向量圖形格式。向量圖形可縮可放,圖形完全不會

SVG 可和 HTML、CSS 及 JavaScript 一同運作。使用 SVG 增強普通 HTML 頁面或 web 應用程式。

- Google [Maps](https://maps.google.com/maps) (路徑圖) & [Docs](https://accounts.google.com/v3/signin/identifier?continue%3Dhttps://docs.google.com/%26emr%3D1%26followup%3Dhttps://docs.google.com/%26ifkv%3DAdF4I77M6CvoEwGDxYJ4gdbfgRnDmUPHPE7KT5ImM3SZ2zGsqC7hQsNyhkmflQHhps2DJEHGY0CAUw%26osid%3D1%26passive%3D1209600%26flowName%3DWebLiteSignIn%26flowEntry%3DServiceLogin%26dsh%3DS1329244543:1722256809600726) (試算表繪圖)
- Google [Maps](https://maps.google.com/maps) (路徑圖) & [Docs](https://docs.google.com) (試算表繪圖)
- [SVG 泡沫選單](http://starkravingfinkle.org/projects/demo/svg-bubblemenu-in-html.xml)

## 工具
Expand All @@ -49,8 +49,7 @@ SVG 可和 HTML、CSS 及 JavaScript 一同運作。使用 SVG 增強普通 HTML

- [Tetris](https://www.croczilla.com:443/svg/samples/svgtetris/svgtetris.svg), [Yet Another SVG Tetris](https://www.codedread.com/yastframe.php) & [Connect 4](http://www.treebuilder.de/svg/connect4.svg)
- [Find the State](https://blogs.opera.com/news/) game
- [US popuplation map](https://www.carto.net/papers/svg/us_population/index.html) & [Germany
population chart](https://www.destatis.de/error_path/400.html?al_req_id%3DZqeNvnz3jREhDwW4QYG1LQAAAtU)
- [US popuplation map](https://www.carto.net/papers/svg/us_population/index.html)
- [3D box](http://www.treebuilder.de/default.asp?file=441875.xml) & [3D boxes](http://www.treebuilder.de/default.asp?file=206524.xml)
- [SVG+DOM based drawing tool](http://www.amaltas.org/svgapp)

Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/web/svg/tutorial/paths/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ In these examples, it would probably be simpler to use the \<polygon> or \<polyl

## Curve commands

There are three different commands that you can use to create smooth curves. Two of those curves are Bezier curves, and the third is an "arc" or part of a circle. You might have already gained practical experience with Bezier curves using path tools in Inkscape, Illustrator or Photoshop. For a complete description of the math behind Bezier curves, go to a reference like the one on [Wikipedia](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). There are an infinite number of Bezier curves, but only two simple ones are available in path elements: a cubic one, called with C, and a quadratic one, called with Q.
There are three different commands that you can use to create smooth curves. Two of those curves are Bezier curves, and the third is an "arc" or part of a circle. You might have already gained practical experience with Bezier curves using path tools in Inkscape, Illustrator or Photoshop. For a complete description of the math behind Bezier curves, go to a reference like the one on [Wikipedia](https://en.wikipedia.org/wiki/Bézier_curve). There are an infinite number of Bezier curves, but only two simple ones are available in path elements: a cubic one, called with C, and a quadratic one, called with Q.

### Bezier Curves

Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/web/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ slug: Web/Tutorials
### Extension Development

- [WebExtensions](/zh-TW/docs/Mozilla/Add-ons/WebExtensions)
- : WebExtensions is a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the [extension API](https://developer.chrome.com/docs/extensions) supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or [Microsoft Edge](https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/extensions/?form%3DMA13LH) with [just a few changes](https://extensionworkshop.com/documentation/develop/porting-a-google-chrome-extension/). The API is also fully compatible with [multiprocess Firefox](https://wiki.mozilla.org/Firefox/multiprocess).
- : WebExtensions is a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the [extension API](https://developer.chrome.com/docs/extensions) supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or [Microsoft Edge](https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/extensions) with [just a few changes](https://extensionworkshop.com/documentation/develop/porting-a-google-chrome-extension/). The API is also fully compatible with [multiprocess Firefox](https://wiki.mozilla.org/Firefox/multiprocess).

0 comments on commit 46546c8

Please sign in to comment.