caniuse | Raw browser/feature support data from caniuse.com | Dataset library
kandi X-RAY | caniuse Summary
kandi X-RAY | caniuse Summary
This repo contains raw data from the caniuse.com support tables. It serves two purposes:. The data in this repo is available for use under a CC BY 4.0 license (For attribution just mention somewhere that the source is caniuse.com. If you have any questions about using the data for your project please contact me here:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of caniuse
caniuse Key Features
caniuse Examples and Code Snippets
"browserslist": [
"defaults",
"not IE 11",
"maintained node versions"
]
# Browsers that we support
defaults
not IE 11
maintained node versions
Community Discussions
Trending Discussions on caniuse
QUESTION
I want to use the new CSS cascade layers feature supported by latest versions of Chrome, Firefox, Safari, and Edge (see the support table).
I'm importing a stylesheet from highlight.js.
It has a class named hljs
that applies a background color to elements. I want to override that color with CSS @layer rules:
...
ANSWER
Answered 2022-Mar-15 at 12:28CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, so that we have full control over which styles take priority in a project without relying on specificity.
QUESTION
I understand that pretty much all modern browser support ES6 JavaScript natively at this point. And most desktop and mobile browser auto update to the latest version automatically so there is fairly broad ES6 support now.
However, as best I can tell, some android tablets don't make it easy to upgrade the tablet OS or browser and often only support ES5 JavaScript.
Because of this we require that all website code be ES5. We are currently using VueJs 2.x and use it from a CDN with our ES5 code. And that's been working great even on really old tablets.
We are considering upgrading to VueJS 3.x however it's unclear whether VueJs 3 is available from a CDN as ES5 code. When I looked in this file: https://cdn.jsdelivr.net/npm/vue@3.0.5/dist/vue.global.js I see that it uses the const
keyword and uses =>
so it's clearly ES6 code.
So that leaves me wondering if there is a different CDN file for those of us that still want to support older tables with their older browsers.
More specifically: Is it possible to use VueJs 3 in an ES5 only environment via a CDN?
...ANSWER
Answered 2022-Mar-25 at 17:55Vue3 relies on Proxy
for handling reactivity. Even if you can get around some functionalities, adjusting the core code to use Proxies is a non-trivial endeavor, and is, AFAIK, the main reason that Vue3 does and will not support IE11.
You will either need to continue using Vue2, or alternatives like Svelte that can generate ES5 bundles.
QUESTION
I'm trying to learn about the Meteor build process to improve it's performance for my dockerized Meteor app. I'm finding that if I run meteor build build --directory --server-only
twice, back to back, I get an error about not being able to parse json on the second run.
Here's the successful first run:
...ANSWER
Answered 2022-Mar-23 at 02:22What happens is that you produce your built app but not bundle it (using the --directory
flag).
Therefore you have extra JS files in your file structure.
And in your attempts, they are mixed with your Meteor project structure, in a build
folder (when you use command meteor build build --directory
) or directly merged (meteor build .. --directory
).
Therefore, on the next build run, Meteor picks these extra JS files as if they were part of your source code (eager loading), and fails, as suggested in the warning message:
The output directory is under your source tree. Your generated files may get interpreted as source code! Consider building into a different directory instead meteor build ../output
It would have worked in your next attempt if you had specified an explicit sibling build folder, instead of just the parent folder (which therefore puts files directly in your Meteor project root), e.g. meteor build ../siblingFolder
Another possible workaround is to use a build folder name starting with a dot .
, so that Meteor ignores it on the next runs when it looks for source code, e.g. meteor build ./.build
See special directories docs:
The following directories are also not loaded as part of your app code:
- Files/directories whose names start with a dot, like
.meteor
and.git
QUESTION
I've been waiting to use .webp
images for a very long time.
It's 2022, so, given:
- the image format has existed for a decade
- Chrome started supporting
.webp
in Jan 2014 - Firefox started supporting
.webp
in Jan 2019
I decided the day before yesterday to take the plunge and convert a bunch of .png
images on a website to .webp
images.
Rookie error. Because, of course, I should have checked: https://caniuse.com/webp first and that would have told me that Safari on anything earlier than macOS 11.0 Big Sur (Nov 2020) does not support .webp
images.
But I'm tired of waiting. So... Safari can carry on using .png
images I suppose.
Because I absolutely do want to serve .webp
images to Firefox, Brave, Chrome, Edge, Opera etc. users.
If I were using marked up images, declaring one or more fallback images is elementary:
...ANSWER
Answered 2022-Feb-12 at 00:08In my question I wrote:
If I were using marked-up images, declaring one or more fallback images is elementary [...]
But (sigh) in this instance, the images are CSS background-images, so options for creating fallbacks are more limited
And for now, at least, - ie. while we're still waiting (in 2022) for widespread cross-browser support for the CSS image-set()
function - that's true.
can replace each CSS background-image
While I was hunting around for alternative approaches, I unexpectedly came across this July 2021 comment by Quentin Albert:
For what most people use background images for you can nowadays easily use object-fit + object-position.
Source: https://css-tricks.com/using-performant-next-gen-images-in-css-with-image-set/
This was news to me. I was dimly aware of the object-fit
CSS property, but I'd never come across the object-position
CSS property at all.
But it absolutely works!!
The CSS I would have used ifimage-set()
had support
If image-set()
had extensive cross-browser support, this was my intended CSS, which would enable a fallback image for Safari:
QUESTION
This problem occurs in the Next.js project with Node version 17 I tried a lot of solutions but this solution is the best you can solve this problem if it occurred with you
...ANSWER
Answered 2022-Feb-08 at 12:19First, install cross-env
QUESTION
am facing one issue on gradient css on web and android devices text are visible but on Safari its not showing at all. Please have look on both the screen shots.
I've checked with caniuse.com, and both -webkit-text-fill-color
and background-clip: text
are said to be supported both in Safari/Desktop as well as Safari/iOS.
ANSWER
Answered 2021-Dec-02 at 15:30There is an unresolved, open issue about this on the WebKit Bugzilla since 2017: background-clip:text doesn't work with display:flex. Apple has ignored this bug for 4 years, it will probably never be resolved.
Remove display: flex
and it works:
QUESTION
https://caniuse.com/?search=getusermedia
Based on the link provided above, does Safari 15 support getUserMedia? I trying use it to access camera, when I test it on safari 15 it asked camera permission, after I allow the permission it still show me nothings. The link show Safari 15 is support getUserMedia/Stream API but not support Navigator API: getUserMedia. Below is my code, which one I should refer to? getUserMedia/Stream API or Navigator API: getUserMedia
...ANSWER
Answered 2021-Nov-18 at 12:41You definitely want navigator.mediaDevices.getUserMedia()
method. It definitely works on iOS. The other one is deprecated. Apple is so late to the getUserMedia() party that they did not implement the deprecated API.
You can read about viewing the iOS console. You need to connect your iOS device to a mac, then use the Safari on that mac, to do that. It's a pain in the xxx neck. Explaining how is beyond the scope of a Stack Overflow answer.
Or you can use alert()
for debugging.
You need to call cameraView.play()
at the right moment. Here's the documentation.
It recommends doing something like this.
QUESTION
I am trying to get a brand new cloud based server working with a default version of 20.04 server ubuntu working with apache and node. The node server appears to be running without issues reporting 4006 port is open. However I believe my apache config is not. The request will hang for a very very long time. No errors are displayed in the node terminal. So the fault must lie in my apache config seeing as we are getting the below apache errors and no JS errors.
Request error after some time ...ANSWER
Answered 2021-Oct-20 at 23:51If you use a docker for your node server, then it might be set up incorrectly
QUESTION
Given this code:
...ANSWER
Answered 2021-Oct-14 at 16:42Generally issues with browserslist are due to you not getting the browser versions you expect. It's recommended to update the caniuse database in your project regularly to get latest browser versions for preset-env.
You can do that like so:
QUESTION
I have the following classic SVG code:
...ANSWER
Answered 2021-Sep-15 at 11:28Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install caniuse
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page