Closed Bug 1131642 Opened 9 years ago Closed 8 years ago

css keyframes animation name missing in the rule-view

Categories

(DevTools :: Inspector, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: pbro, Unassigned)

Details

Attachments

(3 files)

The rule-view shows the @keyframes rule when there is a css animation applied to the current node in the inspector.
It shows it in a separate section at the end of the rule-view.

It looks like there was a regression with this feature, because the animation name is supposed to appear in the section header, but not it shows "Inherited from" instead.
It seems to only occur on dev-edition.
I will attach a test page and STR.
Attached file animation.html
STR
- open the attached test page in dev-edition
- open the inspector
- select the .simple-animation node
- check the rule-view
If I select the .multiple-animations node instead, I see the 2 expected keyframes sections, but only one has the right section header.
Attached image keyframes.gif
Here's an animated gif showing what I see on the test page.
I did a little debugging and found out that the keyframes section header is created correctly when createExpandableContainer is called [1], but it gets replaced with an incorrect header when the CssRuleViewRefreshed event gets dispatched [2].

[1] http://mxr.mozilla.org/mozilla-central/source/browser/devtools/styleinspector/rule-view.js#1811
[2] http://mxr.mozilla.org/mozilla-central/source/browser/devtools/styleinspector/rule-view.js#1616
Inspector bug triage. Filter on CLIMBING SHOES.

Cannot reproduce the issue described in the STRs. 
For .simple-animation the header of the rule view section has the expected title : "Keyframes move"
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: