Screen Ruler Add to Chrome

See the CSS rules for any element

Click an element and see the stylesheet rules that style it, grouped by file and in source order, with the declarations that lose the cascade struck through.

What it shows

Computed values tell you what an element looks like. The Source view tells you why. It lists the CSS rules from the page's stylesheets whose selectors match the selected element, written out as the author wrote them:

How to find which CSS rule applies

  1. Open the page and start Screen Ruler by clicking its toolbar icon or pressing Alt + Shift + S (Option + Shift + S on a Mac).
  2. Click the element you want to inspect.
  3. In the side panel's Element tab, find the Code section and change its dropdown from Computed to Source.
  4. Look for the property you care about. The declaration without a strike-through is the one in effect, and the rule's selector and file tell you where to change it.

Screen Ruler remembers the view you chose, so the next element you click opens straight in Source. Each file block has its own copy button.

How it works

Screen Ruler walks the page's stylesheets through the browser's CSS Object Model and checks each rule's selector against the selected element. A few details make the result closer to what the browser really does:

Stylesheets from other domains

Browsers do not let extensions read stylesheets served from another domain, such as a CDN, through the CSS Object Model. When that happens the Source view says how many cross-origin stylesheets were hidden and offers a Grant access link. Granting the optional permission lets Screen Ruler download those stylesheets itself and fold their rules into the view. Without it, those rules are simply missing, and the note tells you so.

Limits

When it is useful

Browse CSS Rules is part of Screen Ruler's Inspect and Studio plans, and every install starts with a free 7-day trial with everything unlocked, no card needed.

Common questions

How is this different from the Styles pane in DevTools?

It answers the same question, with less to wade through. Rules are grouped by stylesheet and listed in source order, media queries are kept as wrappers, and the panel sits next to the page instead of inside DevTools. DevTools is still the more complete reference for cascade edge cases such as layer order.

Why are some rules missing?

The most common reason is a stylesheet on another domain, which the browser hides from extensions. The Source view counts these and offers Grant access so Screen Ruler can load them. Styles inherited from parent elements are also not listed, because they do not match the element itself.

Does it show hover and focus styles?

Yes. Rules for states like :hover and :focus are listed alongside the base rules. They only count as winning declarations when you force that state on the element.

Does it show styles for other screen sizes?

Yes. Rules inside @media queries are shown in their wrapper even when the query does not match the current viewport, so you can see what changes at other widths.

Install Screen Ruler for free

No account, no setup. Join 60,000+ developers and designers measuring, inspecting, and editing on any page.

Add to Chrome