aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/canvasgradient
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-02 20:22:51 +0900
committerIrvin <irvinfly@gmail.com>2022-03-04 01:03:17 +0800
commit9a110dee28ae2ef12ee014b98fda6bae6ee48edb (patch)
tree6525763f4313d7d8f42aefa699765f61ee1c63df /files/zh-cn/web/api/canvasgradient
parenteeddb651b6e8deb8ecabc2bc5bc28c8ead25cca5 (diff)
downloadtranslated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.gz
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.bz2
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.zip
Migrate to Compat macro (zh-cn)
Diffstat (limited to 'files/zh-cn/web/api/canvasgradient')
-rw-r--r--files/zh-cn/web/api/canvasgradient/addcolorstop/index.html50
-rw-r--r--files/zh-cn/web/api/canvasgradient/index.html50
2 files changed, 2 insertions, 98 deletions
diff --git a/files/zh-cn/web/api/canvasgradient/addcolorstop/index.html b/files/zh-cn/web/api/canvasgradient/addcolorstop/index.html
index 3d8de40534..9da7d26ccb 100644
--- a/files/zh-cn/web/api/canvasgradient/addcolorstop/index.html
+++ b/files/zh-cn/web/api/canvasgradient/addcolorstop/index.html
@@ -113,55 +113,7 @@ window.addEventListener("load", drawCanvas);
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.CanvasGradient.addColorStop")}}
<h2 id="请参阅">请参阅</h2>
diff --git a/files/zh-cn/web/api/canvasgradient/index.html b/files/zh-cn/web/api/canvasgradient/index.html
index a504dc443b..eedb3672f5 100644
--- a/files/zh-cn/web/api/canvasgradient/index.html
+++ b/files/zh-cn/web/api/canvasgradient/index.html
@@ -46,55 +46,7 @@ translation_of: Web/API/CanvasGradient
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>4.0</td>
- <td>{{CompatGeckoDesktop("3.6")}} [1]</td>
- <td>9.0</td>
- <td>9.0</td>
- <td>3.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>2.1</td>
- <td>{{CompatGeckoMobile("3.6")}} [1]</td>
- <td>{{CompatUnknown}}</td>
- <td>10.0</td>
- <td>3.2</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 在Gecko 5.0 {{geckoRelease("5.0")}} 以前,通过调用<code>addColorStop()</code>添加颜色断点时给定非有限的值,会错误的抛出 <code>SYNTAX_ERR</code> 而不是<code>INDEX_SIZE_ERR</code>。</p>
+{{Compat("api.CanvasGradient")}}
<h2 id="请参考">请参考</h2>