-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reflect worklets moving to HTML (#1011)
See #1000.
- Loading branch information
Showing
3 changed files
with
25 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ Former Editor: Shane Stephens, [email protected], w3cid 47691 | |
Editor: Robert O'Callahan, [email protected] | ||
Editor: Rossen Atanassov, [email protected], w3cid 49885 | ||
Ignored Terms: LayoutWorklet | ||
Ignored Terms: create a workletglobalscope | ||
</pre> | ||
|
||
<style> | ||
|
@@ -1776,11 +1775,10 @@ context=] for a given |box|, |childBoxes| it <em>must</em> run the following ste | |
<code>"invalid"</code>, then let |box| fallback to the [=flow layout=] and abort all these | ||
steps. | ||
|
||
4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the list of [=worklet's | ||
WorkletGlobalScopes=] from the layout {{Worklet}}, following the rules defined in | ||
[[#global-scope-selection]]. | ||
4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}}'s | ||
[=Worklet/global scopes=], following the rules defined in [[#global-scope-selection]]. | ||
|
||
The user agent <em>may</em> also [=create a WorkletGlobalScope=] at this time, given the | ||
The user agent <em>may</em> also [=create a worklet global scope=] at this time, given the | ||
layout {{Worklet}}. | ||
|
||
5. Run [=invoke an intrinsic sizes callback=] given |name|, |box|, |childBoxes|, and | ||
|
@@ -1889,11 +1887,10 @@ it <em>must</em> run the following steps: | |
<code>"invalid"</code>, then let |box| fallback to the [=flow layout=] and abort all these | ||
steps. | ||
|
||
4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the list of [=worklet's | ||
WorkletGlobalScopes=] from the layout {{Worklet}}, following the rules defined in | ||
[[#global-scope-selection]]. | ||
4. Let |workletGlobalScope| be a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}}'s | ||
[=Worklet/global scopes=], following the rules defined in [[#global-scope-selection]]. | ||
|
||
The user agent <em>may</em> also [=create a WorkletGlobalScope=] at this time, given the | ||
The user agent <em>may</em> also [=create a worklet global scope=] at this time, given the | ||
layout {{Worklet}}. | ||
|
||
5. Run [=invoke a layout callback=] given |name|, |box|, |childBoxes|, | ||
|
@@ -2021,8 +2018,8 @@ following steps: | |
|
||
### Global Scope Selection ### {#global-scope-selection} | ||
|
||
When the user agent needs to select a {{LayoutWorkletGlobalScope}} from the layout [=worklet's | ||
WorkletGlobalScopes=] [=list=] it <em>must</em>: | ||
When the user agent needs to select a {{LayoutWorkletGlobalScope}} from the layout {{Worklet}}'s | ||
[=Worklet/global scopes=] [=list=] it <em>must</em>: | ||
|
||
- Select from at <em>least</em> two {{LayoutWorkletGlobalScope}}s, unless the user agent is | ||
under memory constraints. | ||
|
@@ -2033,7 +2030,9 @@ WorkletGlobalScopes=] [=list=] it <em>must</em>: | |
over time. | ||
|
||
Note: These rules exist to ensure that authors do not rely on being able to store state on the | ||
global object or non-regeneratable state on the class. See [[worklets-1#code-idempotency]]. | ||
global object or non-regeneratable state on the class. See | ||
<a href="https://html.spec.whatwg.org/multipage/worklets.html#worklets-idempotent">the | ||
discussion in the worklets specification about code idempotence</a>. | ||
|
||
### Utility Algorithms ### {#utility-algorithms} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.