[ Web Proxy ]
URL:
Viewing: https://developer.chrome.com/docs/devtools/layers [Back]  [Original]

Layers panel: Explore the layers of your website  |  Chrome DevTools  |  Chrome for Developers Skip to main content
Chrome for Developers [Chrome for Developers]

Layers panel: Explore the layers of your website Stay organized with collections Save and categorize content based on your preferences.

The Layers panel helps you understand the composition of your website and how the browser renders content. Analyze a 3D diagram of your website to identify rendering issues, fix scrolling bugs, and optimize animations.

Overview

Use the Layers panel to do the following:

Open the Layers panel

To open the Layers panel, follow these steps:

  1. Open DevTools.
  2. Open the Command menu by pressing:
  3. Start typing Layers, select Show Layers panel, and press Enter.

Alternatively, in the top right corner, select more_vert More options > More tools > Layers panel.

Additionally, the Performance panel lets you view the layers of each frame of a recording in a Layers tab. To learn more, see View layers information.

View document layers

The left-most section of the Layers panel lists all rendered layers of the document in an expandable tree. This tree updates as you navigate the page. Layers are identified either by their CSS selector or with a number, followed by the dimensions of the layer in pixels.

The layer tree. [The layer tree.]

Hover over a layer to highlight it on the web page and in the diagram. A tooltip will appear on the page with the following information:

Tooltip on web.dev banner. [Tooltip on web.dev banner.]

Inspect document layers

Click a layer to view more information in the Details pane.

The Details tab. [The Details tab.]

Depending on the layer, the following information will appear:

The diagram shows how layers are stacked and arranged for this page, including elements that are positioned outside of the viewport.

The Layers panel diagram. [The Layers panel diagram.]

To move the diagram:

To see a layers corresponding DOM element in the Elements panel, right-click a layer in the diagram or on the layer tree and click Reveal in the Elements panel.

Additionally, the Layers panel hides certain layers that don't host or draw content. To show these layers, right-click on the layer tree and select Show internal layers.

Set DOM change breakpoints

The Layers panel lets you set DOM change breakpoints.

To set a DOM change breakpoint, follow these steps:

  1. Right-click a layer in the layer tree.
  2. Hover over Break on then select Subtree modifications, Attribute modifications, or Node removal.

Find a list of DOM change breakpoints in:

Breakpoints listed in Sources and Elements panels. [Breakpoints listed in Sources and Elements panels.]

To learn more about the types of breakpoints, see Types of DOM change breakpoints.

View Paint Profiler information

The Layers panel lets you view detailed paint information about a layer, and render the content of the webpage onto the 3D diagram.

To activate the Paint Profiler, follow these steps:

  1. Check the check_box Paints checkbox in the action bar.
  2. Select a layer from the layer tree.
  3. Click Paint Profiler at the bottom of the Details pane. Note that not all layers will have this option.

The Profiler tab will open with paint records and a histogram that represents paint cost distribution.

The Profiler tab. [The Profiler tab.]

Activating Paints will also render most of the content of the webpage onto the diagram.

Identify slow scrolling elements

Some websites use JavaScript to detect scroll or touch events on elements in a way that may negatively affect scrolling speeds. To identify layers that contain event listeners related to scrolling that may hinder performance, click the check_box Slow scroll rects checkbox.

A slow scroll layer in diagram. [A slow scroll layer in diagram.]

Layers that may cause slow scrolling are highlighted in pink.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-25 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-25 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page