Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,34 @@ <h1>GitHub Feature Support Table</h1>
<td data-supported="true"><div>34+</div></td>
<td data-supported="true"><div>5.0+</div></td>
</tr>
<tr>
<th>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover">
<code>HTMLElement.popover</code>
</a>
</th>
<td data-polyfill="popover"><div>*</div></td>
<td data-supported="true"><div>114+</div></td>
<td data-supported="true"><div>114+</div></td>
<td data-supported="true"><div>125+</div></td>
<td data-supported="true"><div>17+</div></td>
<td data-supported="true"><div>100+</div></td>
<td data-supported="true"><div>23.0+</div></td>
</tr>
<tr>
<th>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover">
<code>HTMLElement.popover = 'hint'</code>
</a>
</th>
<td data-polyfill="popover"><div>*</div></td>
<td data-supported="true"><div>114+</div></td>
<td data-supported="true"><div>114+</div></td>
<td data-supported="true"><div>125+</div></td>
<td data-supported="true"><div>17+</div></td>
<td data-supported="true"><div>+</div></td>
<td data-supported="true"><div>12.0+</div></td>
</tr>
<tr>
<th></th>
<th colspan="7"><h3>Native Syntax</h3></th>
Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -49,6 +50,7 @@ export const polyfills = {
navigatorClipboard,
requestIdleCallback,
withResolvers,
popover,
}

export function isSupported() {
Expand Down
Loading