Closed Bug 1335545 Opened 8 years ago Closed 7 years ago

stylo: CSS animation doesn't start painting if animation property is specified in script

Categories

(Core :: CSS Parsing and Computation, defect, P3)

45 Branch
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: hiro, Unassigned)

References

(Blocks 1 open bug)

Details

<style>
#target {
  animation: anim 1s;
}
</style>

Above works but below does not work.

 element.animation = 'anim 1s';
Elements don't have animation attribute, do they?
(In reply to Xidorn Quan [:xidorn] (UTC+10) from comment #1)
> Elements don't have animation attribute, do they?

Oops sorry. I meant element.style.animation =.

I have notice the cause of this issue. That cause is that element remains in EffectCompositor::mElementsToRestyles.  We had to skip 'elementsToRestyle.Put(key, true)' in EffectCompositor::RequestRestyle().
Summary: stylo: CSS animation don't start painting if animation property is specified in script → stylo: CSS animation doesn't start painting if animation property is specified in script
Blocks: 1328505
Blocks: 1341195
Note that this is related to 3 in bug 1340938 comment 0.
This will be fixed by bug 1341985.
Depends on: 1341985
Priority: -- → P3
Fixed by bug 1341985.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.