From 0b715f2c5dc5880dbe067a888ead862eb2f62860 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Thu, 20 Feb 2025 10:26:07 -0800 Subject: [PATCH 1/3] Add `popover=hint` feature Closes https://github.com/web-platform-dx/web-features/issues/2250 --- features/popover-hint.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 features/popover-hint.yml diff --git a/features/popover-hint.yml b/features/popover-hint.yml new file mode 100644 index 00000000000..92553ae454e --- /dev/null +++ b/features/popover-hint.yml @@ -0,0 +1,4 @@ +name: Popover=hint +description: The `hint` value for the `popover` HTML attribute creates a popover that is "subordinate" to `popover=auto` popovers. Therefore, `popover=hint`'s will not close other `popover=auto`'s. +spec: https://html.spec.whatwg.org/multipage/popover.html#attr-popover-hint +group: html From 51544729ca3ef02386c830ff71bfb1b1ec0f951f Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Fri, 21 Feb 2025 09:14:10 -0800 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Daniel D. Beck --- features/popover-hint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/features/popover-hint.yml b/features/popover-hint.yml index 92553ae454e..20900d8c76b 100644 --- a/features/popover-hint.yml +++ b/features/popover-hint.yml @@ -1,4 +1,7 @@ -name: Popover=hint -description: The `hint` value for the `popover` HTML attribute creates a popover that is "subordinate" to `popover=auto` popovers. Therefore, `popover=hint`'s will not close other `popover=auto`'s. +name: 'popover="hint"' +description: The `popover="hint"` global HTML attribute creates a popover that is subordinate to popovers with a `popover="auto"` attribute. You can use this to create tooltips that don't dismiss `auto` popovers. spec: https://html.spec.whatwg.org/multipage/popover.html#attr-popover-hint group: html +compat_features: + - api.HTMLElement.popover.hint + - html.global_attributes.popover.hint From 84112918247fde1b008ff06acf3a3e9010782b85 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Fri, 21 Feb 2025 09:15:34 -0800 Subject: [PATCH 3/3] Add .dist file --- features/popover-hint.yml.dist | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 features/popover-hint.yml.dist diff --git a/features/popover-hint.yml.dist b/features/popover-hint.yml.dist new file mode 100644 index 00000000000..00300eb69e9 --- /dev/null +++ b/features/popover-hint.yml.dist @@ -0,0 +1,12 @@ +# Generated from: popover-hint.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "133" + chrome_android: "133" + edge: "133" +compat_features: + - api.HTMLElement.popover.hint + - html.global_attributes.popover.hint