From ce18785038966c8b29702f1a79b5a1c46a8b24c4 Mon Sep 17 00:00:00 2001
From: Keith Cirkel 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:
State | Keywords + | State + | Brief description |
---|---|---|---|
Until found state | until-found
+ | Until found state + | Will not be rendered but content inside will be accessible to find-in-page and + fragment navigation |
Hidden state | The empty string + | Hidden state + | Will not be rendered. |
hidden
|
Keywords + | Keyword | State | Brief description | Brief description | |
---|---|---|---|---|---|
until-found
+ | until-found
| Until found state | Will not be rendered but content inside will be accessible to find-in-page and fragment navigation @@ -77547,7 +77547,7 @@ END:VCARD | Hidden state | Will not be rendered. |
hidden
+ | hidden
|
The attribute's missing value default is the
If the
hidden
attribute is in the until-found state, then return "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.
hidden
until-found
";
+ until-found
";
"hidden
";
the empty string
until-found
- hidden
From 2423ee8a0bb7898f75f96d312b011d37ad986874 Mon Sep 17 00:00:00 2001
From: Keith Cirkel until-found
- hidden
The attribute's missing value default is the not hidden state, and its 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
+ data-x="attr-hidden-hidden-state">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 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
+ data-x="attr-hidden-until-found-state">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 state, then return "
until-found
".
If the When an element has the When an element has the When an element has the When an element has the If the If the The attribute's missing value default is the not hidden state, and its invalid value default is the hidden
- state. When an element has the hidden
attribute is set, then return
From 164ce84da5108eb1aaf0bc2b56ab9c1ba987668c Mon Sep 17 00:00:00 2001
From: Keith Cirkel
until-found
- until found
+ hidden until found
Will not be rendered but content inside will be accessible to find-in-page and
fragment navigation
The empty string
- hidden
+ hidden
Will not be rendered.
hidden
@@ -77555,8 +77555,8 @@ END:VCARD
default">invalid value default is the hidden
state.
- hidden
attribute in the hidden state, it indicates that the element is not yet, or
+ 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
indirectly through the style layer. For example, a web browser could implement these requirements
using the rules suggested in the Rendering section.hidden
attribute in the hidden until found state, it indicates that 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
@@ -77688,7 +77688,7 @@ END:VCARD
hidden
attribute is in the until found state, then return "hidden until found state, then return "
until-found
".hidden
attribute is set, then return
From 611d1995076d37591a3ec7b6b6c726f77159862c Mon Sep 17 00:00:00 2001
From: Keith Cirkel 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). CSSCONTAINhidden
attribute in the hidden state, it indicates that the element is not yet, or