Skip to content

Commit 3e55179

Browse files
committed
Put IDL into an example so Bikeshed knows it's not real.
1 parent 0d44ebe commit 3e55179

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

worklets/Overview.bs

+24-22
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ When a user agent is to <dfn>set up a worklet environment settings object</dfn>,
219219
:: Return |workletGlobalScope|.
220220

221221
: The <a>responsible browsing context</a>
222-
:: Return |inheritedResponsibleBrowsingContext|.
222+
:: Return |inheritedResponsibleBrowsingContext|.
223223

224224
: The <a>responsible event loop</a>
225225
:: Return |workletEventLoop|.
@@ -371,27 +371,29 @@ Examples {#examples}
371371

372372
For these examples we'll use a fake worklet on window.
373373

374-
<pre class='idl'>
375-
partial interface Window {
376-
[SameObject] readonly attribute Worklet fakeWorklet1;
377-
[SameObject] readonly attribute Worklet fakeWorklet2;
378-
};
379-
</pre>
380-
381-
<pre class='idl'>
382-
callback Function = any (any... arguments);
383-
384-
[Global=(Worklet,FakeWorklet),Exposed=FakeWorklet]
385-
interface FakeWorkletGlobalScope : WorkletGlobalScope {
386-
void registerAnArbitaryClass(DOMString type, Function classConstructor);
387-
};
388-
</pre>
389-
390-
Each {{FakeWorkletGlobalScope}} has a map of the <dfn>registered class constructors map</dfn>.
391-
392-
When the <dfn method for=FakeWorkletGlobalScope>
393-
registerAnArbitaryClass(|type|, |classConstructor|)</dfn> method is called, the user agent will add
394-
the |classConstructor| of |type| to the map of <a>registered class constructors map</a>.
374+
<div class=example>
375+
<pre class='idl'>
376+
partial interface Window {
377+
[SameObject] readonly attribute Worklet fakeWorklet1;
378+
[SameObject] readonly attribute Worklet fakeWorklet2;
379+
};
380+
</pre>
381+
382+
<pre class='idl'>
383+
callback Function = any (any... arguments);
384+
385+
[Global=(Worklet,FakeWorklet),Exposed=FakeWorklet]
386+
interface FakeWorkletGlobalScope : WorkletGlobalScope {
387+
void registerAnArbitaryClass(DOMString type, Function classConstructor);
388+
};
389+
</pre>
390+
391+
Each {{FakeWorkletGlobalScope}} has a map of the <dfn>registered class constructors map</dfn>.
392+
393+
When the <dfn method for=FakeWorkletGlobalScope>
394+
registerAnArbitaryClass(|type|, |classConstructor|)</dfn> method is called, the user agent will add
395+
the |classConstructor| of |type| to the map of <a>registered class constructors map</a>.
396+
</div>
395397

396398
Loading scripts into a worklet. {#example-single}
397399
-------------------------------------------------

0 commit comments

Comments
 (0)