diff options
author | YujiSoftware <yuji.software+github@gmail.com> | 2022-03-03 22:36:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 07:36:23 -0600 |
commit | 0ce7202a706c9036eeea42c158f433c2b7940457 (patch) | |
tree | 4e952b5472e3140bd12ac07e77df3aa47e79b60f /files/es/web/api/htmlcanvaselement | |
parent | 581e6fb5827a5450e295c91250dd0563a3c9251a (diff) | |
download | translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.gz translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.bz2 translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.zip |
Migrate CompatibilityTable to Compat macro (es) (#4355)
* Migrate CompatibilityTable to Compat macro (es)
* Migrate to multiple Compat macro (es)
Diffstat (limited to 'files/es/web/api/htmlcanvaselement')
-rw-r--r-- | files/es/web/api/htmlcanvaselement/getcontext/index.html | 161 | ||||
-rw-r--r-- | files/es/web/api/htmlcanvaselement/height/index.html | 50 | ||||
-rw-r--r-- | files/es/web/api/htmlcanvaselement/index.html | 164 | ||||
-rw-r--r-- | files/es/web/api/htmlcanvaselement/width/index.html | 50 |
4 files changed, 4 insertions, 421 deletions
diff --git a/files/es/web/api/htmlcanvaselement/getcontext/index.html b/files/es/web/api/htmlcanvaselement/getcontext/index.html index cb77b1594e..e35095c7db 100644 --- a/files/es/web/api/htmlcanvaselement/getcontext/index.html +++ b/files/es/web/api/htmlcanvaselement/getcontext/index.html @@ -114,166 +114,7 @@ console.log(ctx); // CanvasRenderingContext2D { ... } <h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2> -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</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>{{CompatChrome(4)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("1.9.2")}}</td> - <td>{{CompatIE(9)}}</td> - <td>{{CompatOpera(9)}}</td> - <td>{{CompatSafari(3.1)}}</td> - </tr> - <tr> - <td><code>webgl</code> context</td> - <td>{{CompatChrome(9)}}<sup>[1]</sup><br> - {{CompatChrome(33)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop('1.9.2')}}<sup>[1]</sup><br> - {{CompatGeckoDesktop('24')}}</td> - <td>11.0<sup>[2]</sup></td> - <td>9.0<sup>[3]</sup></td> - <td>5.1<sup>[2]</sup></td> - </tr> - <tr> - <td><code>webgl2</code> context {{experimental_inline}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop('25')}}<sup>[4]</sup></td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td>2d <code>alpha</code> context attribute</td> - <td>32</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop(30)}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td> - <p><code>failIfMajorPerformanceCaveat</code> attribute</p> - </td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop(41)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>bitmaprenderer context</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop(46)}}</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>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("1.9.2")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td><code>webgl</code> context</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}<sup>[2]</sup></td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td><code>webgl2</code> context {{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>2d <code>alpha</code> context attribute</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(30)}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>failIfMajorPerformanceCaveat</code> attribute</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(41)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>bitmaprenderer context</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(46)}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Chrome 9 y Gecko 1.9.2 inicialmente implementaron esta como <code>experimental-webgl</code>. A partir de Chrome 33 y Gecko 24 es implementado como <code>webgl </code>estándar.</p> - -<p>[2] Internet Explorer 11, WebKit 5.1 y Firefox Mobile implementaron esto como <code>experimental-webgl</code>.</p> - -<p>[3] Opera 9 implementó esto como <code>experimental-webgl</code>, behind a user preference, in version 15.0 the user preference got removed.</p> - -<p>[4] Gecko 25 implements this as "<code>experimental-webgl2</code>" behind the user preference <code>webgl.enable-prototype-webgl2</code>. Starting with Gecko 42, the string "webgl2" is used behind the same preference.</p> +{{Compat("api.HTMLCanvasElement.getContext")}} <h2 id="See_also">See also</h2> diff --git a/files/es/web/api/htmlcanvaselement/height/index.html b/files/es/web/api/htmlcanvaselement/height/index.html index 0d2fa7f2e2..dd4dfb5e3e 100644 --- a/files/es/web/api/htmlcanvaselement/height/index.html +++ b/files/es/web/api/htmlcanvaselement/height/index.html @@ -63,55 +63,7 @@ console.log(canvas.height); // 300 <h2 id="Compatibilidad_de_Navegadores">Compatibilidad de Navegadores</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Soporte Básico</td> - <td>{{ CompatChrome(4) }}</td> - <td>{{ CompatGeckoDesktop("1.9.2") }}</td> - <td>{{ CompatIE(9) }}</td> - <td>{{ CompatOpera(9) }}</td> - <td>{{ CompatSafari(3.1) }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</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>Soporte Básico</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatGeckoMobile("1.9.2") }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.HTMLCanvasElement.height")}} <h2 id="See_Also" name="See_Also">Ver también</h2> diff --git a/files/es/web/api/htmlcanvaselement/index.html b/files/es/web/api/htmlcanvaselement/index.html index 07a570f193..eb1c693b92 100644 --- a/files/es/web/api/htmlcanvaselement/index.html +++ b/files/es/web/api/htmlcanvaselement/index.html @@ -78,169 +78,7 @@ translation_of: Web/API/HTMLCanvasElement <h2 id="Compatibilidad_en_Navegadores">Compatibilidad en Navegadores</h2> -<div>{{CompatibilityTable}}</div> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Soporte básico (<code>2D</code> context)</td> - <td>4.0</td> - <td>{{CompatGeckoDesktop('1.9.2')}}</td> - <td>9.0</td> - <td>9.0 [1]</td> - <td>3.1</td> - </tr> - <tr> - <td><code>webgl</code> context</td> - <td>9.0 as <code>experimental-webgl</code><br> - ~33 as <code>webgl</code></td> - <td>{{CompatGeckoDesktop('1.9.2')}} as <code>experimental-webgl</code><br> - {{CompatGeckoDesktop('24')}} as <code>webgl</code></td> - <td>11.0 as <code>experimental-webgl</code></td> - <td>9.0 as <code>experimental-webgl</code>, behind a user pref.<br> - 15.0 as <code>experimental-webgl</code></td> - <td>5.1 as <code>experimental-webgl</code><br> - ~8.0 as <code>webgl</code></td> - </tr> - <tr> - <td><code>toBlob()</code></td> - <td>{{CompatNo}} (bug <a href="http://crbug.com/67587">67587</a>)</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>{{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>{{CompatGeckoDesktop('2')}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>mozFetchAsStream()</code> {{non-standard_inline}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatGeckoDesktop('13')}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>captureStream()</code> {{experimental_inline}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatGeckoDesktop('41')}}</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>Característica</th> - <th>Android</th> - <th>Chrome para Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Soporte básico (<code>2D</code> context)</td> - <td>2.1</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>{{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>{{CompatNo}} (bug <a href="http://crbug.com/67587">67587</a>)</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>{{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>{{CompatGeckoMobile('2')}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>mozFetchAsStream()</code> {{non-standard_inline}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatGeckoMobile('13')}}</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>{{CompatGeckoMobile('41')}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Opera Mini 5.0 y posteriores poseen soporte parcial.</p> - -<p>[2] Soporte para un tercer parámetro, ha sido añadido sólo en Gecko 25: cuando se utiliza con el tipo <code>"image/jpeg"</code>, este argumento especifica la calida de imagen.</p> +{{Compat("api.HTMLCanvasElement")}} <h2 id="Ver_también">Ver también</h2> diff --git a/files/es/web/api/htmlcanvaselement/width/index.html b/files/es/web/api/htmlcanvaselement/width/index.html index 1eb26275af..1875594b71 100644 --- a/files/es/web/api/htmlcanvaselement/width/index.html +++ b/files/es/web/api/htmlcanvaselement/width/index.html @@ -61,55 +61,7 @@ console.log(canvas.width); // 300 <h2 id="Compatibilidad_de_Navegadores">Compatibilidad de Navegadores</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>BSoporte Básico</td> - <td>{{ CompatChrome(4) }}</td> - <td>{{ CompatGeckoDesktop("1.9.2") }}</td> - <td>{{ CompatIE(9) }}</td> - <td>{{ CompatOpera(9) }}</td> - <td>{{ CompatSafari(3.1) }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</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>Soporte Básico</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatGeckoMobile("1.9.2") }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.HTMLCanvasElement.width")}} <h2 id="See_Also" name="See_Also">Ver también</h2> |