override user agent stylesheet

3,590 views
Skip to first unread message

yuan zhang

unread,
Jun 22, 2012, 11:40:54 PM6/22/12
to chromium...@chromium.org
Sorry for interrupt,?I'm just a amateur.Is there a way to override user agent stylesheet ? Thank you.

yuan zhang

unread,
Jun 22, 2012, 11:44:51 PM6/22/12
to chromium...@chromium.org
Specifically  ,i want to change the defult value of some element in user agent stylesheet,such as background color.
Thanks a lot.

krtulmay

unread,
Jun 23, 2012, 9:48:59 AM6/23/12
to Chromium-discuss
Isn't the point of the user agent stylesheet to be specified by the
user himself and have the highest precedence?

By definition, there should not be any way to programmatically change
or override the user agent stylesheet, correct?

Zachary “Gamer_Z.” Yaro

unread,
Jun 23, 2012, 9:56:20 AM6/23/12
to krtu...@gmail.com, Chromium-discuss

Should you not be able to do that by adding !important to your style declarations?

--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

Peter Beverloo

unread,
Jun 24, 2012, 5:36:00 PM6/24/12
to zmy...@gmail.com, krtu...@gmail.com, Chromium-discuss
As a rough guess: do you want to change the yellow background color of auto-filled input elements? If so, you can star the following issue to stay informed:
http://crbug.com/46543

The user agent stylesheet only sets default values which can almost always be overridden by author or user-specific stylesheets, so all other ways of declaring style rules take precedence. The majority of Chromium's user agent stylesheet can be seen here:

Peter
Reply all
Reply to author
Forward
0 new messages