layout | title | authors | date | description | hero | alt | tags | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
layouts/blog-post.njk |
What's New In DevTools (Chrome 84) |
|
2020-05-12 |
The new Issues tab, accessibility information in the Inspect Mode tooltip, and more. |
image/dPDCek3EhZgLQPGtEG3y0fTn4v82/OW8UpZGnXiuvi6WbhRku.jpg |
|
{% Partial 'devtools/banner.md' %}
{% YouTube id="dgYAlcJonxo" %}
The new Issues tab in the Drawer aims to help reduce the notification fatigue and clutter of the Console. Currently, the Console is the central place for website developers, libraries, frameworks, and Chrome itself to log messages, warnings, and errors. The Issues tab presents warnings from the browser in a structured, aggregated, and actionable way, links to affected resources within DevTools, and provides guidance on how to fix the issues. Over time, more and more of Chrome's warnings will be surfaced in the Issues tab rather than the Console, which should help reduce the Console's clutter.
Check out Find And Fix Problems With The Chrome DevTools Issues Tab to get started.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/lTX2GUfZbWyGzYj5oWcY.png", alt="The Issues tab.", width="800", height="657" %}
Chromium Bug: #1068116
The Inspect Mode tooltip now indicates whether the element has an accessible name and role and is keyboard-focusable.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/b28GyTVPSuYcdkoFOy7W.jpg", alt="The Inspect Mode tooltip with accessibility information.", width="800", height="959" %}
Chromium Bug: #1040025
After recording your load performance, the Performance panel now shows Total Blocking Time (TBT) information in the footer. TBT is a load performance metric that helps quantify how long it takes a page to become usable. It essentially measures how long a page appears to be usable (because its content has been rendered to the screen) but isn't actually usable because JavaScript is blocking the main thread and therefore the page can't respond to user input. TBT is the main lab metric for approximating First Input Delay, which is one of Google's new Core Web Vitals.
To get Total Blocking Time information, do not use the Reload Page
workflow for recording page load performance. Instead, click Record
,
manually reload the page, wait for the page to load, and then stop recording. If you see
Total Blocking Time: Unavailable
it means that DevTools did not get the information it needs from
Chrome's internal profiling data.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/Lu1vDJIZYiW8AFYtLrjQ.jpg", alt="Total Blocking Time information in the footer of a Performance panel recording.", width="800", height="561" %}
Chromium Bug: #1054381
The new Experience section of the Performance panel can help you detect layout shifts. Cumulative Layout Shift (CLS) is a metric that can help you quantify unwanted visual instability and is one of Google's new Core Web Vitals.
Click a Layout Shift event to see the details of the layout shift in the Summary tab. Hover over the Moved from and Moved to fields to visualize where the layout shift occurred.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/2zfTTParTELog75y1VOb.jpg", alt="The details of a layout shift.", width="800", height="597" %}
When logging a Promise
the Console used to incorrectly describe the state of the Promise
as
resolved
:
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/hNbVxm5vTgdv0m5YeO0C.jpg", alt="An example of the Console using the old 'resolved' terminology.", width="800", height="449" %}
The Console now uses the term fulfilled
, which aligns with the Promise
spec:
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/SrAp9fORCU1KlMPNieJe.jpg", alt="An example of the Console using the new 'fulfilled' terminology.", width="800", height="395" %}
V8 Bug: #6751
The Styles pane's autocomplete UI now detects the revert
CSS keyword, which reverts the
cascaded value of a property to what the value would have been if no changes had been made to the
element's styling.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/tdN17h8oUDCaSGv61aj8.jpg", alt="Setting the value of a property to revert.", width="800", height="436" %}
Chromium Bug: #1075437
Hover over a background-image
value in the Styles pane to see a preview of the image in a tooltip.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/bbiH4yXniXJiTdFNGzqg.jpg", alt="Hovering over a background-image value.", width="800", height="460" %}
Chromium Bug: #1040019
CSS Color Module Level 4 specifies that color functions like rgb()
should support
space-separated arguments. For example, rgb(0, 0, 0)
is equivalent to rgb(0 0 0)
.
When you choose colors with the Color Picker or alternate between color representations in the Styles pane by holding Shift and then clicking the color value, you'll now see the space-separated argument syntax.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/q9EdwDsytfd3LrKE5ddN.jpg", alt="Using space-separated arguments in the Styles pane.", width="800", height="499" %}
You'll also see the syntax in the Computed pane and the Inspect Mode tooltip.
DevTools is using the new syntax because upcoming CSS features like color()
do not support the
deprecated comma-separated argument syntax.
The space-separated argument syntax has been supported in most browsers for a while. See Can I use Space-separated functional color notations?
Chromium Bug: #1072952
The Properties pane in the Elements panel has been deprecated. Run console.dir($0)
in the
Console instead.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/baxJpoi3vt3HzEqf9Oy3.jpg", alt="The deprecated Properties pane.", width="800", height="590" %}
References:
App shortcuts help users quickly start common or recommended tasks within a web app. The app shortcuts menu is shown only for Progressive Web Apps that are installed on the user's desktop or mobile device.
Check out Get things done quickly with app shortcuts to learn more.
{% Img src="image/BrQidfK9jaQyIHwdw91aVpkPiib2/1KUD1snHJ1sVaaZo3BRK.png", alt="App shortcuts in the Manifest pane.", width="800", height="534" %}
{% Partial 'devtools/reach-out.md' %} {% Partial 'devtools/whats-new.md' %}