In order to consistently style some form elements (checkboxes, radio, selects) you need to use javascript. There isn't a way to do specifically what you are looking for cross-browser / platform in ...
Firefox version 128, released on July 9, 2024, supports the CSS '@property' syntax, making it possible to use the '@property' syntax in all major browsers. Web engineer Ryan Mulligan posted a blog ...