@@ -16,7 +16,6 @@ Former Editor: Shane Stephens, shanestephens@google.com, w3cid 47691
16
16
Editor : Robert O'Callahan, robert@ocallahan.org
17
17
Editor : Rossen Atanassov, rossen.atanassov@microsoft.com, w3cid 49885
18
18
Ignored Terms : LayoutWorklet
19
- Ignored Terms : create a workletglobalscope
20
19
</pre>
21
20
22
21
<style>
@@ -1776,11 +1775,10 @@ context=] for a given |box|, |childBoxes| it <em>must</em> run the following ste
1776
1775
<code> "invalid"</code> , then let |box| fallback to the [=flow layout=] and abort all these
1777
1776
steps.
1778
1777
1779
- 4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the list of [=worklet's
1780
- WorkletGlobalScopes=] from the layout {{Worklet}} , following the rules defined in
1781
- [[#global-scope-selection]] .
1778
+ 4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}} 's
1779
+ [=Worklet/global scopes=] , following the rules defined in [[#global-scope-selection]] .
1782
1780
1783
- The user agent <em> may</em> also [=create a WorkletGlobalScope =] at this time, given the
1781
+ The user agent <em> may</em> also [=create a worklet global scope =] at this time, given the
1784
1782
layout {{Worklet}} .
1785
1783
1786
1784
5. Run [=invoke an intrinsic sizes callback=] given |name|, |box|, |childBoxes|, and
@@ -1889,11 +1887,10 @@ it <em>must</em> run the following steps:
1889
1887
<code> "invalid"</code> , then let |box| fallback to the [=flow layout=] and abort all these
1890
1888
steps.
1891
1889
1892
- 4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the list of [=worklet's
1893
- WorkletGlobalScopes=] from the layout {{Worklet}} , following the rules defined in
1894
- [[#global-scope-selection]] .
1890
+ 4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}} 's
1891
+ [=Worklet/global scopes=] , following the rules defined in [[#global-scope-selection]] .
1895
1892
1896
- The user agent <em> may</em> also [=create a WorkletGlobalScope =] at this time, given the
1893
+ The user agent <em> may</em> also [=create a worklet global scope =] at this time, given the
1897
1894
layout {{Worklet}} .
1898
1895
1899
1896
5. Run [=invoke a layout callback=] given |name|, |box|, |childBoxes|,
@@ -2021,8 +2018,8 @@ following steps:
2021
2018
2022
2019
### Global Scope Selection ### {#global-scope-selection}
2023
2020
2024
- When the user agent needs to select a {{LayoutWorkletGlobalScope}} from the layout [=worklet 's
2025
- WorkletGlobalScopes =] [=list=] it <em> must</em> :
2021
+ When the user agent needs to select a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}} 's
2022
+ [=Worklet/global scopes =] [=list=] it <em> must</em> :
2026
2023
2027
2024
- Select from at <em> least</em> two {{LayoutWorkletGlobalScope}} s, unless the user agent is
2028
2025
under memory constraints.
@@ -2033,7 +2030,9 @@ WorkletGlobalScopes=] [=list=] it <em>must</em>:
2033
2030
over time.
2034
2031
2035
2032
Note: These rules exist to ensure that authors do not rely on being able to store state on the
2036
- global object or non-regeneratable state on the class. See [[worklets-1#code-idempotency]] .
2033
+ global object or non-regeneratable state on the class. See
2034
+ <a href="https://html.spec.whatwg.org/multipage/worklets.html#worklets-idempotent">the
2035
+ discussion in the worklets specification about code idempotence</a> .
2037
2036
2038
2037
### Utility Algorithms ### {#utility-algorithms}
2039
2038
0 commit comments