-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathfeature-table.html
More file actions
199 lines (192 loc) · 10.3 KB
/
feature-table.html
File metadata and controls
199 lines (192 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<link rel="preload" href="/features.json" as="fetch">
<link rel="modulepreload" href="https://unpkg.com/wasm-feature-detect@1/dist/esm/index.js?v=1">
<script type="module" src="/features.js"></script>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.15/dist/cdn.min.js" defer></script>
The table below aims to track implemented features in popular engines and tools.
You can click on a cell for more information.
<noscript><p>Please enable JavaScript for the table to load.</p></noscript>
<p id="feature-table-loading">
Loading table, please wait…
<span class="text-secondary">(<a href="https://github.com/WebAssembly/website/issues" target="_blank">report issues</a>)</span>
</p>
<div
id="feature-table"
x-data="data"
x-init="$watch('selectedCategories', (value, oldValue) => onSelectedCategoryChange(value, oldValue))"
x-show="categories.length"
x-cloak
>
<div id="table-actions">
<fieldset>
<legend>Currently showing categories:</legend>
<div id="platform-filters">
<template x-for="category in categoryNames" x-bind:key="category">
<label class="platform-filter" x-id="['platform-filter']">
<input type="checkbox" x-bind:id="$id('platform-filter')" x-bind:value="category" x-model="selectedCategories" />
<div class="checkbox-button text-secondary" x-bind:for="$id('platform-filter')" x-text="category"></div>
</label>
</template>
</div>
</fieldset>
<div>
<a href="https://github.com/WebAssembly/website/issues" target="_blank">Report issues</a>
•
<a href="https://github.com/WebAssembly/website/blob/main/features.json" target="_blank">Contribute data</a>
</div>
</div>
<div id="feature-scroll">
<table aria-label="Feature Status in WebAssembly Platforms" x-bind:style="{ '--num-columns': numColumns }">
<thead>
<tr>
<th class="top-corner"></th>
<template x-for="(numColumns, category) in cellGroupsForRow" x-bind:key="category">
<th
scope="colgroup"
x-bind:id="`col-category-header-${str2id(category)}`"
class="category"
x-bind:colspan="numColumns"
x-bind:style="{ '--num-columns-in-category': numColumns }"
>
<div x-text="category"></div>
</th>
</template>
</tr>
<tr class="platform-header-row">
<th class="top-corner"></th>
<template x-for="platform in cellsForRow(null)" x-bind:key="platform.name">
<th
scope="col"
x-bind:id="`col-header-${str2id(platform.name)}`"
x-bind:headers="`col-category-header-${str2id(platform.category)}`"
>
<template x-if="platform.url">
<a x-bind:href="platform.url" target="_blank">
<template x-if="platform.logo">
<!-- Empty alt trick: https://www.w3.org/WAI/WCAG22/Techniques/html/H2 -->
<img x-bind:src="platform.logo" alt="" x-bind:class="platform.logoClassName">
</template>
<span class="platform-name" x-text="platform.name"></span>
</a>
</template>
<template x-if="!platform.url">
<span>
<span class="platform-name" x-text="platform.name"></span>
</span>
</template>
</th>
</template>
</tr>
</thead>
<template x-for="(featureGroup, i) in featureGroups" x-bind:key="i">
<tbody x-id="['feat-group']">
<tr>
<th scope="colgroup" x-bind:id="$id('feat-group')" x-bind:colspan="numColumns" x-text="featureGroup.name"></th>
</tr>
<template x-for="feature in featureGroup.features" x-bind:key="feature.id">
<tr x-bind:data-feature-id="feature.id" x-id="['feat-row-header']">
<th scope="row" x-bind:id="$id('feat-row-header')" x-bind:headers="$id('feat-group')">
<a x-bind:href="feature.url" x-text="feature.description" target="_blank"></a>
</th>
<template x-for="{ name, status, rendered } in cellsForRow(feature.id)" x-bind:key="name">
<td x-id="['cell-details']" x-bind:headers="`${$id('feat-row-header')} col-header-${str2id(name)}`">
<!-- Cell (click to expand) -->
<button
type="button"
class="cell"
x-bind:class="rendered.className"
x-on:click="toggleFeatureDetails(status)"
x-bind:aria-expanded="String(status?.expanded ?? false)"
x-bind:aria-controls="$id('cell-details')"
>
<div class="icon" x-replace="rendered.cellIcon"></div>
<div x-show="rendered.statusLabel" x-text="rendered.statusLabel"></div>
<template x-if="rendered.note">
<div x-show="rendered.note" class="icon icon-note" x-replace="ICONS['more']"></div>
</template>
</button>
<!-- Expanded details -->
<div class="details" x-bind:id="$id('cell-details')" x-bind:hidden="!status?.expanded" tabindex="0">
<template x-if="status?.expanded">
<ul class="details-inner">
<li class="details-status" x-bind:class="rendered.className">
<div class="icon" x-replace="rendered.noteIcon" aria-hidden="true"></div>
<div x-replace="rendered.detailsLabel"></div>
</li>
<li class="details-note" x-show="rendered.note">
<div class="icon" x-replace="ICONS['asterisk']" aria-hidden="true"></div>
<div class="details-note-line text-secondary" x-replace="rendered.note"></div>
</li>
</ul>
</template>
</div>
</td>
</template>
</tr>
</template>
</tbody>
</template>
</table>
</div>
</div>
<!-- Apache License 2.0, https://github.com/Remix-Design/remixicon -->
<template id="icon-check">
<span class="visually-hidden">Full Support</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>Full Support</title>
<path d="M10 15.2 19.2 6l1.4 1.4L10 18l-6.4-6.4L5 10.2Z"/>
</svg>
</template>
<template id="icon-checkbox-circle">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0m8-10C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m5.457 7.457-1.414-1.414L11 13.086l-2.793-2.793-1.414 1.414L11 15.914z"/></svg>
</template>
<template id="icon-close">
<span class="visually-hidden">No Support</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>No Support</title>
<path d="m12 10.6 5-5 1.4 1.5-5 4.9 5 5-1.4 1.4-5-5-5 5L5.7 17l5-5-5-5 1.5-1.4z"/>
</svg>
</template>
<template id="icon-close-circle">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16m0-9.41 2.83-2.83 1.41 1.41L13.41 12l2.83 2.83-1.41 1.41L12 13.41l-2.83 2.83-1.41-1.41L10.59 12 7.76 9.17l1.41-1.41z"/></svg>
</template>
<template id="icon-checkbox-blank-circle">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16"/></svg>
</template>
<template id="icon-flask">
<span class="visually-hidden">Experimental Support</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>Experimental Support</title>
<path d="M15.9994 2v2h-1v3.243c0 1.1575.2512 2.3013.7363 3.3524l4.2813 9.276c.3471.7522.0188 1.6434-.7334 1.9905A1.5 1.5 0 0 1 18.655 22H5.3438c-.8285 0-1.5-.6716-1.5-1.5a1.5 1.5 0 0 1 .138-.6286l4.2813-9.276a8 8 0 0 0 .7363-3.3525V4h-1V2zm-2.6121 8.0012h-2.7758a10 10 0 0 1-.3744 1.0712l-.1581.3611L6.1244 20h11.749l-3.9536-8.5665a10 10 0 0 1-.5325-1.4323m-2.3879-2.7583a10 10 0 0 1-.0288.758h2.0576a10 10 0 0 1-.021-.3639l-.0078-.394V4h-2z"/>
</svg>
</template>
<template id="icon-forbid-2">
<span class="visually-hidden">Not Applicable</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>Not Applicable</title>
<path d="M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16m4.9-11.48L8.51 16.9a6 6 0 0 1-1.41-1.41l8.37-8.37a6 6 0 0 1 1.41 1.41"/>
</svg>
</template>
<template id="icon-asterisk">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 3v7.267l6.294-3.633 1 1.732-6.293 3.633 6.293 3.635-1 1.732L13 13.732V21h-2v-7.268l-6.294 3.634-1-1.732L9.999 12 3.706 8.366l1-1.732L11 10.267V3z"/></svg>
</template>
<template id="icon-question-mark">
<span class="visually-hidden">Unknown</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" aria-hidden="true">
<title>Unknown</title>
<path d="M24 38a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-34a12 12 0 0 1 12 12c0 4.3-1.5 6.6-5.3 9.8-3.9 3.3-4.7 4.8-4.7 8.2h-4c0-5 1.6-7.4 6-11.2 3.1-2.6 4-4 4-6.8a8 8 0 1 0-16 0v2h-4v-2A12 12 0 0 1 24 4z"/>
</svg>
</template>
<template id="icon-more">
<span class="visually-hidden">footnote</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>More</title>
<path d="M5 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2m14 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2m-7 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2"/>
</svg>
</template>
<template id="icon-loading">
<span class="visually-hidden">Loading</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<title>Loading</title>
<circle fill="#ccc" cx="2" cy="12" r="2"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin=".1"/></circle><circle fill="#ccc" cx="10" cy="12" r="2"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin=".2"/></circle><circle fill="#ccc" cx="18" cy="12" r="2"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin=".3"/></circle>
</svg>
</template>