Tuesday, April 30, 2024
HomeCSSNew Size Debugging Software in Chrome Canary

New Size Debugging Software in Chrome Canary


Just a few weeks in the past I blogged about inspecting sizes within the browser dev instruments, lamenting the shortage of a strategy to toggle between completely different unit varieties for size values:

Presently, inspecting a color worth in Firefox or Chrome lets you toggle between RGB, HSL and hex values by holding down the shift key on click on. It could be nice to see an identical factor for dimension values too. Having the ability to toggle between pixels, ems and rems (and even percentages) within the browser can be so helpful!

Properly, it seems just like the browser gods have answered my prayers! Adam Argyle on the Google Chrome group simply shared this model new function that’s landed in Chrome Canary.

It seems tremendous helpful, and appears to work fairly nicely so far as I can see! It even lets you toggle items you wouldn’t wouldn’t usually count on to make use of in CSS, like centimetres and millimetres (that are legitimate items, so I assume somebody, someplace is utilizing them!). My solely criticism is that (as with many different options in dev instruments) the best way to regulate by steps of 10 or 0.1 not that intuitive — with out the tweet I wouldn’t even know. I can also’t be the one one who finds it slightly fiddly to click on and drag on the tiny space of the property worth to scale it up or down. (You may simply kind the worth you need although, or use the arrow keys to regulate.)

The unit switcher doesn’t at present seem like keyboard accessible — however proper now it’s successfully in beta, we’ll probably see some enhancements by the point it makes its means into common Chrome.

Adam additionally asks:

What ought to occur while you change the unit?

  1. simply the unit adjustments (present)
  2. convert the size so it stays the identical size however makes use of the brand new unit

From my perspective, choice 2 is healthier for lots of the conditions the place I’d use this, reminiscent of when a designer provides me a size in pixels and I rapidly have to convert it to rems.

In abstract, this can be a nice new function to have within the browser and, whereas not but excellent, just about does precisely what I’d hoped for!



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments