diff options
Diffstat (limited to 'files/ru/web/api/htmlcanvaselement')
-rw-r--r-- | files/ru/web/api/htmlcanvaselement/capturestream/index.html | 54 | ||||
-rw-r--r-- | files/ru/web/api/htmlcanvaselement/getcontext/index.html | 147 | ||||
-rw-r--r-- | files/ru/web/api/htmlcanvaselement/index.html | 154 | ||||
-rw-r--r-- | files/ru/web/api/htmlcanvaselement/toblob/index.html | 72 |
4 files changed, 4 insertions, 423 deletions
diff --git a/files/ru/web/api/htmlcanvaselement/capturestream/index.html b/files/ru/web/api/htmlcanvaselement/capturestream/index.html index eb2d52a985..e7b9eb4481 100644 --- a/files/ru/web/api/htmlcanvaselement/capturestream/index.html +++ b/files/ru/web/api/htmlcanvaselement/capturestream/index.html @@ -65,59 +65,7 @@ pc.addStream(stream); <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(51.0)}}</td> - <td>{{CompatGeckoDesktop(43)}}<sup>[1]</sup></td> - <td>{{CompatNo}}</td> - <td>{{CompatOpera(36.0)}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Android Webview</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>{{CompatNo}}</td> - <td>{{CompatChrome(51.0)}}</td> - <td>{{CompatChrome(51.0)}}</td> - <td>{{CompatGeckoMobile(43)}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatOpera(38)}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] In Firefox 41 and 42, this feature was disabled by default; set the preference <code>canvas.capturestream.enabled</code> to <code>true</code> to enable it.</p> +<p>{{Compat("api.HTMLCanvasElement.captureStream")}}</p> <h2 id="Смотрите_также">Смотрите также</h2> diff --git a/files/ru/web/api/htmlcanvaselement/getcontext/index.html b/files/ru/web/api/htmlcanvaselement/getcontext/index.html index 2569342750..c1fc3042ee 100644 --- a/files/ru/web/api/htmlcanvaselement/getcontext/index.html +++ b/files/ru/web/api/htmlcanvaselement/getcontext/index.html @@ -114,152 +114,7 @@ console.log(ctx); // CanvasRenderingContext2D { ... } <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 (<code>2d</code> context)</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> - <tr> - <td><code>webgl</code> context</td> - <td>{{CompatChrome(9)}}<sup>[1]</sup><br> - {{CompatChrome(33)}}</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>{{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>{{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>{{CompatGeckoDesktop(41)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>bitmaprenderer context</td> - <td>{{CompatNo}}</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>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>{{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}}<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>{{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>{{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>{{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>{{CompatGeckoMobile(46)}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Chrome 9 and Gecko 1.9.2 initially implemented this as <code>experimental-webgl</code>. Since Chrome 33 and Gecko 24 it is implemented as the standard <code>webgl</code>.</p> - -<p>[2] Internet Explorer 11, WebKit 5.1 and Firefox Mobile implemented this as <code>experimental-webgl</code>.</p> - -<p>[3] Opera 9 implemented this as <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> +<p>{{Compat("api.HTMLCanvasElement.getContext")}}</p> <h2 id="Смотрите_также">Смотрите также</h2> diff --git a/files/ru/web/api/htmlcanvaselement/index.html b/files/ru/web/api/htmlcanvaselement/index.html index 314baeb20c..3128a63526 100644 --- a/files/ru/web/api/htmlcanvaselement/index.html +++ b/files/ru/web/api/htmlcanvaselement/index.html @@ -86,159 +86,7 @@ translation_of: Web/API/HTMLCanvasElement <h2 id="Browser_compatibility">Browser compatibility</h2> -<div>{{CompatibilityTable}}</div> - -<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 (<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>toBlob()</code></td> - <td>50</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>captureStream()</code> {{experimental_inline}}</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>{{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>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>{{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>50</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>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> - <tr> - <td><code>transferControlToOffscreen()</code> {{experimental_inline}}</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> +<p>{{Compat("api.HTMLCanvasElement")}}</p> <h2 id="See_also">See also</h2> diff --git a/files/ru/web/api/htmlcanvaselement/toblob/index.html b/files/ru/web/api/htmlcanvaselement/toblob/index.html index 2afcf36825..d2abb5af0d 100644 --- a/files/ru/web/api/htmlcanvaselement/toblob/index.html +++ b/files/ru/web/api/htmlcanvaselement/toblob/index.html @@ -161,77 +161,7 @@ canvas.toBlob(blobCallback('passThisString'), 'image/vnd.microsoft.icon', <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("50")}}</td> - <td>{{CompatGeckoDesktop('19')}}</td> - <td>{{CompatIE(10)}}{{property_prefix("ms")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}<sup>[1]</sup></td> - </tr> - <tr> - <td>Image quality parameter</td> - <td>{{CompatChrome("50")}}</td> - <td>{{CompatGeckoDesktop('25')}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}</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>Android Webview</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatNo}}</td> - <td>{{CompatChrome("50")}}</td> - <td>{{CompatGeckoMobile("19")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatChrome("50")}}</td> - </tr> - <tr> - <td>Image quality parameter</td> - <td>{{CompatNo}}</td> - <td>{{CompatChrome("50")}}</td> - <td>{{CompatGeckoMobile("25")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatChrome("50")}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] See {{WebKitBug("71270")}}.</p> +<p>{{Compat("api.HTMLCanvasElement.toBlob")}}</p> <h2 id="Полифил">Полифил</h2> |