Is there any way to set up a conic-gradient background that would, due to lack of support, have a regular linear gradient as fallback in Firefox, IE, Safari, etc.? Any way I try to set this up, the linear gradient overrides the conic in Chrome.
Conic-gradient with linear gradients as fallback
982 Views Asked by Ellen At
2
There are 2 best solutions below
0
Kaiido
On
Note that that must have been a bug in a previous version of Chrome, with today's v.75 the simple and expected cascading works perfectly in Chrome and fallbacks correctly in browsers with no support:
.box {
width: 300px;
height: 200px;
background: linear-gradient(red, blue);
background: conic-gradient(red, blue, red);
position: relative;
z-index: 0;
}
<div class="box">
</div>
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in CSS
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in LINEAR-GRADIENTS
- CSS: How to set up gradient background cross browser (only missing IE8 and IE9)
- Horizontal line with fade out effect
- Assistance with Gradient Background
- Gradient linear css issue (plunker attached
- How to make CSS gradient look smooth?
- How to produce gradients in Konqueror
- How can I draw two lines obliquely with CSS (or SVG)?
- How is a CSS gradient path calculated?
- CSS: How to remove background from img hover?
- LinearGradient fillStyle isn't working
- How to map number specific color from gradient
- Defining angle of the gradient using CAGradientLayer
- CSS3 Gradient issue when applied in same long page
- Rectangle Diagonal Gradient Brush between two points
- CSS Class for linear-gradient
Related Questions in CONIC-GRADIENTS
- Why the result of conical-gradient becomes as blurry as it gets away from the center?
- SVG - Apply conic gradient to SVG using CSS
- Is there any way to animate a conic-gradient in CSS?
- How to merge two parts of conic-gradients in the background?
- Is there a way to add padding or boxshadow to a css conic-gradient section
- How can I use SVG mshpath with JSX?
- How to reduce the size of a css gradient pattern
- How to make the middle of a repeating-conic-gradient transparent?
- How to Draw a circular progress Bar using QML in QT6
- how to center a div between two percentages of a css pie chart (conic-gradient)
- Conic-gradient with linear gradients as fallback
- how to draw dashed and solid vertical lines with css gradient and transparent colors
- Visual Glitch with Conic-Gradient
- Best way to add conic gradient to the circle in SVG
- firefox equivalent of this border hover effect
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
One idea is to consider 2 layers. You make the bottom layer a
linear-gradientthen you consider another one above it with a pseudo element for the conic gradient. If the last one will fall you will only see thelinear-gradient. If not it will cover thelinear-gradient.The below code will show a conic gradient on Chrome and linear gradient on Firefox: