diff --git a/source b/source index e20b576fe78..85f1c7a38ed 100644 --- a/source +++ b/source @@ -77527,42 +77527,46 @@ END:VCARD
All HTML elements may have the hidden
content attribute set. The hidden
attribute is an enumerated attribute. The
- following table lists the states for this attribute:
Keyword | State - | Keywords + | Brief description | |
---|---|---|---|---|
Until found state - | until-found
+ | until-found
+ | hidden until found + | Will not be rendered but content inside will be accessible to find-in-page and + fragment navigation |
Hidden state | The empty string + | hidden + | Will not be rendered. | |
hidden
+ | hidden
|
The attribute's missing value default is the not hidden state, and its invalid value default is the hidden - state.
+ data-x="attr-hidden-not-hidden-state">not hidden state, and its invalid value default is the hidden + state. -When an element has the hidden
attribute in the hidden state, it indicates that the element is not yet, or
+
When an element has the hidden
attribute in the hidden state, it indicates that the element is not yet, or
is no longer, directly relevant to the page's current state, or that it is being used to declare
content to be reused by other parts of the page as opposed to being directly accessed by the user.
User agents should not render elements that are in the hidden state. This requirement may be implemented
+ data-x="attr-hidden-hidden-state">hidden state. This requirement may be implemented
indirectly through the style layer. For example, a web browser could implement these requirements
using the rules suggested in the Rendering section.
When an element has the hidden
attribute in the hidden until found state, it indicates that the
- element is hidden like the hidden state but the
+
When an element has the Web browsers will use 'content-visibility: hidden' instead of 'display: none' when the hidden
attribute in the hidden until found state, it indicates that the
+ element is hidden like the hidden state but the
content inside the element will be accessible to find-in-page and fragment navigation. When these features attempt to scroll to a
target which is in the element's subtree, the user agent will remove the
hidden
attribute is in the hidden until found state, as specified in the hidden until found state, as specified in the Rendering section.
Since elements with the hidden
attribute in the hidden until found state use 'content-visibility:
+ data-x="attr-hidden-until-found-state">hidden until found state use 'content-visibility:
hidden' instead of 'display: none', there are two caveats of the hidden until found state that make it different
- from the hidden state:
The element needs to be affected by layout containment in order to be revealed by find-in-page. This means that if the element in the hidden until found state has a 'display' value of + data-x="attr-hidden-until-found-state">hidden until found state has a 'display' value of 'none', 'contents', or 'inline', then the element will not be revealed by find-in-page.
The element will still have a generated box when in - the hidden until found state, which means + the hidden until found state, which means that borders, margin, and padding will still be rendered around the element.
If the hidden
attribute is in the until-found state, then return "until-found
".
until-found
".
If the hidden
attribute is set, then return
true.
If the given value is a string that is an ASCII case-insensitive match for
- "until-found
", then set the until-found
", then set the hidden
attribute to "until-found
".
Otherwise, if the given value is false, then remove the hidden
attribute.
open
attribute, in order to make
find-in-page able to search through it. Similarly, all HTML elements with the hidden
attribute in the hidden until found state should have their hidden until found state should have their skipped contents become accessible without modifying the hidden
attribute in order to make find-in-page able to search through
them. After find-in-page finishes searching for matches, the details
elements and the
elements with the hidden
attribute in the hidden until found state should have their contents
+ data-x="attr-hidden-until-found-state">hidden until found state should have their contents
become skipped again. This entire process must happen synchronously (and so is not observable to
users or to author code). CSSCONTAIN
@@ -137772,7 +137776,7 @@ interface External {
hidden
until-found
";
+ until-found
";
"hidden
";
the empty string