Today I learned that the default CSS stylesheets of browser engines are nicely available for reading.

Default `html.css` implementations on different browser engines:
- Chromium source.chromium.org/chromium/c
- Firefox searchfox.org/mozilla-central/
- WebKit trac.webkit.org/browser/trunk/

Found via Thomas Steiner‘s blog post: web.dev/color-scheme/

(Edited 2023-09-11 with a much more up-to-date link to Chromium stylesheet.)

Follow

@autiomaa I keep seeing people link to this 8-year old "Chromium" version from back when Blink was a separate repository. The actual Chromium one is in source.chromium.org/chromium/c .

@domenic Thanks, I need to update that post. Kind of odd, since I found those originally from a Chrome developer's blog post. Apparently mistakes happen.

@domenic Updated the post. Thank you again for the up-to-date URL. 😊

Old was truly ancient...

Sign in to participate in the conversation
Mastodon

a Schelling point for those who seek one