From 30b055210c26ea649465bb7dd15bbcd075b2b064 Mon Sep 17 00:00:00 2001
From: Joey Arhar When HTML elements have the until-found value set for the hidden
+ attribute, the content inside of them is accessible to find-in-page and fragment navigation. When these features attempt to scroll to a
+ target element which is inside a hidden=until-found subtree, the user agent must
+ remove the hidden attribute in order to reveal the content before scrolling to
+ it. Instead of applying the The ancestor hidden=until-found revealing algorithm is to run the following steps on
+ currentNode: While currentNode has a parent node within the flat tree: If currentNode has the hidden=until-found attribute, then remove
+ the hidden attribute from currentNode. Set currentNode tothe parent node of currentNode within the
+ flat tree. A top-level browsing context has a system visibility state,
@@ -77759,16 +77789,19 @@ body { display:none }
standardizing how find-in-page underlies the currently-unspecified When find-in-page begins searching for matches, all The
+
+ hidden=until-found
attributedisplay: none
style like the regular hidden attribute,
+ hidden=until-found uses applies content-visibility: hidden
in order to
+ improve the performance of find-in-page in these sections.
+
+
+
+ Page visibility
window.find()
API.Interaction with
+ details
Interaction with
details
and hidden=until-found
details
elements in the page
which do not have their open
attribute set should have
the skipped contents of their second slot become
accessible, without modifying the open
attribute, in
- order to make find-in-page able to search through it. After find-in-page finishes searching for
- matches, those details
elements should have their contents become skipped again.
- This entire process must happen synchronously (and so is not observable to users or to author
- code). details
elements and the hidden=until-found
+ elements should have their contents become skipped again. This entire process must happen
+ synchronously (and so is not observable to users or to author code).
When find-in-page chooses a new active match, perform the following steps:
@@ -77778,8 +77811,21 @@ body { display:none } match.Queue a global task on the user interaction task source given - node's relevant global object to run the ancestor details - revealing algorithm on node.
Run the ancestor details revealing algorithm on node.
Run the ancestor hidden-until-found revealing algorithm on + node.
Queue a global task on the user interaction task source given + node's relevant global object to run the following steps:
Scroll node into view.
@@ -89189,6 +89235,9 @@ new PaymentRequest(…); // Allowed to use
Run the ancestor details revealing algorithm on target.
Run the ancestor hidden-until-found revealing algorithm on + target.
Scroll target into view, with behavior set to "auto", block set to "start", and inline set to "nearest".
Instead of applying the display: none
style like the regular hidden attribute,
hidden=until-found uses applies content-visibility: hidden
in order to
@@ -74786,10 +74788,19 @@ END:VCARD
While currentNode has a parent node within the flat tree:
If currentNode has the hidden=until-found attribute, then remove - the hidden attribute from currentNode.
If currentNode has the hidden=until-found attribute, then run + the following steps:
+ +Fire an event named beforematch
at currentNode.
Remove the hidden attribute from currentNode.
Set currentNode tothe parent node of currentNode within the +
Set currentNode to the parent node of currentNode within the flat tree.
Window
Window
before printing
+ beforematch
+ Event
+ beforeunload
BeforeUnloadEvent
From 387c131a5ae08cb48932a08d9dafd0d26fc104fd Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden=until-found
attributeWhen HTML elements have the until-found value set for the hidden +
When HTML elements have the until-found
value set for the hidden
attribute, the content inside of them is accessible to find-in-page and fragment navigation. When these features attempt to scroll to a
- target element which is inside a hidden=until-found subtree, the user agent must
- remove the hidden attribute in order to reveal the content before scrolling to
- it. In addition to removing the hidden attribute, an event named
- beforematch is also fired on the hidden element before the
- hidden attribute is removed.
hidden=until-found
subtree, the user agent must
+ remove the hidden
attribute in order to reveal the content before scrolling to
+ it. In addition to removing the hidden
attribute, an event named
+ beforematch is also fired on the hidden
element before the
+ hidden
attribute is removed.
Instead of applying the display: none
style like the regular hidden attribute,
- hidden=until-found uses applies content-visibility: hidden
in order to
+ hidden=until-found
uses applies content-visibility: hidden
in order to
improve the performance of find-in-page in these sections.
The ancestor hidden=until-found revealing algorithm is to run the following steps on @@ -74789,14 +74789,14 @@ END:VCARD
If currentNode has the hidden=until-found attribute, then run +
If currentNode has the hidden=until-found
attribute, then run
the following steps:
Fire an event named Fire an event named beforematch
at currentNode.
Remove the hidden attribute from currentNode.
Remove the hidden
attribute from currentNode.
Run the ancestor hidden-until-found revealing algorithm on node.
Queue a global task on the user interaction task source given - node's relevant global object to run the following steps:
Scroll node into view.
Scroll node into + view.
hidden
attributeAll HTML elements may have the The When HTML elements have the Instead of applying the User agents must use content-visibility:hidden instead of display:none when the hidden attribute is "until-found", as specified in the Rendering section. Since hidden=until-found uses content-visibility:hidden instead of display:none, the hidden element must be display:block and will have a generated box unlike display:none. The ancestor hidden=until-found revealing algorithm is to run the following steps on
currentNode: A top-level browsing context has a system visibility state,
@@ -117178,11 +117175,19 @@ console.assert(container.firstChild instanceof SuperP);
hidden
content attribute set. The hidden
attribute is a boolean attribute. When specified
+ data-x="attr-hidden">hidden content attribute set. When specified
on an element, 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
@@ -74763,22 +74762,18 @@ END:VCARD
hidden
IDL
attribute must reflect the content attribute of the same name.The
-
- hidden=until-found
attributeuntil-found
value set for the hidden
- attribute, the content inside of them is accessible to find-in-page and When an element has the value "until-found"
for the hidden attribute, the content inside the element should be accessible to
+ find-in-page and fragment navigation. When these features attempt to scroll to a
- target element which is inside a hidden=until-found
subtree, the user agent must
+ target which is in the element's subtree, the user agent must
remove the hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
beforematch is also fired on the hidden
element before the
hidden
attribute is removed.display: none
style like the regular hidden attribute,
- hidden=until-found
uses applies content-visibility: hidden
in order to
- improve the performance of find-in-page in these sections.Page visibility
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 must
- remove the @namespace url(http://www.w3.org/1999/xhtml);
-
, area, base, basefont, datalist, head, link, meta, noembed,
+area, base, basefont, datalist, head, link, meta, noembed,
noframes, param, rp, script, style, template, title {
display: none;
}
+ {
+ display: none;
+}
+
+[hidden=until-found] {
+ content-visibility: hidden;
+}
+
embed[hidden] { display: inline; height: 0; width: 0; }
input[type=hidden i] { display: none !important; }
From 93e18416efbc90ef015c3b71078ca0240b1f26bb Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute in order to reveal the content before scrolling to
- it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the hidden
element before the
- hidden
attribute is removed.
hidden
attribute in order to reveal the content before scrolling to
+ it. In addition to removing the hidden
attribute, an event named
+ beforematch is also fired on the hidden
element before the
+ hidden
attribute is removed.
- User agents must use content-visibility:hidden instead of display:none when the hidden attribute is "until-found", as specified in the Rendering section.
+User agents must use content-visibility:hidden instead of display:none when the hidden attribute is "until-found"
, as specified in the Rendering section.
Since hidden=until-found uses content-visibility:hidden instead of display:none, the hidden element must be display:block and will have a generated box unlike display:none.
@@ -74784,14 +74784,14 @@ END:VCARDIf currentNode has the hidden=until-found
attribute, then run
+
If currentNode has the hidden=until-found
attribute, then run
the following steps:
Fire an event named beforematch
at currentNode.
Remove the hidden
attribute from currentNode.
Remove the hidden
attribute from currentNode.
window.find()
API.
- details
and hidden=until-found
details
and hidden=until-found
When find-in-page begins searching for matches, all details
elements in the page
which do not have their open
attribute set should have
the skipped contents of their second slot become
accessible, without modifying the open
attribute, in
order to make find-in-page able to search through it. Similarly, all HTML elements with the
- hidden=until-found attribute should have their skipped contents become accessible without modifying the hidden
+ hidden=until-found
attribute 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 hidden=until-found
+ searching for matches, the details
elements and the hidden=until-found
elements should have their contents become skipped again. This entire process must happen
synchronously (and so is not observable to users or to author code).
Run the ancestor details revealing algorithm on node.
Run the ancestor hidden-until-found revealing algorithm on +
Run the ancestor hidden=until-found revealing algorithm on node.
Scroll node into
@@ -89239,7 +89239,7 @@ new PaymentRequest(…); // Allowed to use
Run the ancestor details revealing algorithm on target. Run the ancestor hidden-until-found revealing algorithm on
+ Run the ancestor hidden=until-found revealing algorithm on
target. Scroll target into view,
@@ -126309,7 +126309,7 @@ INSERT INTERFACES HERE
All HTML elements may have the The When an element has the value User agents must use content-visibility:hidden instead of display:none when the hidden attribute is User agents must use content-visibility:hidden instead of display:none when the hidden
+ attribute is Since hidden=until-found uses content-visibility:hidden instead of display:none, the hidden element must be display:block and will have a generated box unlike display:none. Since hidden=until-found uses content-visibility:hidden instead of
+ display:none, the hidden element must be display:block and will have a generated box unlike display:none. The ancestor hidden=until-found revealing algorithm is to run the following steps on
currentNode: If currentNode has the If currentNode has the Fire an event named Remove the Remove the When find-in-page begins searching for matches, all When find-in-page chooses a new active match, perform
the following steps: User agents must use content-visibility:hidden instead of display:none when the hidden
- attribute is User agents are expected to use content-visibility:hidden instead of display:none when the
+ hidden attribute is Since hidden=until-found uses content-visibility:hidden instead of
- display:none, the hidden element must be display:block and will have a generated box unlike display:none. The ancestor hidden=until-found revealing algorithm is to run the following steps on
From b411034cc496f7fc9b32a20aea109f562b23123a Mon Sep 17 00:00:00 2001
From: Joey Arhar Queue a global task on the user interaction task source given
- node's relevant global object to run the following steps: Run the ancestor details revealing algorithm on node. Run the ancestor details revealing algorithm on node. Run the ancestor hidden=until-found revealing algorithm on
- node. Run the ancestor hidden=until-found revealing algorithm on
+ node. Scroll node into
- view. Scroll node into
+ view.
From 7aace23f566b972afb3aa37f150dc013f6b3efc8 Mon Sep 17 00:00:00 2001
From: Joey Arhar All HTML elements may have the When an element is 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 have the When an element is in the hidden until found
+ state, it indicates that the element is hidden like the hidden state but the content inside the element should 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 is expected to remove the User agents are expected to use content-visibility:hidden instead of display:none when the
+ hidden attribute is Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
@@ -74678,6 +74721,10 @@ END:VCARD
have to take care when writing their style sheets to make sure that the attribute is still styled
as expected. Since hidden=until-found uses content-visibility:hidden instead of
+ display:none, the hidden element is expected to be display:block and will have a generated box unlike display:none. In the following skeletal example, the attribute is used to hide the web game's main screen
@@ -74754,25 +74801,6 @@ END:VCARD
The When an element has the value User agents are expected to use content-visibility:hidden instead of display:none when the
- hidden attribute is Since hidden=until-found uses content-visibility:hidden instead of
- display:none, the hidden element is expected to be display:block and will have a generated box unlike display:none. The ancestor hidden=until-found revealing algorithm is to run the following steps on
currentNode: If currentNode has the When find-in-page begins searching for matches, all Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
- cancel the effects of the Since hidden=until-found uses content-visibility:hidden instead of
- display:none, the hidden element is expected to be display:block and will have a generated box unlike display:none. Since hidden=until-found uses 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 should be affected by layout containment in order
+ to be hidden. This means that the element in the hidden until found state shouldn't have a display
+ value of none, contents, or span for example. The element will still have a generated box when in the hidden until found state, which means that
+ borders, margin, and padding will still be rendered around the element. When an element is 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 have
- the The attribute may be omitted. The invalid value default
+ is the hidden state. The missing value default is the visible state. When an element is 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
From 206a8029c923f0378c6ff834255786a192f49870 Mon Sep 17 00:00:00 2001
From: Joey Arhar The element should be affected by layout containment in order
to be hidden. This means that the element in the hidden until found state shouldn't have a display
- value of none, contents, or span for example. The element will still have a generated box when in the
Date: Thu, 27 Jan 2022 13:45:35 -0800
Subject: [PATCH 20/65] remove second should in note
---
source | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/source b/source
index cc5c183bda4..fed8a7eeddb 100644
--- a/source
+++ b/source
@@ -74726,11 +74726,12 @@ END:VCARD
state: The element should be affected by layout containment in order
- to be hidden. This means that the element in the hidden until found state is discouraged from
- having a display value of none, contents, or span for example. If a hidden until found element is
+ not affected by layout containment, then it
+ will not be hidden. hidden until found
+ elements are discouraged from being unaffected by layout containment. For example, having a
+ display value of none, contents, or span is discouraged. The element will still have a generated box when in the
Date: Thu, 27 Jan 2022 13:55:34 -0800
Subject: [PATCH 21/65] add dfn for not hidden state
---
source | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/source b/source
index fed8a7eeddb..1feff189722 100644
--- a/source
+++ b/source
@@ -74686,7 +74686,8 @@ END:VCARD
The attribute may be omitted. The invalid value default
is the hidden state. The missing value default is the visible state. When an element is in the hidden state, it
indicates that the element is not yet, or is no longer, directly relevant to the page's current
From e8d2b9a3e2fa992b1eed3080c991be31a9d2cd17 Mon Sep 17 00:00:00 2001
From: Joey Arhar User agents are expected to use content-visibility:hidden instead of display:none when the
- hidden attribute is User agents that support CSS will use 'content-visibility: hidden' instead of 'display: none'
+ when the Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
From 90e266ce9abb418f0592d37bd5ffa005818d2a71 Mon Sep 17 00:00:00 2001
From: Joey Arhar Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
- cancel the effects of the Since hidden=until-found uses 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: Since elements with the If a hidden until found element is
From d18bd7ba22cdfd8c4d98e938bdcfa676887f1bd0 Mon Sep 17 00:00:00 2001
From: Joey Arhar The following term is defined in CSS Containment: If a hidden until found element is
- not affected by layout containment, then it
- will not be hidden. hidden until found
- elements are discouraged from being unaffected by layout containment. For example, having a
- display value of none, contents, or span is discouraged. The element needs to be affected by layout containment in order to be
+ hidden. This means that the element in the hidden
+ until found state can't have a 'display' value of 'none', or 'contents' for
+ example. The element will still have a generated box when in the
Date: Thu, 27 Jan 2022 14:24:27 -0800
Subject: [PATCH 27/65] hidden=until-found -> hidden attribute in the hidden
until found state
---
source | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/source b/source
index bc3cc281872..1b187566b64 100644
--- a/source
+++ b/source
@@ -77856,13 +77856,15 @@ body { display:none }
skipped contents of their second slot become accessible,
without modifying the When find-in-page chooses a new active match, perform
the following steps: The If value is Otherwise, if value is truthy, return true. Otherwise, return false. The If value is Otherwise, if value is truthy, then set the hidden attribute to the empty
+ string. Otherwise, remove the hidden attribute. The ancestor hidden=until-found revealing algorithm is to run the following steps on
currentNode: If value is If value is in the until-found state, then return
Otherwise, if value is truthy, return true. If value is in the until-found state, then return
- Otherwise, if value is truthy, return true. Otherwise, if the Otherwise, return false. Otherwise, if value is truthy, then set the hidden attribute to the empty
- string. Otherwise, if value is truthy, then set the Otherwise, remove the hidden attribute. Since elements with the Otherwise, if value is truthy, then set the Otherwise, remove the hidden attribute. Otherwise, remove the The ancestor hidden=until-found revealing algorithm is to run the following steps on
From 0bb2751cd221882f1b8f565a6d22c71465172e64 Mon Sep 17 00:00:00 2001
From: Joey Arhar If currentNode has the If currentNode has the Fire an event named If value is Otherwise, if value is truthy, then set the Run the ancestor hidden=until-found revealing algorithm on
node. Scroll node into
- view. When an element is 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 When an element is in the hidden until found
- state, it indicates that the element is hidden like the hidden state but the content inside the element should 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 to remove the When an element has the Otherwise, if the If the Otherwise, return false. Return false. The When an element has the User agents that support CSS will use 'content-visibility: hidden' instead of 'display: none'
- when the Because this attribute is typically implemented using CSS, it's also possible to
- override it using CSS. For instance, a rule that applies 'display: block' to all elements will
- cancel the effects of the hidden state. Authors
- therefore have to take care when writing their style sheets to make sure that the attribute is
- still styled as expected. In addition, user agents which don't support the hidden until found state will have 'display: none'
- instead of 'content-visibility: hidden', so authors are encouraged to make sure that their style
- sheets don't change the 'display' or 'content-visibility' properties of hidden until found elements. Because this attribute is typically implemented using CSS, it's also possible to override it
+ using CSS. For instance, a rule that applies 'display: block' to all elements will cancel the
+ effects of the hidden state. Authors therefore
+ have to take care when writing their style sheets to make sure that the attribute is still styled
+ as expected. In addition, user agents which don't support the hidden until found state will have 'display: none'
+ instead of 'content-visibility: hidden', so authors are encouraged to make sure that their style
+ sheets don't change the 'display' or 'content-visibility' properties of hidden until found elements. Since elements with the The If value is in the If the Otherwise, if value is truthy, then set the Otherwise, if value is false, then remove the Otherwise, remove the Otherwise, if value is the empty string, then remove the Otherwise, set the The ancestor hidden=until-found revealing algorithm is to run the following steps on
From 95042f19ec519674d485ba805d7520249153c70c Mon Sep 17 00:00:00 2001
From: Joey Arhar Otherwise, if value is the empty string, then remove the Otherwise, if value is null, then remove the Otherwise, set the The attribute may be omitted. The invalid value default
is the hidden state. The missing value default is the not
- hidden state. When an element has the The ancestor hidden=until-found revealing algorithm is to run the following steps on
+ The ancestor hidden-until-found revealing algorithm is to run the following steps on
currentNode: Run the ancestor details revealing algorithm on node. Run the ancestor hidden=until-found revealing algorithm on
+ Run the ancestor hidden-until-found revealing algorithm on
node. Run the ancestor details revealing algorithm on target. Run the ancestor hidden=until-found revealing algorithm on
+ Run the ancestor hidden-until-found revealing algorithm on
target. Scroll target into view,
From d043b7745fe4d90773236a2af6abb95ffb12c39f Mon Sep 17 00:00:00 2001
From: Joey Arhar If currentNode has the Fire an event named If value is If value is an ASCII case-insensitive match for " Otherwise, if value is false, then remove the If value is an ASCII case-insensitive match for " If value is an ASCII case-insensitive match for " If the If the If the Return false. If value is an ASCII case-insensitive match for " Otherwise, if value is false, then remove the The following term is defined in CSS Containment: The following terms are defined in CSS Containment: The following term is defined in CSS Containment: When an element has the Web browsers will use 'content-visibility: hidden' instead of 'display: none' when the Web browsers will use 'content-visibility: hidden' instead of 'display: none' when the The element will still have a generated box when in the hidden until found state, which means that
- borders, margin, and padding will still be rendered around the element. The element will still have a generated box when in
+ the hidden until found state, which means
+ that borders, margin, and padding will still be rendered around the element. The attribute may be omitted. The invalid value default
From ec6f978e153b0f691d79685d4dc3f38a9d7839bd Mon Sep 17 00:00:00 2001
From: Joey Arhar The The If the Return false. The The If value is an ASCII case-insensitive match for " If the given value is a string that is an ASCII case-insensitive match for
+ " Otherwise, if value is false, then remove the Otherwise, if the given value is false, then remove the Otherwise, if value is the empty string, then remove the Otherwise, if the given value is the empty string, then remove the Otherwise, if value is null, then remove the Otherwise, if the given value is null, then remove the Otherwise, set the The element needs to be affected by layout containment in order to be
- hidden. This means that the element in the hidden
- until found state can't have a 'display' value of 'none', or 'contents' for
- example. The element will still have a generated box when in
the hidden until found state, which means
From fa64e8c21402ce1f1a1f9d068e4013d844c0874e Mon Sep 17 00:00:00 2001
From: Joey Arhar Otherwise, if the given value is null, then remove the Otherwise, if the given value is 0, then remove the Otherwise, if the given value is NaN, then remove the Otherwise, set the Web browsers will use 'content-visibility: hidden' instead of 'display: none' when the beforematch
Event
Elements
- Fired on elements with the hidden=until-found attribute before they are
+ Fired on elements with the hidden=until-found
attribute before they are
revealed.
From 12cbbda151a428fc0f0b0f84885ca8174e722d60 Mon Sep 17 00:00:00 2001
From: Joey Arhar The
hidden
attributehidden
content attribute set. When specified
- on an element, 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 have the hidden
attribute specified. This
+ data-x="attr-hidden">hidden content attribute set. When specified on an element, 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 have the hidden
attribute specified. This
requirement may be implemented indirectly through the style layer. For example, an HTML+CSS user
agent could implement these requirements using the rules suggested in the
Rendering section.hidden
IDL
attribute must reflect the content attribute of the same name."until-found"
for the hidden attribute, the content inside the element should be accessible to
- find-in-page and When an element has the value "until-found"
for the hidden attribute, the content
+ inside the element should 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 must
- remove the hidden
attribute in order to reveal the content before scrolling to
+ target which is in the element's subtree, the user agent must remove the hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the hidden
element before the
- hidden
attribute is removed.hidden
element before the hidden
+ attribute is removed.
- "until-found"
, as specified in the Rendering section."until-found"
, as specified in the Rendering section.
hidden=until-found
attribute, then run
- the following steps:hidden=until-found
attribute, then run the following
+ steps:
beforematch
at currentNode.hidden
attribute from currentNode.hidden
attribute from
+ currentNode.window.find()
API.
- Interaction with
+ details
and hidden=until-found
Interaction with
details
and hidden=until-found
details
elements in the page
which do not have their open
attribute set should have
the skipped contents of their second slot become
accessible, without modifying the open
attribute, in
- order to make find-in-page able to search through it. Similarly, all HTML elements with the
- hidden=until-found
attribute 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 hidden=until-found
- elements should have their contents become skipped again. This entire process must happen
- synchronously (and so is not observable to users or to author code). hidden=until-found
attribute 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
+ hidden=until-found
elements should have their
+ contents become skipped again. This entire process must happen synchronously (and so is not
+ observable to users or to author code).
beforematch
Event
Elements
- Fired on elements with the hidden=until-found
attribute before they are
+ Fired on elements with the hidden=until-found
attribute before they are
revealed.
From 0d6b2eb9cf1f74e993cd796f3acda8a8f16e51a8 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
beforematch is also fired on the hidden
element before the hidden
attribute is removed.
- "until-found"
, as specified in the Rendering section."until-found"
, as specified in
+ the Rendering section.
-
+
+
+ The
hidden
attributehidden
content attribute set. When specified on an element, it
+ data-x="attr-hidden">hidden content attribute set. The hidden
attribute is an enumerated attribute. The
+ following table lists the states for this attribute:
+
+
+
+
+
+ State
+ Keywords
+ Notes
+
+ Until found state
+ until-found
+
+
+ Hidden state
+ Anything besides until-found
+ If the attribute is set and has any value other than until-found
, it is in the hidden state.
+
+ Visible state
+ hidden
attribute not present
+ If the hidden
attribute is not set at all on the element, it is in the visible
+ state.
+ hidden
attribute specified. This
- requirement may be implemented indirectly through the style layer. For example, an HTML+CSS user
- agent could implement these requirements using the rules suggested in the
- Rendering section.hidden
attribute specified. This requirement may be
+ implemented indirectly through the style layer. For example, an HTML+CSS user agent could
+ implement these requirements using the rules suggested in the Rendering
+ section.hidden
+ attribute in order to reveal the content before scrolling to it. In addition to removing the hidden
attribute, an event named beforematch is also fired on the hidden
element before the hidden
+ attribute is removed."until-found"
, as
+ specified in the Rendering section.hidden
IDL
attribute must reflect the content attribute of the same name."until-found"
for the hidden attribute, the content
- inside the element should 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 is expected to remove the hidden
attribute in order to reveal the content before scrolling to
- it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the hidden
element before the hidden
- attribute is removed."until-found"
, as specified in
- the Rendering section.
hidden=until-found
attribute, then run the following
+ data-x="attr-hidden-until-found-state">hidden=until-found attribute, then run the following
steps:
@@ -77798,18 +77826,18 @@ body { display:none }
data-x="">window.find() API.
Interaction with
+ data-x="attr-hidden-until-found-state">hidden=until-found
details
and hidden=until-found
details
elements in the page
- which do not have their open
attribute set should have
- the skipped contents of their second slot become
- accessible, without modifying the open
attribute, in
- order to make find-in-page able to search through it. Similarly, all HTML elements with the hidden=until-found
attribute should have their open attribute set should have the
+ skipped contents of their second slot become accessible,
+ without modifying the open
attribute, in order to make
+ find-in-page able to search through it. Similarly, all HTML elements with the hidden=until-found
attribute 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
- hidden=until-found
elements should have their
+ hidden=until-found
elements should have their
contents become skipped again. This entire process must happen synchronously (and so is not
observable to users or to author code). Event
Elements
Fired on elements with the hidden=until-found
attribute before they are
+ data-x="attr-hidden-until-found-state">hidden=until-found attribute before they are
revealed.
From ca6d5344963489c75f6b44cddab9415cad2e6689 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute. Authors therefore
- have to take care when writing their style sheets to make sure that the attribute is still styled
- as expected.hidden
state. Authors
+ therefore have to take care when writing their style sheets to make sure that the attribute is
+ still styled as expected.
-
+
+ hidden
attribute specified. This requirement may be
+ 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 indirectly through the style layer. For example, an HTML+CSS user agent could
implement these requirements using the rules suggested in the Rendering
section.
State
Keywords
- Notes
Until found state
until-found
- Hidden state
- Anything besides until-found
- If the attribute is set and has any value other than until-found
, it is in the hidden state.
+ Hidden state
+ The empty string
- Visible state
- hidden
attribute not present
- If the hidden
attribute is not set at all on the element, it is in the visible
- state.
+ hidden
+
-
hidden
- attribute in order to reveal the content before scrolling to it. In addition to removing the hidden
attribute in
+ order to reveal the content before scrolling to it. In addition to removing the hidden
attribute, an event named beforematch is also fired on the hidden
element before the hidden
From e701e985c74e2dc344f5cb1178a1a2a8c8c63efb Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute is removed."until-found"
, as
- specified in the Rendering section.hidden
attribute is in the hidden until found state, as specified in the Rendering section.hidden
state. Authors
+ cancel the effects of the hidden state. Authors
therefore have to take care when writing their style sheets to make sure that the attribute is
still styled as expected.hidden
attribute in the 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:
+
+
+
@@ -74729,12 +74736,10 @@ END:VCARD
from the hidden state:
-
open
attribute, in order to make
find-in-page able to search through it. Similarly, all HTML elements with the hidden=until-found
attribute 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
- hidden=until-found
elements should have their
- contents become skipped again. This entire process must happen synchronously (and so is not
- observable to users or to author code). hidden
attribute in the 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).
open
attribute, in order to make
find-in-page able to search through it. Similarly, all HTML elements with the hidden until found
state should have their hidden attribute in the 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
From 1cb11b2f2986233a6bad886ba9536f69b127f521 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
IDL
- attribute must reflect the content attribute of the same name.
+
+
+ "until-found"
, then return
+ "until-found"
.hidden
IDL attribute has the following setter steps when
+ set to value:
+
"until-found"
, then set the hidden attribute to
+ "until-found"
.
-
From 8fe8e25fd42df9ad7b87ae7f99b8efcdc001c9ab Mon Sep 17 00:00:00 2001
From: Joey Arhar "until-found"
, then return
+ "until-found"
.
@@ -74842,8 +74843,8 @@ END:VCARD
data-x="attr-hidden-until-found-keyword">"until-found", then set the hidden attribute to
"until-found"
."until-found"
.
- hidden
attribute is set, return
+ true."until-found"
.
- hidden
attribute to the empty string.hidden
attribute in the
Date: Wed, 2 Mar 2022 11:26:10 -0800
Subject: [PATCH 34/65] add code around hidden
---
source | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source b/source
index 2107d3714e5..6ec7b51f3e2 100644
--- a/source
+++ b/source
@@ -74914,7 +74914,7 @@ END:VCARD
hidden
attribute to the empty string.hidden
attribute.
From 064105d6d4a078f4af757f66653a93ba2b8f1fac Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden=until-found
attribute, then run the following
- steps:hidden
attribute in the
+ hidden until found state, then run the
+ following steps:
Date: Wed, 2 Mar 2022 13:05:25 -0800
Subject: [PATCH 36/65] move quote marks outside of code
---
source | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source b/source
index 42e504cf12a..c8b17121865 100644
--- a/source
+++ b/source
@@ -74909,7 +74909,7 @@ END:VCARD
"until-found"
, then set the hidden attribute to
- "until-found"
.until-found
".hidden
attribute to the empty string.hidden state
. This requirement may be
- implemented indirectly through the style layer. For example, an HTML+CSS user agent could
- implement these requirements using the rules suggested in the Rendering
- section.hidden
attribute in
- order to reveal the content before scrolling to it. In addition to removing the hidden
attribute, an event named beforematch is also fired on the 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
+ indirectly through the style layer. For example, an HTML+CSS user agent could implement these
+ requirements using the rules suggested in the Rendering section.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 should 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 to remove the hidden
attribute in order to reveal the content before scrolling to
+ it. In addition to removing the hidden
attribute, an event named
+ beforematch is also fired on the hidden
element before the hidden
attribute is removed."until-found"
.hidden
attribute is set, return
- true.hidden
attribute is set, return true.hidden
IDL attribute has the following setter steps when
From e380a5009d05d9e929e1d313e6e798e5990c7900 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden state
. This requirement may be implemented
- indirectly through the style layer. For example, an HTML+CSS user agent could implement these
- requirements using the rules suggested in the Rendering section.hidden
attribute in the hidden until found state, it indicates that the
@@ -74781,8 +74781,8 @@ END:VCARD
data-x="attr-hidden">hidden element before the hidden
attribute is removed.hidden
attribute is in the Web browsers will use 'content-visibility: hidden' instead of 'display: none' when the hidden
attribute is in the hidden until found state, as specified in the Rendering section.hidden
attribute in the hidden until found state use 'content-visibility:
hidden' instead of 'display: none', there are two caveats of the
Date: Tue, 8 Mar 2022 12:02:44 -0800
Subject: [PATCH 42/65] remove variable from idl setter steps
---
source | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source b/source
index 2fb6d0bf8e7..2ee7f4a1722 100644
--- a/source
+++ b/source
@@ -74891,10 +74891,10 @@ END:VCARD
hidden
IDL
- attribute has the following getter steps given the current attribute value:
-
hidden
attribute is in the until-found state, then return "until-found"
.until-found
".
- hidden
attribute to the empty string.hidden
attribute.hidden
attribute.hidden
attribute.hidden
attribute to the empty
+ string.hidden
attribute.hidden
attribute.hidden
attribute to the empty
string.hidden
attribute in the hidden state, it indicates that the element is not yet, or
@@ -74774,7 +74774,7 @@ END:VCARD
element is hidden like the hidden state but the
content inside the element should 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 to remove the hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
beforematch is also fired on the
Date: Tue, 8 Mar 2022 14:29:14 -0800
Subject: [PATCH 46/65] replace = with - in algorithm name
---
source | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/source b/source
index a79dedff3fe..7f04855adac 100644
--- a/source
+++ b/source
@@ -74924,7 +74924,7 @@ END:VCARD
string.
@@ -77981,7 +77981,7 @@ body { display:none }
@@ -89420,7 +89420,7 @@ new PaymentRequest(…); // Allowed to use
hidden
attribute in the
- hidden until found state, then run the
- following steps:
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
From 5d51c96d7792612a6e4aff6c689f7e2c3d901401 Mon Sep 17 00:00:00 2001
From: Joey Arhar
-
@@ -74908,8 +74909,9 @@ END:VCARD
"until-found"
, then set the hidden attribute to
+ until-found
", then set the hidden attribute to
"until-found
".
Date: Wed, 9 Mar 2022 14:07:44 -0800
Subject: [PATCH 49/65] wrap ascii case insensitive in span
---
source | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source b/source
index 4f9a736e1d9..66d85920972 100644
--- a/source
+++ b/source
@@ -74907,7 +74907,7 @@ END:VCARD
set to value:
-
until-found
", then set the hidden attribute to
"until-found
".
state, then return "hidden
attribute is in the until-found state, then return "until-found"
.until-found
".hidden
attribute is set, return true.hidden
attribute is set, then return
+ true.
until-found
", then set the hidden attribute to
- "until-found
".hidden
attribute to "until-found
".hidden
attribute.
onauxclick
onbeforematch
onblur
*oncancel
oncanplay
onabort
abort
onauxclick
auxclick
+ onbeforematch
beforematch
oncancel
cancel
oncanplay
canplay
oncanplaythrough
canplaythrough
@@ -96853,6 +96855,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnl
interface mixin GlobalEventHandlers {
attribute EventHandler onabort;
attribute EventHandler onauxclick;
+ attribute EventHandler onbeforematch;
attribute EventHandler onblur;
attribute EventHandler oncancel;
attribute EventHandler oncanplay;
@@ -125070,6 +125073,12 @@ interface External {
afterprint
event handler for Window
object
Event handler content attribute
+
+ onbeforematch
+ HTML elements
+ beforematch
event handler
+ Event handler content attribute
+
onbeforeprint
body
From cb88ab9990be5b87957930476a7589bf07b399ae Mon Sep 17 00:00:00 2001
From: Joey Arhar
-
-
From 39db0dc1b47bed104d4c706e1985e2d57dfed971 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden state
. This requirement may be implemented
+ User agents should not render elements that are in the 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.
From ecd4a326ee90d66d70f851f64bd7b99c3221e74a Mon Sep 17 00:00:00 2001
From: Joey Arhar 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 should be accessible to find-in-page and 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 in order to reveal the content before scrolling to
From c173bd42290f4fcd5fd78599ad54687859e57b98 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the hidden
element before the hidden
+ beforematch is also fired on the hidden element before the hidden
attribute is removed.
Date: Tue, 15 Mar 2022 13:20:21 -0700
Subject: [PATCH 56/65] remove extra hidden
---
source | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/source b/source
index f168a40a810..53a64b44cca 100644
--- a/source
+++ b/source
@@ -75047,9 +75047,8 @@ END:VCARD
target which is in the element's subtree, the user agent will remove the
hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the hidden element before the hidden
- attribute is removed.hidden
attribute is removed.
hidden
attribute is in the
Date: Tue, 15 Mar 2022 13:30:47 -0700
Subject: [PATCH 57/65] use external resource for visibility
---
source | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/source b/source
index 53a64b44cca..ccfc6ed15ea 100644
--- a/source
+++ b/source
@@ -75079,10 +75079,9 @@ END:VCARD
until found state can't have a 'display' value of 'none', or 'contents' for
example.
Until found state
- until-found
+ until-found
Hidden state
The empty string
- hidden
+ hidden
hidden
IDL
- attribute has the following getter steps:hidden
getter steps
+ are:
- hidden
attribute is in the
hidden
IDL attribute has the following setter steps when
- set to value:hidden
setter steps are:
-
From c9bdf9689d34e9e900aa42b200bf48099aa2f864 Mon Sep 17 00:00:00 2001
From: Joey Arhar until-found
", then set the until-found
", then set the hidden
attribute to "until-found
".hidden
attribute.hidden
attribute.hidden
attribute.hidden
attribute to the empty
From 16ceccc1b2c113be7687dec1b7d158afd0d7c211 Mon Sep 17 00:00:00 2001
From: Joey Arhar hidden
attribute in the 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
+ data-x="skips its contents">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
From 383e976e72326589604be4590d44bc56ca1072d4 Mon Sep 17 00:00:00 2001
From: Joey Arhar
hidden
attribute.hidden
attribute.hidden
attribute.hidden
attribute to the empty
string.hidden
attribute in order to reveal the content before scrolling to
it. In addition to removing the hidden
attribute, an event named
- beforematch is also fired on the element before the beforematch
is also fired on the element before the hidden
attribute is removed.
Date: Wed, 16 Mar 2022 16:29:32 -0700
Subject: [PATCH 65/65] move question mark outside parenthesis
---
source | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source b/source
index f4e58e1fa07..ff21f8f6b4f 100644
--- a/source
+++ b/source
@@ -10407,7 +10407,7 @@ interface HTMLElement : Element {
[CEReactions] attribute DOMString dir;
// user interaction
- [CEReactions] attribute (boolean or unrestricted double or DOMString?) hidden;
+ [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden;
[CEReactions] attribute boolean inert;
undefined click();
[CEReactions] attribute DOMString accessKey;