From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- files/zh-cn/web/api/css/escape/index.html | 54 +--------------------------- files/zh-cn/web/api/css/supports/index.html | 56 +---------------------------- 2 files changed, 2 insertions(+), 108 deletions(-) (limited to 'files/zh-cn/web/api/css') diff --git a/files/zh-cn/web/api/css/escape/index.html b/files/zh-cn/web/api/css/escape/index.html index 3271798047..94fd7d1607 100644 --- a/files/zh-cn/web/api/css/escape/index.html +++ b/files/zh-cn/web/api/css/escape/index.html @@ -63,59 +63,7 @@ CSS.escape('\0') // "\ufffd", Unicode替换字符

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatChrome(46.0)}}{{CompatGeckoDesktop("31")}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(46.0)}}{{CompatGeckoMobile("31")}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatChrome(46.0)}}
-
- -

[1] Firefox 32做了一些小的修改,以符合规范和CSS语法的发展。标识符现在可以以' -- '开始,第二个破折号不能被转义。另外供应商标识符也不会被更改。

+{{Compat("api.CSS.escape")}}

参见

diff --git a/files/zh-cn/web/api/css/supports/index.html b/files/zh-cn/web/api/css/supports/index.html index 86c8f5dd91..adcadf06c9 100644 --- a/files/zh-cn/web/api/css/supports/index.html +++ b/files/zh-cn/web/api/css/supports/index.html @@ -66,61 +66,7 @@ result = CSS.supports("( 浏览器兼容性 -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support28.0 [2]{{CompatVersionUnknown}}{{ CompatGeckoDesktop("22") }} [1]{{CompatNo}}12.19 [2]
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support4.4{{CompatVersionUnknown}}{{ CompatGeckoMobile("22") }} [1]{{CompatNo}}12.19
-
- -

[1]只有在用户设置layout.css.supports-rule.enabled=true时,Gecko 20和21才会支持这一特性。

- -

[2] 在Chrome ≤ 51 (bug 584683) 和 Safari (bug 154669)中, 即使支持自定义属性,CSS.supports('--foo', 'red') 也会返回false。 您可以使用CSS.supports('(--foo: red)'),作为一种解决方案。

+{{Compat("api.CSS.supports")}}

参见

-- cgit v1.2.3-54-g00ecf