A tool for exploring and creating color palettes
color's Introduction
color's People
Forkers
dariuszo shawnd louderthanten pix3lle wadkar eduardoleao andrew-colman-2 virtuoushub brunocechet kenman79 edba5 thierryc isabella232color's Issues
HTML5 progressbar does not dynamically change in Firefox
Hello, I'd like to report an issue where the progress bar color does not dynamically change in Firefox due to missing CSS properties. It was first reported in webcompat/web-bugs#46522 in 2019, so kudos to @ksy36 and the rest of the Webcompat team.
The progressbar color seems to depend on ::-webkit-progress-value
to determine its background color, which is OK in both WebKit (Safari) and Chromium-based (Chrome, Edge, Opera, etc.) browsers. However, Firefox does not support the property and instead uses its own ::-moz-progress-bar
. And since the ::-moz-progress-bar
property has not been set, Firefox renders the progress bar with the default blue color as shown on the screenshots below.
There's at least a discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1455565 to make ::-webkit-progress-value
an alias of ::-moz-progress-bar
, but the issue has not been followed up. You can change the code in FormBlock.js from:
<Progress
color={currentCombination.color}
border="1px solid currentColor"
css={{
"&[value]::-webkit-progress-bar": {
backgroundColor: "transparent"
},
"&[value]::-webkit-progress-value": {
backgroundColor: currentCombination.color
}
}}
/>
to:
<Progress
color={currentCombination.color}
border="1px solid currentColor"
css={{
"&[value]::-webkit-progress-bar": {
backgroundColor: "transparent"
},
"&[value]::-webkit-progress-value": {
backgroundColor: currentCombination.color
},
"&[value]::-moz-progress-bar": {
backgroundColor: currentCombination.color
}
}}
/>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.