diff --git a/docs/index.html b/docs/index.html
index 7eec09c..5f82a54 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -545,6 +545,34 @@
GitHub Feature Support Table
34+ |
5.0+ |
+
+
+
+ HTMLElement.popover
+
+ |
+ * |
+ 114+ |
+ 114+ |
+ 125+ |
+ 17+ |
+ 100+ |
+ 23.0+ |
+
+
+
+
+ HTMLElement.popover = 'hint'
+
+ |
+ * |
+ 114+ |
+ 114+ |
+ 125+ |
+ 17+ |
+ + |
+ 12.0+ |
+
|
Native Syntax |
diff --git a/package-lock.json b/package-lock.json
index 75bf520..19c8e7d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,9 @@
"name": "@github/browser-support",
"version": "1.2.2",
"license": "MIT",
+ "dependencies": {
+ "@oddbird/popover-polyfill": "^0.5.2"
+ },
"devDependencies": {
"@github/prettier-config": "^0.0.6",
"@types/node": "^20.5.7",
@@ -671,6 +674,12 @@
"node": ">= 8"
}
},
+ "node_modules/@oddbird/popover-polyfill": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/@oddbird/popover-polyfill/-/popover-polyfill-0.5.2.tgz",
+ "integrity": "sha512-iFrvar5SOMtKFOSjYvs4z9UlLqDdJbMx0mgISLcPedv+g0ac5sgeETLGtipHCVIae6HJPclNEH5aCyD1RZaEHw==",
+ "license": "BSD-3-Clause"
+ },
"node_modules/@pkgr/utils": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz",
diff --git a/package.json b/package.json
index ab428b2..92898b7 100644
--- a/package.json
+++ b/package.json
@@ -44,5 +44,8 @@
"eslint-plugin-github": "^4.10.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
+ },
+ "dependencies": {
+ "@oddbird/popover-polyfill": "^0.5.2"
}
}
diff --git a/src/index.ts b/src/index.ts
index 4c14a1a..30a6c11 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -3,6 +3,7 @@ import * as elementCheckVisibility from './element-checkvisibility.js'
import * as navigatorClipboard from './navigator-clipboard.js'
import * as withResolvers from './promise-withResolvers.js'
import * as requestIdleCallback from './requestidlecallback.js'
+import * as popover from '@oddbird/popover-polyfill/fn'
let supportsModalPseudo = false
try {
@@ -49,6 +50,7 @@ export const polyfills = {
navigatorClipboard,
requestIdleCallback,
withResolvers,
+ popover,
}
export function isSupported() {