Closed
Bug 595546
Opened 16 years ago
Closed 16 years ago
No possibility to style the submit button when the form is invalid
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
INVALID
People
(Reporter: jk1700, Unassigned)
Details
(Keywords: css3, html5)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100911 Firefox/4.0b6pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100911 Firefox/4.0b6pre
There's an :invalid pseudoclass which allows to style input fields, but there is now way to style the submit button when some fields in the form are invalid.
I think it should be possible by adding support for :invalid for forms (and even for fieldsets), so one could do something like this:
form:invalid input[type="submit"] { -moz-box-shadow: none; }
Reproducible: Always
I've just found -moz-submit-invalid (which actually doesn't work for me as well as :invalid, but I will make some more tests with the next build) so I'm closing this bug, but I still think that having possibility to style form:invalid would be very nice feature and more intuitive and flexible than -moz-submit-invalid
You need to log in
before you can comment on or make changes to this bug.
Description
•