New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 615713 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

Computed Style panel often gives ZERO information about where a computed style comes from

Reported by teo8...@gmail.com, May 29 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Steps to reproduce the problem:
This is actually only one tiny reproducible and clear example of a broader issue that happens most of the times with a whole lot of style properties. Basically, whenever some computed style property value is "some sort of default" (which is when help from the DevTools is most needed), at least 50% of the times you'll face this problem. 

1. visit http://output.jsbin.com/gobifu
2. Right click the image, Inspect Element
3. Look at the Computed style panel on the right, and try to figure out why the border of the image is red

What is the expected behavior?
The tools should tell you why the border color of the image is red.

More specifically, in the list of computed values in the Computed tab, the "border-bottom-color", "border-left-color" etc. properties should have a triangle next to them, and clicking any of them should reveal the style rules that are being applied causing the border color to be red.

How exactly to display that is not totally trivial (the reason why the border color is red is because the "color" property computed value is red, and that an image's border color is by default the color property if not otherwise specified), but that's no excuse. A number of solutions can be devised. At the very least, you should show the applied rule that is determining the value of "color" as the (and the developer would infer that color is "transferred" to border-color because of some standard rule).

What went wrong?
Under the Computed styles panel, the value of the "border-bottom-color" (and the other 3 border colors) is red, but there's no dropdown, and no way to know where that value comes from, unless you know which other property you have to look at, in this case color.

Did this work before? N/A 

Chrome version: 50.0.2661.102  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 21.0 r0

A less obvious example:
http://output.jsbin.com/piteje/
 
Labels: -OS-Linux -Type-Bug -Pri-2 Needs-Feedback OS-All Pri-3 Type-Feature
Owner: jonathan.garbee@chromium.org
Can you please provide a screenshot of what you are seeing? Also try a nightly build [1] to see if the output is cleared up more.

Trying in V 52.0.2743.10 I am not seeing "border-bottom-color" in any of the computed properties, as there isn't one. The color is inherited from the color property as defined by `currentColor`. Which in the given case is red since the `currentColor` is red as defined by the same nodes color rule.

I do think we can improve UX here, but as of right now I'm not seeing the output you are describing.

Thank you.

[1] https://download-chromium.appspot.com

Comment 2 by teo8...@gmail.com, May 29 2016

Forgot to attach this screenshot
Screenshot from 2016-05-29 16-11-02.png
6.0 KB View Download

Comment 3 by teo8...@gmail.com, May 29 2016

> I am not seeing "border-bottom-color" in any of the computed properties, 
> as there isn't one

You obviously need to check the "Show All" checkbox.


> The color is inherited from the color property as defined 
> by `currentColor`. Which in the given case is red since the `currentColor` 
> is red as defined by the same nodes color rule.

That's exactly the story that I'd expect the DevTools to tell me.
Cc: jonathan.garbee@chromium.org
Labels: -Needs-Feedback
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Valid point for improvement, assigning to lushnikov for further assessment.

Comment 5 by teo8...@gmail.com, May 29 2016

Another example: the default margin-top and margin-bottom of a paragraph:
http://output.jsbin.com/cerogo
which apparently are determined by the values of -webkit-margin-after and -webkit-margin-before
Status: WontFix (was: Assigned)
Closing this since there wasn't much interest in this feature, whereas implementation would require a big engineering effort.

Comment 7 by teo8...@gmail.com, Nov 2 2017

"There wasn't much interest in this feature" from who? From you Chrome developers?? Yeah right.

Web developers out there who every day suffer from this issue (because I call it an issue, the DevTools not doing their fucking job, rather than a "feature request") and bang their heads on the wall while wasting hours figuring out why the fuck a given property gets a given value (rendering the whole style inspector useless), don't get magically informed that this report exists. They may have filed duplicate reports, or they just assume that the WebTools suck and go on with their lives.

You shouldn't even need a report in the first place to see the necessity of this "feature", let alone wait for it to get starred.

Sign in to add a comment