Skip to content

Commit eb1a482

Browse files
authored
Reflect worklets moving to HTML (w3c#1011)
See w3c#1000.
1 parent b7d7411 commit eb1a482

File tree

3 files changed

+25
-640
lines changed

3 files changed

+25
-640
lines changed

css-layout-api/Overview.bs

+11-12
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Former Editor: Shane Stephens, shanestephens@google.com, w3cid 47691
1616
Editor: Robert O'Callahan, robert@ocallahan.org
1717
Editor: Rossen Atanassov, rossen.atanassov@microsoft.com, w3cid 49885
1818
Ignored Terms: LayoutWorklet
19-
Ignored Terms: create a workletglobalscope
2019
</pre>
2120

2221
<style>
@@ -1776,11 +1775,10 @@ context=] for a given |box|, |childBoxes| it <em>must</em> run the following ste
17761775
<code>"invalid"</code>, then let |box| fallback to the [=flow layout=] and abort all these
17771776
steps.
17781777

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]].
17821780

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
17841782
layout {{Worklet}}.
17851783

17861784
5. Run [=invoke an intrinsic sizes callback=] given |name|, |box|, |childBoxes|, and
@@ -1889,11 +1887,10 @@ it <em>must</em> run the following steps:
18891887
<code>"invalid"</code>, then let |box| fallback to the [=flow layout=] and abort all these
18901888
steps.
18911889

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]].
18951892

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
18971894
layout {{Worklet}}.
18981895

18991896
5. Run [=invoke a layout callback=] given |name|, |box|, |childBoxes|,
@@ -2021,8 +2018,8 @@ following steps:
20212018

20222019
### Global Scope Selection ### {#global-scope-selection}
20232020

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>:
20262023

20272024
- Select from at <em>least</em> two {{LayoutWorkletGlobalScope}}s, unless the user agent is
20282025
under memory constraints.
@@ -2033,7 +2030,9 @@ WorkletGlobalScopes=] [=list=] it <em>must</em>:
20332030
over time.
20342031

20352032
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>.
20372036

20382037
### Utility Algorithms ### {#utility-algorithms}
20392038

css-paint-api/Overview.bs

+8-7
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,10 @@ with), given |snappedConcreteObjectSize| it <em>must</em> run the following step
536536
arguments.
537537
</div>
538538

539-
10. Let |workletGlobalScope| be a {{PaintWorkletGlobalScope}} from the list of [=worklet's
540-
WorkletGlobalScopes=] from the paint {{Worklet}}, following the rules defined in
541-
[[#global-scope-selection]].
539+
10. Let |workletGlobalScope| be a {{PaintWorkletGlobalScope}} from the the paint {{Worklet}}'s
540+
[=Worklet/global scopes=], following the rules defined in [[#global-scope-selection]].
542541

543-
The user agent <em>may</em> also [=create a WorkletGlobalScope=] at this time, given the
542+
The user agent <em>may</em> also [=create a worklet global scope=] at this time, given the
544543
paint {{Worklet}}.
545544

546545
11. Run [=invoke a paint callback=] given |name|, |inputArguments|, |snappedConcreteObjectSize|,
@@ -686,8 +685,8 @@ Note: The contents of the resulting image are not designed to be accessible. Aut
686685
Global Scope Selection {#global-scope-selection}
687686
------------------------------------------------
688687

689-
When the user agent needs to select a {{PaintWorkletGlobalScope}} from the paint [=worklet's
690-
WorkletGlobalScopes=] [=list=] it <em>must</em>:
688+
When the user agent needs to select a {{PaintWorkletGlobalScope}} from the paint {{Worklet}}'s
689+
[=Worklet/global scopes=] [=list=] it <em>must</em>:
691690

692691
- Select from at <em>least</em> two {{PaintWorkletGlobalScope}}s, unless the user agent is under
693692
memory constraints.
@@ -698,7 +697,9 @@ WorkletGlobalScopes=] [=list=] it <em>must</em>:
698697
over time.
699698

700699
Note: These rules exist to ensure that authors do not rely on being able to store state on the
701-
global object or non-regeneratable state on the class. See [[worklets-1#code-idempotency]].
700+
global object or non-regeneratable state on the class. See
701+
<a href="https://html.spec.whatwg.org/multipage/worklets.html#worklets-idempotent">the
702+
discussion in the worklets specification about code idempotence</a>.
702703

703704
Examples {#examples}
704705
====================

0 commit comments

Comments
 (0)