45

Google Chrome has a built-in stylesheet with default margins, paddings, etc.

Is there a posibility to get this "user agent stylesheet" to see what are the default chrome css settings?


I know that I need to override it or use reset style, but I just want to get this chrome built-in css

radzi0_0
  • 1,250
  • 2
  • 14
  • 24
  • 1
    Are you talking about accessing it through javascript or simply viewing it? If its simply viewing it, then go to Tools -> Developer Tools (Shift+Ctrl+I) then click on the Element tab and the Computed Style on the right hand side should show you the default values. – arunkumar Sep 07 '11 at 11:08
  • possible duplicate of [How can I locate the default style sheet for a browser?](http://stackoverflow.com/questions/214378/how-can-i-locate-the-default-style-sheet-for-a-browser) – Piotr Dobrogost Apr 21 '15 at 13:56

1 Answers1

59

Take a look here for Chrome (Blink):

https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/core/html/resources/html.css

For some other browsers: Browsers' default CSS for HTML elements

thirtydot
  • 224,678
  • 48
  • 389
  • 349
  • Not going to -1 since it's inherent in the question to some degree, but this link will likely break at some point or become out of date. – AlexMA Feb 01 '14 at 19:07
  • 5
    @AlexMA: That link is always the most recent revision of `html.css`. It should work for a long time, unless WebKit moves away from Trac. – thirtydot Feb 01 '14 at 23:15