Skip to content

Commit effecbe

Browse files
pjelaymonage
andcommitted
Update type of HTMLElement.hidden
It can now be `"until-found"`: 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 Co-authored-by: Sage Abdullah <[email protected]>
1 parent 4792f8a commit effecbe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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
*

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)