WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
187808
CSS rule not applied for non-button elements with -webkit-appearance set to 'button'
https://bugs.webkit.org/show_bug.cgi?id=187808
Summary
CSS rule not applied for non-button elements with -webkit-appearance set to '...
Yogesh Mangaj
Reported
2018-07-19 09:28:25 PDT
Created
attachment 345351
[details]
Screenshot across multiple webkit based browser vs Firefox gecko CSS rule that changes background is not being applied for on a non-button element. To reproduce, use the following example (available at
https://next.plnkr.co/edit/wYsCEVvT3eJgSRre?preview
) - HTML: ``` <div class="btn" type="submit">Hello world</div> <button class="btn" type="submit">Hello world</div> ``` CSS: ``` [type="submit"].btn { background-color: red; } [type="submit"] { -webkit-appearance: button; } ``` The div.btn does not have a red background, expected that it should have a red background.
Attachments
Screenshot across multiple webkit based browser vs Firefox gecko
(151.23 KB, image/jpeg)
2018-07-19 09:28 PDT
,
Yogesh Mangaj
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Simon Pieters (:zcorpan)
Comment 1
2019-01-23 12:27:30 PST
background-color only disables appearance on actual buttons, not divs. I think this is reasonable/by design. If you want the 'none' appearance on a div, don't set it to 'button'.
Brent Fulgham
Comment 2
2022-07-15 13:32:48 PDT
We believe the current behavior is correct. If standards have been changed recently, please REOPEN this bug with relevant details.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug