Computed padding value doesn't appear in the computed-styles tab when the value comes from a css variable
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(firefox148 fixed)
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: pbro, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
(Whiteboard: [btpp-backlog])
Attachments
(1 file, 1 obsolete file)
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 2•9 years ago
|
||
Updated•7 years ago
|
Updated•5 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 5•2 years ago
|
||
from (dupe) https://bugzilla.mozilla.org/show_bug.cgi?id=1400046#c1 :
I found out that this bug only appears for shorthand properties. Longhands are displayed as expected.
| Assignee | ||
Comment 6•2 months ago
|
||
When setting a longhand property value using CSS variable, the property value
we get for the shorthand from the rule CSSStyleDeclaration is an empty string.
In such case, we don't want to filter out the property if the "Browser styles"
checkbox is not checked.
In order to fix this, we check for the presence of the property in the CSSStyleDeclaration
instead of checking its truthiness, as CSSStyleDeclaration.getPropertyValue will
return an empty string for non-set properties as well.
We also change a similar check to make sure we include the matched selector, even
if we can't display a meaningful value to the user (see Bug 2003264).
Because of these changes, browser_computed_custom_properties.js needed to be
updated. We change the border we were using to outline because it gives
us less longhand properties to check.
Updated•2 months ago
|
| Assignee | ||
Comment 7•2 months ago
|
||
Updated•2 months ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 8•1 month ago
|
||
Comment on attachment 9530630 [details]
Bug 1262425 - [devtools] Add chrome-only CSSStyleDeclaration#hasLonghandProperty(propertyName). r=emilio.
Revision D274933 was moved to bug 2006255. Setting attachment 9530630 [details] to obsolete.
Comment 10•1 month ago
|
||
| bugherder | ||
Updated•25 days ago
|
Description
•