GitHub

"How I contributed to Firefox DevTools" (opens in new tab)

Discussed on DEV

I Fixed a Firefox DevTools Bug (Bug 1717176) When an element had box-sizing: border-box, the width and height fields in Firefox DevTools Box Model panel were not editable at all. The Fix Two things needed to change: Unlock editing — BoxModelMain.js was explicitly blocking border-box elements from being editable. Correct the value — border-box width includes padding and borders, so I had to subtract them when opening the editor, and add them back when writing the new value. if (isBorderBox && ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help