From 21733f2f777f25001ec2d932fd5078456ac4e2b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:25:18 +0000 Subject: [PATCH 1/2] build(deps): bump markdownlint-cli2 from 0.13.0 to 0.14.0 Bumps [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) from 0.13.0 to 0.14.0. - [Changelog](https://github.com/DavidAnson/markdownlint-cli2/blob/main/CHANGELOG.md) - [Commits](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: markdownlint-cli2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 86 +++++++++++++++++++--------------------------------- 2 files changed, 33 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index e4ca526859b517..5caa1f10656461 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "husky": "9.1.5", "lint-staged": "15.2.10", "markdown-it": "^14.1.0", - "markdownlint-cli2": "0.13.0", + "markdownlint-cli2": "0.14.0", "markdownlint-rule-search-replace": "1.2.0", "mdast-util-from-markdown": "^2.0.1", "ora": "^8.1.0", diff --git a/yarn.lock b/yarn.lock index 0163dc95b2571f..752e67ea06ee4f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -142,13 +142,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - braces@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" @@ -339,13 +332,6 @@ fdir@^6.3.0: resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.3.0.tgz#fcca5a23ea20e767b15e081ee13b3e6488ee0bb0" integrity sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ== -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - fill-range@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" @@ -399,10 +385,10 @@ glob@7: once "^1.3.0" path-is-absolute "^1.0.0" -globby@14.0.1: - version "14.0.1" - resolved "https://registry.yarnpkg.com/globby/-/globby-14.0.1.tgz#a1b44841aa7f4c6d8af2bc39951109d77301959b" - integrity sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ== +globby@14.0.2: + version "14.0.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-14.0.2.tgz#06554a54ccfe9264e5a9ff8eded46aa1e306482f" + integrity sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw== dependencies: "@sindresorhus/merge-streams" "^2.1.0" fast-glob "^3.3.2" @@ -513,10 +499,10 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -jsonc-parser@3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" - integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== +jsonc-parser@3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.3.1.tgz#f2a524b4f7fd11e3d791e559977ad60b98b798b4" + integrity sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== lilconfig@~3.1.2: version "3.1.2" @@ -589,33 +575,33 @@ markdown-it@14.1.0, markdown-it@^14.1.0: punycode.js "^2.3.1" uc.micro "^2.1.0" -markdownlint-cli2-formatter-default@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/markdownlint-cli2-formatter-default/-/markdownlint-cli2-formatter-default-0.0.4.tgz#81e26b0a50409c0357c6f0d38d8246946b236fab" - integrity sha512-xm2rM0E+sWgjpPn1EesPXx5hIyrN2ddUnUwnbCsD/ONxYtw3PX6LydvdH6dciWAoFDpwzbHM1TO7uHfcMd6IYg== +markdownlint-cli2-formatter-default@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/markdownlint-cli2-formatter-default/-/markdownlint-cli2-formatter-default-0.0.5.tgz#b8fde4e127f9a9c0596e6d45eed352dd0aa0ff98" + integrity sha512-4XKTwQ5m1+Txo2kuQ3Jgpo/KmnG+X90dWt4acufg6HVGadTUG5hzHF/wssp9b5MBYOMCnZ9RMPaU//uHsszF8Q== -markdownlint-cli2@0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/markdownlint-cli2/-/markdownlint-cli2-0.13.0.tgz#691cab01994295b4b8c87aa0485c0b1e0f792289" - integrity sha512-Pg4nF7HlopU97ZXtrcVISWp3bdsuc5M0zXyLp2/sJv2zEMlInrau0ZKK482fQURzVezJzWBpNmu4u6vGAhij+g== +markdownlint-cli2@0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/markdownlint-cli2/-/markdownlint-cli2-0.14.0.tgz#57dd69224c6859d64d79b6e88163208e170dc310" + integrity sha512-2cqdWy56frU2FTpbuGb83mEWWYuUIYv6xS8RVEoUAuKNw/hXPar2UYGpuzUhlFMngE8Omaz4RBH52MzfRbGshw== dependencies: - globby "14.0.1" + globby "14.0.2" js-yaml "4.1.0" - jsonc-parser "3.2.1" - markdownlint "0.34.0" - markdownlint-cli2-formatter-default "0.0.4" - micromatch "4.0.5" + jsonc-parser "3.3.1" + markdownlint "0.35.0" + markdownlint-cli2-formatter-default "0.0.5" + micromatch "4.0.8" + +markdownlint-micromark@0.1.10: + version "0.1.10" + resolved "https://registry.yarnpkg.com/markdownlint-micromark/-/markdownlint-micromark-0.1.10.tgz#a77a1a70adad9eac18ff412baf36a0c2189875d7" + integrity sha512-no5ZfdqAdWGxftCLlySHSgddEjyW4kui4z7amQcGsSKfYC5v/ou+8mIQVyg9KQMeEZLNtz9OPDTj7nnTnoR4FQ== markdownlint-micromark@0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/markdownlint-micromark/-/markdownlint-micromark-0.1.2.tgz#5520e04febffa46741875a2f297509ffdb561f5c" integrity sha512-jRxlQg8KpOfM2IbCL9RXM8ZiYWz2rv6DlZAnGv8ASJQpUh6byTBnEsbuMZ6T2/uIgntyf7SKg/mEaEBo1164fQ== -markdownlint-micromark@0.1.9: - version "0.1.9" - resolved "https://registry.yarnpkg.com/markdownlint-micromark/-/markdownlint-micromark-0.1.9.tgz#4876996b60d4dceb3a02f4eee2d3a366eb9569fa" - integrity sha512-5hVs/DzAFa8XqYosbEAEg6ok6MF2smDj89ztn9pKkCtdKHVdPQuGMH7frFfYL9mLkvfFe4pTyAMffLbjf3/EyA== - markdownlint-rule-helpers@0.21.0: version "0.21.0" resolved "https://registry.yarnpkg.com/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.21.0.tgz#197ed640b35b21450618eb6796bbe7bfe7ef4020" @@ -630,13 +616,13 @@ markdownlint-rule-search-replace@1.2.0: dependencies: markdownlint-rule-helpers "0.21.0" -markdownlint@0.34.0: - version "0.34.0" - resolved "https://registry.yarnpkg.com/markdownlint/-/markdownlint-0.34.0.tgz#bbc2047c952d1644269009a69ba227ed597b23fa" - integrity sha512-qwGyuyKwjkEMOJ10XN6OTKNOVYvOIi35RNvDLNxTof5s8UmyGHlCdpngRHoRGNvQVGuxO3BJ7uNSgdeX166WXw== +markdownlint@0.35.0: + version "0.35.0" + resolved "https://registry.yarnpkg.com/markdownlint/-/markdownlint-0.35.0.tgz#8189347fef3550045de78a96c52a7f45c2a4f91e" + integrity sha512-wgp8yesWjFBL7bycA3hxwHRdsZGJhjhyP1dSxKVKrza0EPFYtn+mHtkVy6dvP1kGSjovyG5B8yNP6Frj0UFUJg== dependencies: markdown-it "14.1.0" - markdownlint-micromark "0.1.9" + markdownlint-micromark "0.1.10" mdast-util-from-markdown@^2.0.1: version "2.0.1" @@ -872,15 +858,7 @@ micromark@^4.0.0: micromark-util-symbol "^2.0.0" micromark-util-types "^2.0.0" -micromatch@4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -micromatch@^4.0.4, micromatch@~4.0.8: +micromatch@4.0.8, micromatch@^4.0.4, micromatch@~4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== From 7900d7e3f816c3f6819a42765e50bc4de457ccf6 Mon Sep 17 00:00:00 2001 From: Allo Date: Sat, 7 Sep 2024 13:28:33 +0800 Subject: [PATCH 2/2] fix rules --- docs/ko/guides/glossary-guide.md | 6 ++--- files/es/web/css/animation-fill-mode/index.md | 24 ++++++++++++------- .../ja/web/api/wheelevent/wheelevent/index.md | 10 +++++--- .../css/animation-iteration-count/index.md | 3 +-- .../global_objects/symbol/species/index.md | 3 +-- files/ru/web/http/authentication/index.md | 3 +-- files/zh-cn/glossary/breadcrumb/index.md | 3 +-- .../development_environment/index.md | 2 +- .../zh-cn/web/html/element/meta/name/index.md | 17 ++++++------- 9 files changed, 39 insertions(+), 32 deletions(-) diff --git a/docs/ko/guides/glossary-guide.md b/docs/ko/guides/glossary-guide.md index b3a7706cc4df67..b1688f2a8b6a2c 100644 --- a/docs/ko/guides/glossary-guide.md +++ b/docs/ko/guides/glossary-guide.md @@ -22,9 +22,9 @@ ## 용어 안내서 `참고 링크` 우선 순위 -- 1. 해당 단어에 대한 의견을 나눈 PR 링크 -- 2. 적절한 ko MDN 문서 링크 -- 3. 적절한 en-us MDN 문서 링크 +1. 해당 단어에 대한 의견을 나눈 PR 링크 +2. 적절한 ko MDN 문서 링크 +3. 적절한 en-us MDN 문서 링크 ## Section Title diff --git a/files/es/web/css/animation-fill-mode/index.md b/files/es/web/css/animation-fill-mode/index.md index 30e0c7c6b796da..cc7bcd1f61f824 100644 --- a/files/es/web/css/animation-fill-mode/index.md +++ b/files/es/web/css/animation-fill-mode/index.md @@ -37,21 +37,27 @@ animation-fill-mode: unset; - `none` - : La animación no aplicará los estilos antes ni después de su ejecución. - `forwards` + - : El objeto sobre el que se aplica la animación quedará con los valores y estilos que le aplique el último keyframe de la ejecución de la animación. El último valor dependerá del valor de {{ cssxref("animation-direction") }} y {{ cssxref("animation-iteration-count") }}: + | `animation-direction` | `animation-iteration-count` | ultimo keyframe encontrado | | --------------------- | --------------------------- | -------------------------- | - | `normal` | even o odd | `100%` or `to` | - | `reverse` | even o odd | `0%` or `from` | - | `alternate` | even | `0%` or `from` | - | `alternate` | odd | `100%` or `to` | - | `alternate-reverse` | even | `100%` or `to` | - | `alternate-reverse` | odd | `0%` or `from` | + | `normal` | even o odd | `100%` or `to` | + | `reverse` | even o odd | `0%` or `from` | + | `alternate` | even | `0%` or `from` | + | `alternate` | odd | `100%` or `to` | + | `alternate-reverse` | even | `100%` or `to` | + | `alternate-reverse` | odd | `0%` or `from` | + - `backwards` + - : La animación aplicará los valores definidos en el primer [keyframe](/es/docs/CSS/@keyframes) tan pronto como se aplique al objeto, y los retendrá durante el tiempo de {{ cssxref("animation-delay") }}. El primer keyframe dependerá del valor de {{ cssxref("animation-direction") }}: - | `animation-direction` | primer keyframe | + + | `animation-direction` | primer keyframe | | ------------------------------- | --------------- | - | `normal` o `alternate` | `0%` or `from` | - | `reverse` o `alternate-reverse` | `100%` or `to` | + | `normal` o `alternate` | `0%` or `from` | + | `reverse` o `alternate-reverse` | `100%` or `to` | + - `both` - : La animación seguirá las reglas de las opciones forwards y backwards, extendiendo las propiedades de la animación en ambas direcciones. diff --git a/files/ja/web/api/wheelevent/wheelevent/index.md b/files/ja/web/api/wheelevent/wheelevent/index.md index 11c4942de4287d..4d2eaa312d910f 100644 --- a/files/ja/web/api/wheelevent/wheelevent/index.md +++ b/files/ja/web/api/wheelevent/wheelevent/index.md @@ -27,7 +27,9 @@ new WheelEvent(type, options) - : イベント名の文字列です。 大文字と小文字は区別され、ブラウザーは常に `wheel` に設定します。 - `options` {{optional_inline}} + - : _{{domxref("MouseEvent/MouseEvent", "MouseEvent()")}} で定義するプロパティに加え_、以下のプロパティを持つことができるオブジェクトです。 + - `deltaX` {{optional_inline}} - : 浮動小数点数で、水平スクロール量を `deltaMode` の単位で表します。 既定値は `0.0` です。 @@ -38,12 +40,14 @@ new WheelEvent(type, options) - : 浮動小数点数で、 Z 軸のスクロール量を `deltaMode` の単位で表します。 既定値は `0.0` です。 - `deltaMode` {{optional_inline}} + - : デルタ値のスクロール量の単位を表す整数です。既定値は `0x00` です。指定できる値は以下の通りです。 - | 定数 | 値 | 説明 | + + | 定数 | 値 | 説明 | | ----------------- | ------ | ------------------------------------ | | `DOM_DELTA_PIXEL` | `0x00` | デルタ値はピクセル数で指定されます。 | - | `DOM_DELTA_LINE` | `0x01` | デルタ値は行数で指定されます。 | - | `DOM_DELTA_PAGE` | `0x02` | デルタ値はページ数で指定されます。 | + | `DOM_DELTA_LINE` | `0x01` | デルタ値は行数で指定されます。 | + | `DOM_DELTA_PAGE` | `0x02` | デルタ値はページ数で指定されます。 | ### 返値 diff --git a/files/ko/web/css/animation-iteration-count/index.md b/files/ko/web/css/animation-iteration-count/index.md index 6745e5c7d90659..30c77fbe607c44 100644 --- a/files/ko/web/css/animation-iteration-count/index.md +++ b/files/ko/web/css/animation-iteration-count/index.md @@ -111,7 +111,6 @@ animation-iteration-count: unset; ## 같이 보기 -- [CSS 애니메이션 사용하기 - ](/ko/docs/Web/CSS/CSS_animations/Using_CSS_animations) +- [CSS 애니메이션 사용하기](/ko/docs/Web/CSS/CSS_animations/Using_CSS_animations) - JavaScript {{domxref("AnimationEvent")}} API - 애니메이션과 관련된 다른 CSS 속성: {{cssxref("animation")}}, {{cssxref("animation-composition")}}, {{cssxref("animation-delay")}}, {{cssxref("animation-direction")}}, {{cssxref("animation-duration")}}, {{cssxref("animation-fill-mode")}}, {{cssxref("animation-name")}}, {{cssxref("animation-play-state")}}, {{cssxref("animation-timeline")}}, {{cssxref("animation-timing-function")}} diff --git a/files/ko/web/javascript/reference/global_objects/symbol/species/index.md b/files/ko/web/javascript/reference/global_objects/symbol/species/index.md index be23fbb19c5c8d..78fad31c9976a0 100644 --- a/files/ko/web/javascript/reference/global_objects/symbol/species/index.md +++ b/files/ko/web/javascript/reference/global_objects/symbol/species/index.md @@ -9,8 +9,7 @@ l10n: **`Symbol.species`** 정적 데이터 속성은 [잘 알려진 심볼](/ko/docs/Web/JavaScript/Reference/Global_Objects/Symbol#잘_알려진_심볼) `Symbol.species`을 나타냅니다. 객체의 복사본을 생성하는 메서드는 생성자 함수가 복사본을 만들 때 사용할 객체에서 이 심볼을 검색할 수 있습니다. -> [!WARNING] -> `Symbol.species`가 존재하면 임의의 코드가 실행될 수 있으며 보안 취약점이 발생할 수 있습니다. 또한 특정 최적화를 훨씬 더 어렵게 만듭니다. 엔진 구현자는 [이 기능을 제거할지 여부를 조사](https://github.com/tc39/proposal-rm-builtin-subclassing)하고 있습니다. 가능하면 이 기능을 사용하지 마세요. +> **경고:** `Symbol.species`가 존재하면 임의의 코드가 실행될 수 있으며 보안 취약점이 발생할 수 있습니다. 또한 특정 최적화를 훨씬 더 어렵게 만듭니다. 엔진 구현자는 [이 기능을 제거할지 여부를 조사](https://github.com/tc39/proposal-rm-builtin-subclassing)하고 있습니다. 가능하면 이 기능을 사용하지 마세요. {{EmbedInteractiveExample("pages/js/symbol-species.html")}} diff --git a/files/ru/web/http/authentication/index.md b/files/ru/web/http/authentication/index.md index d272e5aeb1539f..d31e968ba9d8c2 100644 --- a/files/ru/web/http/authentication/index.md +++ b/files/ru/web/http/authentication/index.md @@ -170,8 +170,7 @@ https://username:password@www.example.com/ ``` **Использование таких URL-адресов устарело**. В браузере Chrome в URL-адресах часть -`username:password@` даже[ -вырезана](https://bugs.chromium.org/p/chromium/issues/detail?id=82250#c7) из соображений безопасности. В браузере Firefox, проверяется, действительно ли сайт требует +`username:password@` даже[вырезана](https://bugs.chromium.org/p/chromium/issues/detail?id=82250#c7) из соображений безопасности. В браузере Firefox, проверяется, действительно ли сайт требует аутентификации и если нет, тогда Firefox предупредит пользователя запросом (prompt) "You are about to log in to the site "www\.example.com" with the username "username", but the website does not require authentication. This may be an attempt to trick you.". diff --git a/files/zh-cn/glossary/breadcrumb/index.md b/files/zh-cn/glossary/breadcrumb/index.md index 50d098c155b10b..850cc3c8f7c12e 100644 --- a/files/zh-cn/glossary/breadcrumb/index.md +++ b/files/zh-cn/glossary/breadcrumb/index.md @@ -21,8 +21,7 @@ l10n: ## 参见 - [面包屑导航](/zh-CN/docs/Web/CSS/Layout_cookbook/Breadcrumb_Navigation) -- [ - Google 搜索中心:面包屑结构化数据](https://developers.google.cn/search/docs/appearance/structured-data/breadcrumb) +- [Google 搜索中心:面包屑结构化数据](https://developers.google.cn/search/docs/appearance/structured-data/breadcrumb) - [APG 指南:Breadcrumb 示例](https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/) - [理解成功标准 2.4.8 | W3C 理解 WCAG 2.2](https://www.w3.org/WAI/WCAG22/Understanding/location) - [理解技术 65 | W3C 理解 WCAG 2.2](https://www.w3.org/WAI/WCAG22/Techniques/general/G65) diff --git a/files/zh-cn/learn/server-side/express_nodejs/development_environment/index.md b/files/zh-cn/learn/server-side/express_nodejs/development_environment/index.md index 5305975a4a1101..6c9804e975f5b6 100644 --- a/files/zh-cn/learn/server-side/express_nodejs/development_environment/index.md +++ b/files/zh-cn/learn/server-side/express_nodejs/development_environment/index.md @@ -308,7 +308,7 @@ express helloworld > 也可以指定模板库来使用其他丰富的设置。可通过 help 命令来查看所有选项: > > ```bash -> $ express --help +> express --help > ``` NPM 将在当前位置的子目录中创建新的 Express 应用,可以在控制台看到构建的过程。在完成时,NPM 会提示你需要安装哪些 Node 依赖,以及如何开启应用。 diff --git a/files/zh-cn/web/html/element/meta/name/index.md b/files/zh-cn/web/html/element/meta/name/index.md index e0d0ea0f952075..83c5e75a262333 100644 --- a/files/zh-cn/web/html/element/meta/name/index.md +++ b/files/zh-cn/web/html/element/meta/name/index.md @@ -66,15 +66,16 @@ CSS 颜色调整规范(CSS Color Adjustment specification)定义了以下元 CSS 设备适配规范(CSS Device Adaptation specification)定义了以下元数据名称: - `viewport`: 为{{glossary("viewport", "视口")}}的初始大小提供指示(hint)。目前仅用于移动设备。 - | 值 | 可能的附加值 | 描述 | + + | 值 | 可能的附加值 | 描述 | | --------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - | `width` | 一个正整数,或者字符串 `device-width` | 定义 viewport 的宽度,如果值为正整数,则单位为像素。 | - | `height` | 一个正整数,或者字符串 `device-height` | 定义 viewport 的高度。未被任何浏览器使用。 | - | `initial-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义设备宽度(宽度和高度中更小的那个:如果是纵向屏幕,就是 `device-width`,如果是横向屏幕,就是 `device-height`)与 viewport 大小之间的缩放比例。 | - | `maximum-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义缩放的最大值,必须大于等于 `minimum-scale`,否则表现将不可预测。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | - | `minimum-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义缩放的最小值,必须小于等于 `maximum-scale`,否则表现将不可预测。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | - | `user-scalable` | `yes` 或者 `no` | 默认为 `yes`,如果设置为 `no`,用户将无法缩放当前页面。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | - | `viewport-fit` | `auto`、`contain` 或者 `cover` | The `auto` value doesn’t affect the initial layout viewport, and the whole web page is viewable.The `contain` value means that the viewport is scaled to fit the largest rectangle inscribed within the display.The `cover` value means that the viewport is scaled to fill the device display. It is highly recommended to make use of the [safe area inset](/zh-CN/docs/Web/CSS/env) variables to ensure that important content doesn't end up outside the display. | + | `width` | 一个正整数,或者字符串 `device-width` | 定义 viewport 的宽度,如果值为正整数,则单位为像素。 | + | `height` | 一个正整数,或者字符串 `device-height` | 定义 viewport 的高度。未被任何浏览器使用。 | + | `initial-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义设备宽度(宽度和高度中更小的那个:如果是纵向屏幕,就是 `device-width`,如果是横向屏幕,就是 `device-height`)与 viewport 大小之间的缩放比例。 | + | `maximum-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义缩放的最大值,必须大于等于 `minimum-scale`,否则表现将不可预测。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | + | `minimum-scale` | 一个 `0.0` 和 `10.0` 之间的正数 | 定义缩放的最小值,必须小于等于 `maximum-scale`,否则表现将不可预测。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | + | `user-scalable` | `yes` 或者 `no` | 默认为 `yes`,如果设置为 `no`,用户将无法缩放当前页面。浏览器设置可以忽略此规则;iOS 10 开始,Safari iOS 默认忽略此规则。 | + | `viewport-fit` | `auto`、`contain` 或者 `cover` | The `auto` value doesn’t affect the initial layout viewport, and the whole web page is viewable.The `contain` value means that the viewport is scaled to fit the largest rectangle inscribed within the display.The `cover` value means that the viewport is scaled to fill the device display. It is highly recommended to make use of the [safe area inset](/zh-CN/docs/Web/CSS/env) variables to ensure that important content doesn't end up outside the display. | > [!NOTE] > 虽然此元数据条目未被标准化,但是,由于此条目在事实上处于支配地位,大多数移动浏览器都遵守此条目的声明。