debuggerTips(15)
- Inspect Input PlaceholderDEBUGGER
Using Chrome DevTools
Show user agent shadow DOM
feature to inspect and customize input placeholders - Hide Nodes in Chrome DevToolsDEBUGGER
Use the
H
key in Chrome DevTools to easily hide nodes, simplifying the process of debugging and visualizing page elements. - Access Extended DOM History in ConsoleDEBUGGER
Using
$0
,$1
,$2
to navigate through DOM elements with extended history in Chrome DevTools Console. - Duplicate Elements in Google Chrome DevToolsDEBUGGER
Duplicate elements in Chrome DevTools using either the
right-click
option or a keyboardshortcut
. - Debugging JavaScript in 'iframe' ContextDEBUGGER
Using the JavaScript Context Drop-down in Google Chrome DevTools to Run JavaScript in an
iframe
Context - Chrome DevToolsDEBUGGER
srcset
LoadingUsing Google Chrome DevTools to identify which picture is loaded when using the
img
tag'ssrcset
attribute, which delivers pictures based on the viewport width and Device Pixel RatioDPR
. - Fix Low-Contrast TextDEBUGGER
Use Chrome DevTools to identify and fix low-contrast text, improving readability and accessibility on your website.
- Emulate a focused page in DevToolsDEBUGGER
Enabling
Emulate a focused page
in Chrome DevTools to maintain focus for interactive elements (overlay elements), even when clicking outside the inspected element. - Operating System ModesDEBUGGER
Dark/Light
ToggleTesting the Operating System's response to the CSS media query
prefers-color-scheme
, which applies different styles for users preferring 'dark' or 'light' mode. - MakeDEBUGGER
in-browser
BookmarkletsGenerate and test bookmarklets directly in your browser, allowing you to quickly create and experiment with JavaScript code snippets.
- Web PerformanceDEBUGGER
LCP
SnippetUsing
LCP
Chrome DevTools Script to display information about the Largest Contentful Paint in the console which adds a green dotted line to the LCP (Largest Contentful Paint) element. - Control a Video in DevToolsDEBUGGER
Control video playback programmatically using Chrome DevTools to adjust playback settings directly from the console for more precise control.
- Remove or Disable Event ListenersDEBUGGER
Disable or remove event listeners manually using Google Chrome DevTools to control event-driven behaviors during debugging.
- Identify Used Fonts in Chrome vs. FirefoxDEBUGGER
Learn how to identify the fonts used for any element on a webpage in Chromium-based browsers like Chrome and Edge, and in Firefox.
- CSS Line HeightDEBUGGER
2
vs.2rem
DifferencesIdentify the effects of
line-height: 2
(twice the element's font size) versusline-height: 2rem
(twice the root font size) by checking the computed style using Chrome DevTools.