Skip to content

Commit 4054db9

Browse files
committed
Editorial tweaks
1 parent 295912a commit 4054db9

File tree

1 file changed

+34
-17
lines changed

1 file changed

+34
-17
lines changed

source

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3757,6 +3757,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
37573757
<ul class="brief">
37583758
<li><dfn data-x-href="https://drafts.csswg.org/css-pseudo/#file-selector-button-pseudo">'::file-selector-button'</dfn></li>
37593759
</ul>
3760+
3761+
<p>The following term is defined in <cite>CSS Containment</cite>: <ref spec=CSSCONTAIN></p>
3762+
3763+
<ul class="brief">
3764+
<li><dfn data-x-href="https://drafts.csswg.org/css-contain/#skips-its-contents">skips its contents</dfn></li>
3765+
</ul>
37603766
</dd>
37613767

37623768

@@ -57102,7 +57108,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
5710257108

5710357109
<ol>
5710457110
<li>
57105-
<p>While <var>currentNode</var> has a parent node:</p>
57111+
<p>While <var>currentNode</var> has a parent node within the <span>flat tree</span>:</p>
5710657112

5710757113
<ol>
5710857114
<li>
@@ -57114,14 +57120,14 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
5711457120
<var>currentNode</var> is slotted into.</p></li>
5711557121

5711657122
<li><p>If the <code data-x="attr-details-open">open</code> attribute is not set on
57117-
<var>currentNode</var>, then <span data-x="concept-element-attributes-set-value">Set</span>
57123+
<var>currentNode</var>, then <span data-x="concept-element-attributes-set-value">set</span>
5711857124
the <code data-x="attr-details-open">open</code> attribute on <var>currentNode</var> to the
5711957125
empty string.</p></li>
5712057126
</ol>
5712157127
</li>
5712257128

5712357129
<li><p>Otherwise, set <var>currentNode</var> to the parent node of
57124-
<var>currentNode</var> within the <span>flat tree</span>.</p></li>.
57130+
<var>currentNode</var> within the <span>flat tree</span>.</p></li>
5712557131
</ol>
5712657132
</li>
5712757133
</ol>
@@ -76169,14 +76175,20 @@ body { display:none }
7616976175
can navigate through the <span data-x="fip-matches">matches</span> by advancing the <span
7617076176
data-x="fip-active-match">active match</span> using the <span>find-in-page interface</span>.</p>
7617176177

76178+
<p class="XXX"><a href="https://github.com/whatwg/html/issues/3539">Issue #3539</a> tracks
76179+
standardizing how <span>find-in-page</span> underlies the currently-unspecified <code
76180+
data-x="">window.find()</code> API.</p>
76181+
76182+
<h4>Interaction with <code>details</code></h4>
76183+
7617276184
<p>When find-in-page begins searching for matches, all <code>details</code> elements in the page
76173-
which do not have their <code data-x="attr-details-open">open</code> attribute set should have the
76174-
<a href="https://drafts.csswg.org/css-contain-2/#skips-its-contents">skipped contents</a> of their
76175-
second slot become accessible. without modifying the <code data-x="attr-details-open">open</code>
76176-
attribute in order to make find-in-page able to search through it. After find-in-page finishes
76177-
searching for matches, those <code>details</code> elements should have their contents become
76178-
skipped again. This entire process must happen synchronously (and so is not observable to users or
76179-
to author code).</p>
76185+
which do not have their <code data-x="attr-details-open">open</code> attribute set should have
76186+
the <span data-x="skips its contents">skipped contents</span> of their second slot become
76187+
accessible, without modifying the <code data-x="attr-details-open">open</code> attribute, in
76188+
order to make find-in-page able to search through it. After find-in-page finishes searching for
76189+
matches, those <code>details</code> elements should have their contents become skipped again.
76190+
This entire process must happen synchronously (and so is not observable to users or to author
76191+
code). <ref spec=CSSCONTAIN></p>
7618076192

7618176193
<p>When find-in-page chooses a new <span data-x="fip-active-match">active match</span>, perform
7618276194
the following steps:</p>
@@ -76190,10 +76202,6 @@ body { display:none }
7619076202
revealing algorithm</span> on <var>node</var>.</p></li>
7619176203
</ol>
7619276204

76193-
<p class="XXX"><a href="https://github.com/whatwg/html/issues/3539">Issue #3539</a> tracks
76194-
standardizing how <span>find-in-page</span> underlies the currently-unspecified <code
76195-
data-x="">window.find()</code> API.</p>
76196-
7619776205
<h4>Interaction with selection</h4>
7619876206

7619976207
<p>The find-in-page process is invoked in the context of a document, and may have an effect on
@@ -115873,12 +115881,18 @@ details[open] > summary {
115873115881
expected to allow the user to request the details be shown or hidden.</p>
115874115882

115875115883
<p>The <code>details</code> element's second <span data-x="concept-slot">slot</span> is expected
115876-
to have its <code data-x="attr-style">style</code> attribute set to "display:block;
115877-
content-visibility:hidden" when the <code>details</code> element does not have an <code
115878-
data-x="attr-details-open">open</code> attribute. When it does have the <code
115884+
to have its <code data-x="attr-style">style</code> attribute set to "<code data-x="">display:
115885+
block; content-visibility: hidden;</code>" when the <code>details</code> element does not have an
115886+
<code data-x="attr-details-open">open</code> attribute. When it does have the <code
115879115887
data-x="attr-details-open">open</code> attribute, the <code data-x="attr-style">style</code>
115880115888
attribute is expected to be removed from the second <span data-x="concept-slot">slot</span>.</p>
115881115889

115890+
<p class="note">Because the slots are hidden inside a shadow tree, this <code
115891+
data-x="attr-style">style</code> attribute is not directly visible to author code. Its impacts,
115892+
however, are visible. Notably, the choice of <code data-x="">content-visibility: hidden</code>
115893+
instead of, e.g., <code data-x="">display: none</code>, impacts the results of various APIs that
115894+
query layout information.</p>
115895+
115882115896
<!-- https://mail.gnome.org/archives/usability/2006-June/msg00015.html -->
115883115897

115884115898
</div>
@@ -123920,6 +123934,9 @@ INSERT INTERFACES HERE
123920123934
<dt id="refsCSSCASCADE">[CSSCASCADE]</dt>
123921123935
<dd><cite><a href="https://drafts.csswg.org/css-cascade/">CSS Cascading and Inheritance</a></cite>, E. Etemad, T. Atkins. W3C.</dd>
123922123936

123937+
<dt id="refsCSSCONTAIN">[CSSCONTAIN]</dt>
123938+
<dd><cite><a href="https://drafts.csswg.org/css-contain/">CSS Containment</a></cite>, T. Atkins, F. Rivoal, V. Levin. W3C.</dd>
123939+
123923123940
<dt id="refsCSSCOLOR">[CSSCOLOR]</dt>
123924123941
<dd><cite><a href="https://drafts.csswg.org/css-color/">CSS Color Module</a></cite>, T. &Ccedil;elik, C. Lilley, L. Baron. W3C.</dd>
123925123942

0 commit comments

Comments
 (0)