From 0c13ec128150b8f5097a4649c6da653cac6e3c30 Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:34:14 +0900 Subject: Migrate to multiple Compat macro (zh-cn) --- files/zh-cn/web/api/dommatrix/index.html | 64 +---------------- .../web/api/network_information_api/index.html | 52 ++------------ files/zh-cn/web/api/push_api/index.html | 80 ++-------------------- .../web/api/web_authentication_api/index.html | 76 ++++++++------------ files/zh-cn/web/css/css_counter_styles/index.html | 54 +++------------ .../web/html/attributes/crossorigin/index.html | 70 +++---------------- 6 files changed, 55 insertions(+), 341 deletions(-) (limited to 'files/zh-cn') diff --git a/files/zh-cn/web/api/dommatrix/index.html b/files/zh-cn/web/api/dommatrix/index.html index e142998d45..08b2dfc250 100644 --- a/files/zh-cn/web/api/dommatrix/index.html +++ b/files/zh-cn/web/api/dommatrix/index.html @@ -109,69 +109,9 @@ translation_of: Web/API/DOMMatrix

浏览器兼容性

-

{{CompatibilityTable}}

+{{Compat("api.DOMMatrix")}} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureFirefox (Gecko)ChromeInternet ExplorerOperaSafari
基本支持{{CompatGeckoDesktop(33)}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}
可用于 Web workers{{CompatNo}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
基本支持{{CompatGeckoMobile(33)}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}
可用于 Web workers{{CompatNo}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}
-
+{{Compat("api.WebKitCSSMatrix")}}

相关链接

diff --git a/files/zh-cn/web/api/network_information_api/index.html b/files/zh-cn/web/api/network_information_api/index.html index 38951b5d1a..85917b5451 100644 --- a/files/zh-cn/web/api/network_information_api/index.html +++ b/files/zh-cn/web/api/network_information_api/index.html @@ -42,57 +42,13 @@ connection.addEventListener('change', updateConnectionStatus);

浏览器兼容性

-

{{CompatibilityTable}}

+

NetworkInformation

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.NetworkInformation")}} -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support2.2 {{property_prefix("webkit")}}12.0[1]1.4{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+

Navigator.connection

-

[1] 在 Firefox 中,网络状况 API 可以通过 dom.netinfo.enabled 偏好选项来控制开启与否。

+{{Compat("api.Navigator.connection")}}

相关链接

diff --git a/files/zh-cn/web/api/push_api/index.html b/files/zh-cn/web/api/push_api/index.html index d19ad36263..01264e50b3 100644 --- a/files/zh-cn/web/api/push_api/index.html +++ b/files/zh-cn/web/api/push_api/index.html @@ -99,85 +99,13 @@ translation_of: Web/API/Push_API

浏览器兼容性

-

{{CompatibilityTable}}

+

PushEvent

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(42.0)}}{{CompatGeckoDesktop(44.0)}}[1][3]{{CompatNo}}[2]{{CompatUnknown}}{{CompatUnknown}}
{{domxref("PushEvent.data")}},
- {{domxref("PushMessageData")}}
{{CompatNo}}{{CompatGeckoDesktop(44.0)}}[3]{{CompatNo}}{{CompatNo}}{{CompatNo}}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatNo}}{{CompatGeckoMobile(48.0)}}[4]{{CompatNo}}{{CompatUnknown}}[2]{{CompatUnknown}}{{CompatUnknown}}{{CompatChrome(42.0)}}
{{domxref("PushEvent.data")}},
- {{domxref("PushMessageData")}}
{{CompatNo}}{{CompatNo}}{{CompatGeckoMobile(48.0)}}[4]{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+{{Compat("api.PushEvent")}} - +

PushMessageData

-

 

+{{Compat("api.PushMessageData")}}

另见

diff --git a/files/zh-cn/web/api/web_authentication_api/index.html b/files/zh-cn/web/api/web_authentication_api/index.html index 24193e8f1d..43c4e98b24 100644 --- a/files/zh-cn/web/api/web_authentication_api/index.html +++ b/files/zh-cn/web/api/web_authentication_api/index.html @@ -198,57 +198,37 @@ navigator.credentials.create(createCredentialDefaultArgs)

Browser compatibility

-
{{ CompatibilityTable() }}
+

Credential

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(65)}}{{CompatGeckoDesktop(60)}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Credential")}} -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+

CredentialsContainer

+ +{{Compat("api.CredentialsContainer")}} + +

PublicKeyCredential

+ +{{Compat("api.PublicKeyCredential")}} + +

AuthenticatorResponse

+ +{{Compat("api.AuthenticatorResponse")}} + +

AuthenticatorAttestationResponse

+ +{{Compat("api.AuthenticatorAttestationResponse")}} + +

AuthenticatorAssertionResponse

+ +{{Compat("api.AuthenticatorAssertionResponse")}} + +

PublicKeyCredentialCreationOptions

+ +{{Compat("api.PublicKeyCredentialCreationOptions")}} + +

PublicKeyCredentialRequestOptions

-

[1] Web authentication has been restricted to active documents ({{bug(1409202)}}).

+{{Compat("api.PublicKeyCredentialRequestOptions")}}

See also

diff --git a/files/zh-cn/web/css/css_counter_styles/index.html b/files/zh-cn/web/css/css_counter_styles/index.html index 305f55d128..7324239d35 100644 --- a/files/zh-cn/web/css/css_counter_styles/index.html +++ b/files/zh-cn/web/css/css_counter_styles/index.html @@ -70,52 +70,14 @@ translation_of: Web/CSS/CSS_Counter_Styles

浏览器兼容性

-

{{CompatibilityTable}}

+

@counter-style rule

-
- - - - - - - - - - - - - - - - - - - -
特性ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本支持{{CompatNo}}{{CompatGeckoDesktop(33)}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("css.at-rules.counter-style")}} -
- - - - - - - - - - - - - - - - - - - -
特性AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本支持{{CompatNo}}{{CompatGeckoDesktop(33)}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+

counter-increment property

+ +{{Compat("css.properties.counter-increment")}} + +

counter-reset property

-

[1] Gecko不在支持图片所描述的 {{cssxref("@counter-style/symbols", "symbols")}} .可以查看{{bug("1024179")}}.

+{{Compat("css.properties.counter-reset")}} \ No newline at end of file diff --git a/files/zh-cn/web/html/attributes/crossorigin/index.html b/files/zh-cn/web/html/attributes/crossorigin/index.html index b7bd9b969e..d113edfeb6 100644 --- a/files/zh-cn/web/html/attributes/crossorigin/index.html +++ b/files/zh-cn/web/html/attributes/crossorigin/index.html @@ -85,69 +85,17 @@ original_slug: Web/HTML/CORS_settings_attributes

浏览器兼容性

-

{{ CompatibilityTable() }}

+

script crossorigin

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support13{{ CompatGeckoDesktop("8.0") }}11{{ CompatNo() }}{{ CompatVersionUnknown() }}
{{ HTMLElement("video")}}{{ CompatUnknown() }}{{ CompatGeckoDesktop("12.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("html.elements.script.crossorigin")}} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("8.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatVersionUnknown() }}
{{ HTMLElement("video")}}{{ CompatUnknown() }}{{ CompatGeckoMobile("12.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+

video crossorigin

+ +{{Compat("html.elements.video.crossorigin")}} + +

link crossorigin

+ +{{Compat("html.elements.link.crossorigin")}}

另请参阅

-- cgit v1.2.3-54-g00ecf