File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1273,6 +1273,22 @@ is called, the user agent <em>must</em> run the following steps:
1273
1273
Layout Engine {#layout-engine}
1274
1274
------------------------------
1275
1275
1276
+ <div class="issue">
1277
+ Issue: Currently the API is in an iterable generator form. Based on implementation experience, and
1278
+ web developer experience, this may change to promise based API instead. There are both pros and
1279
+ cons to each of these.
1280
+
1281
+ <em> Promises</em>
1282
+ - Better error reporting.
1283
+ - Potentially better developer ergonomics.
1284
+
1285
+ <em> Generator</em>
1286
+ - More "strict" - can only perform layout operations. Don't have to restrict which promise APIs
1287
+ work each call.
1288
+ - Potentially better bindings overhead.
1289
+ </div>
1290
+
1291
+
1276
1292
<pre class="idl">
1277
1293
[Exposed=LayoutWorklet]
1278
1294
interface LayoutFragmentRequest {
You can’t perform that action at this time.
0 commit comments