# Layout Lens

> Hover an element to see its padding and margin, and what silently changed its size: transforms, clipping, min/max.

Canonical page: [https://chrome-stats.com/d/layout-lens](https://chrome-stats.com/d/layout-lens)

## Overview

- **ID:** `layout-lens`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** tomvansichem
- **Category:** web-development
- **Daily users:** 1
- **Version:** 1.1.0
- **Last updated:** 2026-09-27
- **First published:** 2026-09-24
- **Size:** 24 KB
- **Data as of:** 2026-11-29
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/layout-lens/)
- **Website:** [https://github.com/tomvansichem/layout-lens](https://github.com/tomvansichem/layout-lens)
- **Privacy policy:** [https://addons.mozilla.org/firefox/addon/layout-lens/privacy/](https://addons.mozilla.org/firefox/addon/layout-lens/privacy/)

## Description

Layout Lens answers one question on hover: why is this element the size it is?

It draws the padding and margin overlay, then names the reasons the rendered size disagrees with the CSS you wrote.

<strong>What it flags</strong>
<ul><li><strong>Size mismatch (red).</strong> The CSS box size and the painted size disagree. A CSS transform on the element or an ancestor is the usual cause, and the tooltip names which ancestor.</li><li><strong>Clipped content (amber).</strong> overflow: hidden or clip is cutting content off with no scrollbar to reach it, including text-overflow: ellipsis truncation. Scrollable containers are not flagged; that content isn't lost.</li><li><strong>Width or height pinned by min- or max- (info line).</strong> The element is sized by min-width, max-width, min-height or max-height rather than by width or height. Computed style can't show you this; it reports the clamped result.</li><li><strong>Wider than the viewport (info line).</strong> The element's own box runs past the page, a common source of an unwanted horizontal scrollbar.</li></ul>
<strong>How it works</strong>
<ul><li><strong>Alt+S:</strong> toggle the inspector on the current tab, all frames</li><li><strong>Mouse:</strong> measure the element under the cursor</li><li><strong>↑ / ↓:</strong> walk to the parent, then back down toward where you started</li><li><strong>f:</strong> pin an element. The overlay keeps tracking it through scroll, so you can scroll away to compare, or move to DevTools</li><li><strong>c:</strong> copy the measurement block to the clipboard</li><li><strong>Alt+U:</strong> cycle the displayed unit: px → rem → em</li><li><strong>Esc:</strong> off</li></ul>
Shortcuts are rebindable at about:addons → gear menu → Manage Extension Shortcuts.

The page stays fully interactive throughout. Clicks, hovers and scrolling all work. Only ↑ / ↓ / c / f are intercepted, and never while you're typing in a field.

<strong>What it doesn't do</strong>

No account, no options page, no settings. It does nothing until you press the shortcut, and leaves no trace on the page when you turn it off.

It collects nothing and sends nothing anywhere. It stores one value: an on/off flag per tab, held in memory and cleared when you close the browser. Never written to disk.

<strong>Limitations</strong>

↑ / ↓ walk one frame's DOM and can't cross an iframe boundary. The size check fires on transforms, not on flex-shrink or zoom, because computed style already reports the used value in those cases.

Source: <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/4976d188520111105ca556d6e5ef30184a802e4c8ecc078f8e9b60737ab0b641/https%3A//github.com/tomvansichem/layout-lens" rel="nofollow">https://github.com/tomvansichem/layout-lens</a>

## Rankings

- #126,163 — Overall
- #142 — layout

## Permissions and access

### Permissions

- `activeTab`
- `storage`

### Content script matches

- `<all_urls>`

## Safety

- **Risk impact:** Moderate risk impact
- **Risk likelihood:** High risk likelihood

### Analysis details

- Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [SpecLens](https://chrome-stats.com/d/speclens) — 1 users
- [GridLens for Bootstrap](https://chrome-stats.com/d/gridlens-for-bootstrap) — 3 users
- [Spacing Scope](https://chrome-stats.com/d/spacing-scope) — 1 users
- [Margin and Padding Inspector](https://chrome-stats.com/d/margin-and-padding-inspector) — 22 users
- [Specter — design inspector](https://chrome-stats.com/d/specter-design-inspector) — 1 users
- [Stylelark: Design Inspector](https://chrome-stats.com/d/stylelark) — 0 users
- [CompatLens](https://chrome-stats.com/d/compatlens) — 0 users
- [CSS Layout Debugger](https://chrome-stats.com/d/css-layout-debugger) — 169 users, 4.71 / 5
- [Element Spacing Inspector](https://chrome-stats.com/d/element-spacing-inspector) — 22 users
- [Layout Debugger](https://chrome-stats.com/d/layout-debugger) — 2 users
- [CSS Viewer](https://chrome-stats.com/d/inspectcssviewer) — 1 users
- [Layout Measure](https://chrome-stats.com/d/layout-measure) — 4 users, 5.00 / 5

---

Source: [Chrome-Stats](https://chrome-stats.com/d/layout-lens)
