Skip to content

Commit eeddb65

Browse files
YujiSoftwareirvin
authored andcommitted
Migrate to multiple Compat macro (zh-tw)
1 parent c46e9da commit eeddb65

File tree

5 files changed

+41
-398
lines changed

5 files changed

+41
-398
lines changed

files/zh-tw/web/api/channel_messaging_api/index.html

+5-85
Original file line numberDiff line numberDiff line change
@@ -61,93 +61,13 @@ <h2 id="標準規範">標準規範</h2>
6161

6262
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
6363

64-
<div>{{CompatibilityTable}}</div>
64+
<h3 id="MessageChannel" name="MessageChannel"><code>MessageChannel</code></h3>
6565

66-
<div id="compat-desktop">
67-
<table class="compat-table">
68-
<tbody>
69-
<tr>
70-
<th>Feature</th>
71-
<th>Chrome</th>
72-
<th>Firefox (Gecko)</th>
73-
<th>Internet Explorer</th>
74-
<th>Opera</th>
75-
<th>Safari (WebKit)</th>
76-
</tr>
77-
<tr>
78-
<td>Basic support</td>
79-
<td>4</td>
80-
<td>{{CompatGeckoDesktop(41)}}</td>
81-
<td>10.0</td>
82-
<td>10.6</td>
83-
<td>5</td>
84-
</tr>
85-
<tr>
86-
<td>PortCollection</td>
87-
<td>{{CompatNo}}</td>
88-
<td>{{CompatNo}}</td>
89-
<td>{{CompatNo}}</td>
90-
<td>{{CompatNo}}</td>
91-
<td>{{CompatNo}}</td>
92-
</tr>
93-
<tr>
94-
<td>Available in workers</td>
95-
<td>{{CompatVersionUnknown}}</td>
96-
<td>{{CompatGeckoDesktop(41)}}</td>
97-
<td>{{CompatVersionUnknown}}</td>
98-
<td>{{CompatVersionUnknown}}</td>
99-
<td>{{CompatVersionUnknown}}</td>
100-
</tr>
101-
</tbody>
102-
</table>
103-
</div>
66+
{{Compat("api.MessageChannel", 0)}}
67+
68+
<h3 id="MessagePort" name="MessagePort"><code>MessagePort</code></h3>
10469

105-
<div id="compat-mobile">
106-
<table class="compat-table">
107-
<tbody>
108-
<tr>
109-
<th>Feature</th>
110-
<th>Android</th>
111-
<th>Chrome Mobile</th>
112-
<th>Firefox Mobile (Gecko)</th>
113-
<th>Firefox OS (Gecko)</th>
114-
<th>IE Phone</th>
115-
<th>Opera Mobile</th>
116-
<th>Safari Mobile</th>
117-
</tr>
118-
<tr>
119-
<td>Basic support</td>
120-
<td>4.4</td>
121-
<td>4</td>
122-
<td>{{CompatGeckoMobile(41)}}</td>
123-
<td>{{CompatNo}}</td>
124-
<td>10.0</td>
125-
<td>11.5</td>
126-
<td>5.1</td>
127-
</tr>
128-
<tr>
129-
<td>PortCollection</td>
130-
<td>{{CompatNo}}</td>
131-
<td>{{CompatNo}}</td>
132-
<td>{{CompatNo}}</td>
133-
<td>{{CompatNo}}</td>
134-
<td>{{CompatNo}}</td>
135-
<td>{{CompatNo}}</td>
136-
<td>{{CompatNo}}</td>
137-
</tr>
138-
<tr>
139-
<td>Available in workers</td>
140-
<td>{{CompatVersionUnknown}}</td>
141-
<td>{{CompatVersionUnknown}}</td>
142-
<td>{{CompatGeckoMobile(41)}}</td>
143-
<td>{{CompatVersionUnknown}}</td>
144-
<td>{{CompatVersionUnknown}}</td>
145-
<td>{{CompatVersionUnknown}}</td>
146-
<td>{{CompatVersionUnknown}}</td>
147-
</tr>
148-
</tbody>
149-
</table>
150-
</div>
70+
{{Compat("api.MessagePort", 0)}}
15171

15272
<h2 id="延伸閱讀">延伸閱讀</h2>
15373

files/zh-tw/web/api/fullscreen_api/index.html

+17-69
Original file line numberDiff line numberDiff line change
@@ -133,78 +133,26 @@ <h3 id="Toggling_fullscreen_mode">Toggling fullscreen mode</h3>
133133

134134
<h2 id="Browser_compatibility" name="Browser_compatibility">瀏覽器兼容性</h2>
135135

136-
<p>Although  Gecko , Trident, and WebKit implement a draft of this API, there are some subtle differences. This document doesn't necessarily try to call them all into focus. The article will be revised as the spec and implementations fall closer into alignment with one another.</p>
137-
138-
<p>{{ CompatibilityTable() }}</p>
139-
140-
<div id="compat-desktop">
141-
<table class="compat-table">
142-
<tbody>
143-
<tr>
144-
<th>Feature</th>
145-
<th>Chrome</th>
146-
<th>Firefox (Gecko)</th>
147-
<th>Internet Explorer</th>
148-
<th>Opera</th>
149-
<th>Safari</th>
150-
</tr>
151-
<tr>
152-
<td>Basic support</td>
153-
<td>15 {{ property_prefix("-webkit") }}</td>
154-
<td>{{ CompatGeckoDesktop("9.0") }} {{ property_prefix("-moz") }}</td>
155-
<td>11 {{ property_prefix("-ms") }}</td>
156-
<td>12.10</td>
157-
<td>5.0 {{ property_prefix("-webkit") }}</td>
158-
</tr>
159-
<tr>
160-
<td><code>fullscreenEnabled</code></td>
161-
<td>20 {{ property_prefix("-webkit") }}</td>
162-
<td>{{ CompatGeckoDesktop("10.0") }} {{ property_prefix("-moz") }}</td>
163-
<td>11 {{ property_prefix("-ms") }}</td>
164-
<td>12.10</td>
165-
<td>5.1 {{ property_prefix("-webkit") }}</td>
166-
</tr>
167-
</tbody>
168-
</table>
169-
</div>
136+
<h3>Document.fullscreen</h3>
170137

171-
<div id="compat-mobile">
172-
<table class="compat-table">
173-
<tbody>
174-
<tr>
175-
<th>Feature</th>
176-
<th>Android</th>
177-
<th>Chrome</th>
178-
<th>Firefox Mobile (Gecko)</th>
179-
<th>IE Mobile</th>
180-
<th>Opera Mobile</th>
181-
<th>Safari Mobile</th>
182-
</tr>
183-
<tr>
184-
<td>Basic support</td>
185-
<td>{{ CompatUnknown() }}</td>
186-
<td>28 {{ property_prefix("-webkit") }}</td>
187-
<td>{{ CompatGeckoMobile("9.0") }}{{ property_prefix("-moz") }}</td>
188-
<td>{{ CompatUnknown() }}</td>
189-
<td>{{ CompatUnknown() }}</td>
190-
<td>{{ CompatUnknown() }}</td>
191-
</tr>
192-
<tr>
193-
<td><code>fullscreenEnabled</code></td>
194-
<td>{{ CompatUnknown() }}</td>
195-
<td>28 {{ property_prefix("-webkit") }}</td>
196-
<td>{{ CompatGeckoMobile("10.0") }} {{ property_prefix("moz") }}</td>
197-
<td>{{ CompatUnknown() }}</td>
198-
<td>{{ CompatUnknown() }}</td>
199-
<td>{{ CompatUnknown() }}</td>
200-
</tr>
201-
</tbody>
202-
</table>
203-
</div>
138+
{{Compat("api.Document.fullscreen")}}
139+
140+
<h3>Document.fullscreenElement</h3>
141+
142+
{{Compat("api.Document.fullscreenElement")}}
143+
144+
<h3>Document.fullscreenEnabled</h3>
145+
146+
{{Compat("api.Document.fullscreenEnabled")}}
147+
148+
<h3>Document.exitFullscreen</h3>
149+
150+
{{Compat("api.Document.exitFullscreen")}}
151+
152+
<h3>Element.requestFullscreen</h3>
204153

205-
<h3 id="Gecko_notes">Gecko notes</h3>
154+
{{Compat("api.Element.requestFullscreen")}}
206155

207-
<p>Although this API was introduced in Gecko 9.0 {{ geckoRelease("9.0") }}, it's not enabled by default in that release. To enable it, set the <code>full-screen-api.enabled</code> preference to <code>true</code>. The API is enabled by default in Gecko 10.0 {{ geckoRelease("10.0") }}. In Gecko all the API is spelt "fullScreen".</p>
208156

209157
<h2 id="Specification" name="Specification">規範</h2>
210158

files/zh-tw/web/api/webgl_api/index.html

+6-151
Original file line numberDiff line numberDiff line change
@@ -78,158 +78,13 @@ <h2 class="Related_Topics" id="資源">資源</h2>
7878

7979
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
8080

81-
<div>{{CompatibilityTable}}</div>
82-
83-
<div id="compat-desktop">
84-
<table class="compat-table">
85-
<tbody>
86-
<tr>
87-
<th>Feature</th>
88-
<th>Firefox (Gecko)</th>
89-
<th>Chrome</th>
90-
<th>Internet Explorer</th>
91-
<th>Opera</th>
92-
<th>Safari</th>
93-
</tr>
94-
<tr>
95-
<td>基本支援</td>
96-
<td>{{CompatGeckoDesktop("2.0")}}</td>
97-
<td>9</td>
98-
<td>11</td>
99-
<td>12 (experiment)</td>
100-
<td>5.1 (experiment)</td>
101-
</tr>
102-
<tr>
103-
<td><a href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" title="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt"><code>OES_texture_float</code></a></td>
104-
<td>{{CompatGeckoDesktop("6.0")}}</td>
105-
<td>{{CompatUnknown}}</td>
106-
<td>{{CompatUnknown}}</td>
107-
<td>{{CompatUnknown}}</td>
108-
<td>{{CompatUnknown}}</td>
109-
</tr>
110-
<tr>
111-
<td><a href="http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/" title="http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/"><code>OES_standard_derivatives</code></a></td>
112-
<td>{{CompatGeckoDesktop("10.0")}}</td>
113-
<td>{{CompatUnknown}}</td>
114-
<td>{{CompatUnknown}}</td>
115-
<td>{{CompatUnknown}}</td>
116-
<td>{{CompatUnknown}}</td>
117-
</tr>
118-
<tr>
119-
<td><a href="/en-US/docs/WebGL/Using_Extensions#EXT_texture_filter_anisotropic" title="WebGL/Using_Extensions#EXT_texture_filter_anisotropic"><code>EXT_texture_filter_anisotropic</code></a></td>
120-
<td>{{CompatGeckoDesktop("13.0")}}</td>
121-
<td>{{CompatUnknown}}</td>
122-
<td>{{CompatUnknown}}</td>
123-
<td>{{CompatUnknown}}</td>
124-
<td>{{CompatUnknown}}</td>
125-
</tr>
126-
<tr>
127-
<td><a href="/en-US/docs/WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc" title="WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc"><code>WEBGL_compressed_texture_s3tc</code></a></td>
128-
<td>{{CompatGeckoDesktop("15.0")}}</td>
129-
<td>{{CompatUnknown}}</td>
130-
<td>{{CompatUnknown}}</td>
131-
<td>{{CompatUnknown}}</td>
132-
<td>{{CompatUnknown}}</td>
133-
</tr>
134-
<tr>
135-
<td><code>drawingBufferWidth</code> and <code>drawingBufferHeight</code> attributes</td>
136-
<td>{{CompatGeckoDesktop("9.0")}}</td>
137-
<td>{{CompatUnknown}}</td>
138-
<td>{{CompatUnknown}}</td>
139-
<td>{{CompatUnknown}}</td>
140-
<td>{{CompatUnknown}}</td>
141-
</tr>
142-
</tbody>
143-
</table>
144-
</div>
81+
<h3>WebGL 1</h3>
14582

146-
<div id="compat-mobile">
147-
<table class="compat-table">
148-
<tbody>
149-
<tr>
150-
<th>Feature</th>
151-
<th>Firefox Mobile (Gecko)</th>
152-
<th>Chrome for Android</th>
153-
<th>IE Mobile</th>
154-
<th>Opera Mobile</th>
155-
<th>Safari Mobile</th>
156-
</tr>
157-
<tr>
158-
<td>Basic support</td>
159-
<td>4</td>
160-
<td>25 (experiment)</td>
161-
<td>{{CompatNo}}</td>
162-
<td>12 (experiment)</td>
163-
<td>{{CompatNo}}</td>
164-
</tr>
165-
<tr>
166-
<td><code>drawingBufferWidth</code> and <code>drawingBufferHeight</code> attributes</td>
167-
<td>{{CompatGeckoMobile("9.0")}}</td>
168-
<td>25</td>
169-
<td>{{CompatUnknown}}</td>
170-
<td>{{CompatUnknown}}</td>
171-
<td>{{CompatUnknown}}</td>
172-
</tr>
173-
<tr>
174-
<td><a href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" title="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt"><code>OES_texture_float</code></a></td>
175-
<td>{{CompatGeckoMobile("6.0")}}</td>
176-
<td>25</td>
177-
<td>{{CompatUnknown}}</td>
178-
<td>{{CompatUnknown}}</td>
179-
<td>{{CompatUnknown}}</td>
180-
</tr>
181-
<tr>
182-
<td><a href="http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/" title="http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/"><code>OES_standard_derivatives</code></a></td>
183-
<td>{{CompatGeckoMobile("10.0")}}</td>
184-
<td>25</td>
185-
<td>{{CompatUnknown}}</td>
186-
<td>{{CompatUnknown}}</td>
187-
<td>{{CompatUnknown}}</td>
188-
</tr>
189-
<tr>
190-
<td><a href="/en-US/docs/WebGL/Using_Extensions#EXT_texture_filter_anisotropic" title="WebGL/Using_Extensions#EXT_texture_filter_anisotropic"><code>EXT_texture_filter_anisotropic</code></a></td>
191-
<td>{{CompatGeckoMobile("13.0")}}</td>
192-
<td>25</td>
193-
<td>{{CompatUnknown}}</td>
194-
<td>{{CompatUnknown}}</td>
195-
<td>{{CompatUnknown}}</td>
196-
</tr>
197-
<tr>
198-
<td><code>OES_element_index_uint</code></td>
199-
<td>{{CompatUnknown}}</td>
200-
<td>25</td>
201-
<td>{{CompatUnknown}}</td>
202-
<td>{{CompatUnknown}}</td>
203-
<td>{{CompatUnknown}}</td>
204-
</tr>
205-
<tr>
206-
<td><code>OES_vertex_array_object</code></td>
207-
<td>{{CompatUnknown}}</td>
208-
<td>25</td>
209-
<td>{{CompatUnknown}}</td>
210-
<td>{{CompatUnknown}}</td>
211-
<td>{{CompatUnknown}}</td>
212-
</tr>
213-
<tr>
214-
<td><a href="/en-US/docs/WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc" title="WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc"><code>WEBGL_compressed_texture_s3tc</code></a></td>
215-
<td>{{CompatGeckoMobile("15.0")}}</td>
216-
<td>25<br>
217-
prefixed with <span style="color: #222222; font-family: courier new,monospace; font-size: 12.66px; line-height: normal; white-space: pre-wrap;">WEBKIT_</span></td>
218-
<td>{{CompatUnknown}}</td>
219-
<td>{{CompatUnknown}}</td>
220-
<td>{{CompatUnknown}}</td>
221-
</tr>
222-
<tr>
223-
<td><code>WEBKIT_EXT_texture_filter_nisotropic</code></td>
224-
<td>{{CompatNo}}</td>
225-
<td>25</td>
226-
<td>{{CompatNo}}</td>
227-
<td>{{CompatNo}}</td>
228-
<td>{{CompatUnknown}}</td>
229-
</tr>
230-
</tbody>
231-
</table>
232-
</div>
83+
{{Compat("api.WebGLRenderingContext", 0)}}
84+
85+
<h3>WebGL 2</h3>
86+
87+
{{Compat("api.WebGL2RenderingContext", 0)}}
23388

23489
<h3 id="相容性小記">相容性小記</h3>
23590

0 commit comments

Comments
 (0)