Skip to content

Commit c3d88b2

Browse files
committed
[css-contain-2] Editorial: solve a cross-reference issue
Use the explicit name of the event in the prose so that references to it have somewhere to resolve. Also reorder things slightly.
1 parent dade0ab commit c3d88b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css-contain-2/Overview.bs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1690,9 +1690,15 @@ Using ''content-visibility: auto''</h3>
16901690
will be forced to rely on the ''200px'' height estimate.
16911691
</div>
16921692

1693-
Detecting ''content-visibility: auto'' state changes: the 'ContentVisibilityAutoStateChanged' event {#content-visibility-auto-state-changed}
1693+
Detecting ''content-visibility: auto'' state changes: the <a event>contentvisibilityautostatechanged</a> event {#content-visibility-auto-state-changed}
16941694
--------------------------------------------------------------------------------------------------------------------------------------------
16951695

1696+
The <dfn event dfn-for="Element">contentvisibilityautostatechanged</dfn> event is fired on an element with ''content-visibility: auto'' style when
1697+
the rendering state changes and the element either becomes or stops being
1698+
[=relevant to the user=].
1699+
1700+
This event is dispatched by posting a task at the time when the state change occurs.
1701+
16961702
<pre class='idl'>
16971703
[Exposed=Window]
16981704
interface ContentVisibilityAutoStateChangedEvent : Event {
@@ -1722,12 +1728,6 @@ Description of ContentVisibilityAutoStateChangedEventInit members:
17221728

17231729
</div>
17241730

1725-
This event is fired on an element with ''content-visibility: auto'' style when
1726-
the rendering state changes and the element either becomes or stops being
1727-
[=relevant to the user=].
1728-
1729-
This event is dispatched by posting a task at the time when the state change occurs.
1730-
17311731
Note: elements in ''content-visibility: auto'' subtrees remain semantically
17321732
relevant even for elements that [=skip its contents=]. This means that it is
17331733
inappropriate to use this signal to indefinitely skip DOM updates in the

0 commit comments

Comments
 (0)