Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Add checks for Chromium 91
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Apr 15, 2021
1 parent c64ac18 commit 2282155
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/chromium-detector.js

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

21 changes: 20 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,28 @@ const supportsCSSQuery = (query) => {

// https://chromestatus.com/features
const descriptors = {
90: {
91: {
releaseDate: 'Pre-release',
isPreRelease: true,
tests: [
{
url: 'https://chromestatus.com/feature/5692693659254784',
name: 'CSS custom counter styles',
test: () => {
const $style = document.createElement('style')
$style.innerHTML = '@counter-style custom { system: fixed; symbols: Ⓐ Ⓑ Ⓒ; suffix: " "; }'
document.head.appendChild($style)
const $el = document.createElement('ul')
$el.style.listStyle = 'custom'
const pass = $el.style.listStyle === 'custom'
document.head.removeChild($style)
return pass
}
}
]
},
90: {
releaseDate: '2021-04-14',
tests: [
{
url: 'https://chromestatus.com/feature/5638444178997248',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chromium-detector",
"version": "1.0.6",
"version": "1.0.7",
"description": "Feature detects the running version of Chromium without any UserAgent parsing",
"main": "dist/chromium-detector.js",
"module": "index.js",
Expand Down

0 comments on commit 2282155

Please sign in to comment.