Skip to content

Commit 7bf16e7

Browse files
pjelaymonage
andcommitted
Add "until-found" to HTMLElement.hidden
Ref: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden#until-found This has now got support from Chrome and Firefox: https://caniuse.com/wf-hidden-until-found Will also land in Safari: https://bugs.webkit.org/show_bug.cgi?id=238266 Co-authored-by: Sage Abdullah <[email protected]>
1 parent 4792f8a commit 7bf16e7

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15996,7 +15996,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
1599615996
*
1599715997
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
1599815998
*/
15999-
hidden: boolean;
15999+
hidden: boolean | "until-found";
1600016000
/**
1600116001
* The HTMLElement property **`inert`** reflects the value of the element's inert attribute. It is a boolean value that, when present, makes the browser "ignore" user input events for the element, including focus events and events from assistive technologies. The browser may also ignore page search and text selection in the element. This can be useful when building UIs such as modals where you would want to "trap" the focus inside the modal when it's visible.
1600216002
*

baselines/ts5.5/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15980,7 +15980,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
1598015980
*
1598115981
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
1598215982
*/
15983-
hidden: boolean;
15983+
hidden: boolean | "until-found";
1598415984
/**
1598515985
* The HTMLElement property **`inert`** reflects the value of the element's inert attribute. It is a boolean value that, when present, makes the browser "ignore" user input events for the element, including focus events and events from assistive technologies. The browser may also ignore page search and text selection in the element. This can be useful when building UIs such as modals where you would want to "trap" the focus inside the modal when it's visible.
1598615986
*

baselines/ts5.6/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15993,7 +15993,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
1599315993
*
1599415994
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
1599515995
*/
15996-
hidden: boolean;
15996+
hidden: boolean | "until-found";
1599715997
/**
1599815998
* The HTMLElement property **`inert`** reflects the value of the element's inert attribute. It is a boolean value that, when present, makes the browser "ignore" user input events for the element, including focus events and events from assistive technologies. The browser may also ignore page search and text selection in the element. This can be useful when building UIs such as modals where you would want to "trap" the focus inside the modal when it's visible.
1599915999
*

baselines/ts5.9/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15993,7 +15993,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
1599315993
*
1599415994
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
1599515995
*/
15996-
hidden: boolean;
15996+
hidden: boolean | "until-found";
1599715997
/**
1599815998
* The HTMLElement property **`inert`** reflects the value of the element's inert attribute. It is a boolean value that, when present, makes the browser "ignore" user input events for the element, including focus events and events from assistive technologies. The browser may also ignore page search and text selection in the element. This can be useful when building UIs such as modals where you would want to "trap" the focus inside the modal when it's visible.
1599915999
*

inputfiles/overridingTypes.jsonc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@
308308
"properties": {
309309
"property": {
310310
"hidden": {
311-
// https://github.com/whatwg/html/pull/7475
312-
// Blink only as of 2024-11
313-
"overrideType": "boolean",
311+
"overrideType": "boolean | \"until-found\"",
314312
"nullable": false
315313
}
316314
}

0 commit comments

Comments
 (0)