aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/htmlcanvaselement
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/api/htmlcanvaselement')
-rw-r--r--files/zh-tw/web/api/htmlcanvaselement/index.html169
-rw-r--r--files/zh-tw/web/api/htmlcanvaselement/todataurl/index.html50
2 files changed, 2 insertions, 217 deletions
diff --git a/files/zh-tw/web/api/htmlcanvaselement/index.html b/files/zh-tw/web/api/htmlcanvaselement/index.html
index fffa314976..865407aca3 100644
--- a/files/zh-tw/web/api/htmlcanvaselement/index.html
+++ b/files/zh-tw/web/api/htmlcanvaselement/index.html
@@ -86,174 +86,7 @@ translation_of: Web/API/HTMLCanvasElement
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support (<code>2D</code> context)</td>
- <td>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop('1.9.2')}}</td>
- <td>9.0</td>
- <td>9.0 [1]</td>
- <td>3.1</td>
- </tr>
- <tr>
- <td><code>toBlob()</code></td>
- <td>50</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop('19')}} [2]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}} (bug <a href="https://bugs.webkit.org/show_bug.cgi?id=71270">71270</a>)</td>
- </tr>
- <tr>
- <td><code>probablySupportsContext()</code>,<br>
- <code>setContext()</code>,<br>
- <code>transferControlToProxy()</code> {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>mozGetAsFile()</code> {{non-standard_inline}} {{deprecated_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop('2')}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>captureStream()</code> {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop('41')}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>transferControlToOffscreen()</code> {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop(44)}} [3]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support (<code>2D</code> context)</td>
- <td>2.1</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>10.0 [1]</td>
- <td>3.2</td>
- </tr>
- <tr>
- <td><code>webgl</code> context</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}} as <code>experimental-webgl</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>toBlob()</code></td>
- <td>{{CompatNo}} (bug <a href="http://crbug.com/67587">67587</a>)</td>
- <td>50</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile('18')}} [2]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}} (bug <a href="https://bugs.webkit.org/show_bug.cgi?id=71270">71270</a>)</td>
- </tr>
- <tr>
- <td><code>probablySupportsContext()</code>,<br>
- <code>setContext()</code>,<br>
- <code>transferControlToProxy() </code>{{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>mozGetAsFile()</code> {{non-standard_inline}} {{deprecated_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile('2')}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>captureStream() </code>{{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile('41')}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>transferControlToOffscreen()</code> {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile(44)}} [3]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Opera Mini 5.0 and later has partial support.</p>
-
-<p>[2] Support for the third parameter, has been added in Gecko 25 only: when used with the <code>"image/jpeg"</code> type, this argument specifies the image quality.</p>
-
-<p>[3] This feature is behind a feature preference setting. In about:config, set <code>gfx.offscreencanvas.enabled</code> to <code>true</code>.</p>
+{{Compat("api.HTMLCanvasElement")}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-tw/web/api/htmlcanvaselement/todataurl/index.html b/files/zh-tw/web/api/htmlcanvaselement/todataurl/index.html
index 7a87309580..cdb590c3b1 100644
--- a/files/zh-tw/web/api/htmlcanvaselement/todataurl/index.html
+++ b/files/zh-tw/web/api/htmlcanvaselement/todataurl/index.html
@@ -143,55 +143,7 @@ function removeColors() {
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatChrome(4) }}</td>
- <td>{{ CompatGeckoDesktop("1.9.2") }}</td>
- <td>{{ CompatIE(9) }}</td>
- <td>{{ CompatOpera(9) }}</td>
- <td>{{ CompatSafari(4.0) }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</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>Basic support</td>
- <td>{{ CompatAndroid(3.2) }}</td>
- <td>{{ CompatAndroid(18) }}</td>
- <td>{{ CompatGeckoMobile("1.9.2") }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatOpera(19) }}</td>
- <td><span style="font-size: 12px; line-height: 18px;">{{ CompatSafari(3.0) }}</span></td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.HTMLCanvasElement.toDataURL")}}
<h2 id="See_Also" name="See_Also">參見</h2>