Open
Bug 855505
Opened 12 years ago
Updated 11 months ago
Don't show a strike-through on a rule when being overridden with a "attribute: inherit" rule
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
DevTools
Inspector: Rules
Tracking
(Not tracked)
NEW
People
(Reporter: sdrocking, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [polish-backlog])
Attachments
(1 file)
164 bytes,
text/html
|
Details |
No description provided.
Comment 1•12 years ago
|
||
Could you give us some more context, maybe an STR?
Reporter | ||
Comment 2•12 years ago
|
||
Inspect the text on this page.
font-family for the body has a strike-through even though Verdana is the font being used.
Updated•12 years ago
|
Attachment #730794 -
Attachment mime type: text/plain → text/html
Comment 3•10 years ago
|
||
Came to file this, as glancing through the inspector I could not see the source of an applied value. Though there are some improvements that could be applied while working on this.
1, Being able to jump to the inherited value from the inherit entry would be very useful.
2, Mirroring the inherited value alongside the inherit value would be even more so.
also, Platform could shift to All
I also came here to report this and I agree with comment 3. It should not strike through.
Proposal:
- An "inherit" value will show in parentheses what the inherited value is.
- Mouseover shows the parent. (E.g. If you inherit from the "div" tag: "... body > <b>div#main</b> > article#news > p > <i>span</i>".)
- Clicking on it will bring you to the other value.
How do we at least have the bug marked "confirmed"?
Comment 5•9 years ago
|
||
(In reply to Franklin? from comment #4)
It seems like a reasonable request to me.
If I hover over "font-family", I see some sample text in the given font.
It would be great if this worked for "inherit" as well.
> - Clicking on it will bring you to the other value.
I wasn't sure how this would work.
It could open the style editor, perhaps, or start editing the property
that was inherited.
OS: Windows 7 → All
Hardware: x86_64 → All
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
comment #4:
> I wasn't sure how this would work.
> It could open the style editor, perhaps, or start editing the property
> that was inherited.
Well, you're already inside the inspector.
Current:
(at inherit point:)
font-family: inherit;
(at parent:)
font: 12px/18px Arial,Helvetica,sans-serif;
Hovering over "inherit" shows a dotted line, and single-clicking on it makes it editable.
Suggested: (different from what I suggested before)
font-family: inherit; (Arial,Helvetica,sans-serif) []
Hovering over the font names can still show example text. There can be a little "go to"-like icon at the end (represented by "[]") which you can hover over to show which ancestor it was inherited from, and clicking on it will bring you to that ancestor's rule, which will always be lower down in the Rules panel. (Don't change which element is being selected.)
I'd be fine with just not striking it out, though. That's pretty close to a bug, and this suggestion is a feature request.
Comment 7•9 years ago
|
||
I took a quick look at this last week.
It's somewhat harder than it first appears, in particular because it seems that the
"empty rule" filtering is done too early. Use of "inherit" on an otherwise non-inheritable
property means that some rule that currently would be filtered out as irrelevant would
now have to be included. Also this applies "even more" if the inherited rule itself
uses "inherit".
Updated•9 years ago
|
Whiteboard: [polish-backlog]
Updated•7 years ago
|
Severity: normal → enhancement
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•