Closed Bug 631804 Opened 15 years ago Closed 15 years ago

CSS transitions don't work when property is changed with very short setTimeout() after changing display:none to display:block

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 537143

People

(Reporter: gyuque, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:2.0b12pre) Gecko/20110205 Firefox/4.0b12pre Build Identifier: Mozilla/5.0 (Windows NT 6.0; rv:2.0b12pre) Gecko/20110205 Firefox/4.0b12pre Test script changes 'display' property from none to block, then change 'background-color' property with setTimeout. But transitions don't work when delay=1ms, although they work when delay=20ms. Reproducible: Always Steps to Reproduce: 1. Visit http://dl.dropbox.com/u/103789/transition-test.html 2. Click 'Test' buttons "Test 0" will change 'background-color' property immediately after 'display' property changed. "Test 1" will change 'background-color' property with 1ms setTimeout. "Test 2" will change 'background-color' property with 20ms setTimeout. Actual Results: DIV does not animate. Expected Results: DIV animates. Animated? Firefox: Test 0: No Test 1: No Test 2: Yes Chrome 9: Test 0: No Test 1: Yes Test 2: Yes Opera 11: Test 0: Yes Test 1: Yes Test 2: Yes
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
(Saving the testcase in bugzilla, just in case.)
Summary: CSS transitions don't work when property is changed with very short setTimeout() → CSS transitions don't work when property is changed with very short setTimeout() after changing display:none to display:block
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: