- Explore the web page translated into a 3D perspective
- Debug based on z-index stacking context
- Access the Layers tool functionality from 3D View with composited layers
- Clear some of the clutter on the DOM pane or the z-index pane
- Pick the color scheme to best debug your DOM problems or z-index problems
If you want to explore an early prototype of 3D View project and run the code yourself, navigate to 3D View Sample.
On the left side, there are three panes that you may use for your debugging experience.
- The Z-index pane. Navigate through the different elements in the web app with the z-index context in mind. The Z-index pane is the default pane.
- The 3D DOM pane. Explore the DOM as a whole with all the elements easily accessible. To access the pane, choose the DOM pane next to the Z-index pane.
- The Composited Layers pane. Add another 3D element to create a more comprehensive experience from a layers perspective. To access the pane, choose the Composited Layers pane next to the DOM pane.
Navigating the canvas
- Rotate the DOM: To rotate horizontally, select the
right-arrowkeys. To rotate vertically, select the
- Navigate the DOM: To move through the adjacent elements, choose an element and select the
- Rotate the DOM: Choose and drag around the canvas space.
- Pan around the DOM: Open the contextual menu (right-click) and drag in the direction you want the DOM to move.
- Zoom: Drag two fingers across the touchpad or use the scroll wheel on your mouse.
- Reset the canvas view to the original view: Choose the Reset camera button, or choose the Reset elements in view and re-center camera (sideways refresh icon) button.
- Refresh the canvas (for example, if the browser changed or you switched to a device emulator view): Choose the Retake snapshot button or choose the Take new snapshot button (refresh icon).
While the Z-index pane has shared features with the 3D DOM pane, the panes still have elements that are unique to the pane.
Highlight elements with stacking context
The Highlight elements with stacking context setting allows you to turn on (and off) the z-index tags for the elements on the canvas. The checkbox is chosen by default.
Change the scope of your exploration
The Show all elements button is the quickest way to display all the elements of the DOM after changing the settings below it.
The Show only elements with stacking context button removes elements without stacking context and flattens the DOM for easier navigation.
The Isolate selected element button is essentially three buttons in one. There are two checkboxes below the Isolate selected element button: The Show all parents checkbox and Keep only parents with new stacking context checkbox.
The Show all parents checkbox is turned on by default. To display the element and any parents on the canvas, choose an element and choose the Isolate selected element button.
To display the element and the parents that have a new stacking context on the canvas, turn on the Keep only parents with new stacking context setting and choose the Isolate selected element button.
To display the element you chose on the canvas, turn off both the settings and choose Isolate selected element button.
At the bottom of the 3D DOM pane, locate the Hide elements with the same paint order as their parent checkbox. Choosing and deselecting the checkbox refreshes the elements based on your choice. If chosen, elements that share paint order are flattened to the parent.
The options are meant to clear up some of the clutter that more complex web pages create in your canvas.
Z-index color type
The are the different visualizations you may use for the DOM in your canvas. Whether you use it for fun or because the visualizations help you visualize the DOM better, the DevTools have different colorways and a Use background color option. The Z-index pane shares the Purple to White and Background Color with the 3D DOM pane. Given the added visual element of the z-index labels, your feedback that led to a reduction in the number of color options. The new simplicity improves the z-index debugging experience. The radio buttons allow you to toggle through the options and pick the color type. The color type is either most appropriate for your project or one that you like the most.
If you want to take more of a general debugging view, rather than the z-index experience, the 3D DOM gives an overall look of the DOM. Since the z-index context is removed, the DOM is stacked more closely and cleanly. The 3D DOM pane has similar functionality, but there are a few nuances.
Changing your view
On the 3D DOM pane, the Isolate selected element button has Include children and Include parents checkboxes. Both checkboxes are turned on by default. That means if you choose the Isolate selected element button after you choose an element, the canvas displays the chosen element, the parents of the element, and the children of the element. Turn off the Include children setting and choose the Isolate selected element button again to display the chosen element and the parents of the element. If you turn on the Include children setting and turn off the Include parents setting and then choose the Isolate selected element button, the canvas displays the element and any children. If you turn off both settings and choose the Isolate selected element button, the canvas only displays the element you previously chose.
A slider on the control pane named Nesting level for page with a number next to it. The number indicates the number of layers for the document. Dragging the slider to the left causes the outermost layers to peel away until you are left with a nesting level set to
1, which displays only the furthest back element in the DOM. To remove some of the clutter, drag the slider. It helps you get a closer look at what is happening in the lower levels.
DOM color type
The 3D DOM pane displays the following options.
- Three different colorways.
- Heatmap - Purple to White
- Heatmap - Blue to Yellow
- Heatmap - Rainbow
- Use background color
- Use screen texture
The Use screen texture option adds context to your debugging experience. It directly displays the content from the webpage onto the elements.
The Composited Layers pane opens the elements of the Layers tool without changing contexts. You may still access the details of each of the layers and have the Slow scroll rects and Paint.
Getting in touch with the Microsoft Edge DevTools team
The Microsoft Edge Devtools team is working on the UI and adding more functionality to the 3D View based on your feedback. Send your feedback to help improve the Microsoft Edge DevTools. Choose the Send Feedback icon in the DevTools or select
I on Windows/Linux or
I on macOS and enter any feedback or feature requests you have for the DevTools.