Open sunkanmii opened 2 years ago
Although the official doc says that
There is no restriction on which properties apply to the ::file-selector-button pseudo-element.
Animations applied via the CSS animation property don't work.
animation
Here's a sample in case you want to recreate it:
HTML:
<body> <form> <input type="file" accept="image/*"/> </form> <button>Expand</button> </body>
CSS:
body{ display: flex; height: 100vh; width: 100%; background: lightblue; } form{ margin: auto; } ::-webkit-file-upload-button{ font-size: 1.5rem; border: none; background: white; border: 1px solid white; color: black; transition: 1.3s; padding: 1rem 2rem; transform: scale(0.5); animation: expand 5s ease-in infinite; } ::file-selector-button{ font-size: 1.5rem; border: none; background: white; border: 1px solid white; color: black; transition: 1.3s; padding: 1rem 2rem; transform: scale(0.5); animation: expand 5s ease-in infinite; } button{ transform: scale(0.5); animation: expand 5s ease-in infinite; } @keyframes expand { 0%{ transform: scale(0.5); } 50%{ transform: scale(1); } 100%{ transform: scale(0.5) } }
The button shows changes, but the ::file-selector-button does not after testing on Chrome.
button
::file-selector-button
Hello there! I am new to the open source world and would like to contribute to some real-world projects. If this issue is not resolved yet, can I be assigned to it?
Although the official doc says that
Animations applied via the CSS
animation
property don't work.Here's a sample in case you want to recreate it:
HTML:
CSS:
The
button
shows changes, but the::file-selector-button
does not after testing on Chrome.