Bug 158507 - Setting a style on the body right after load doesn't trigger a style recalc
Summary: Setting a style on the body right after load doesn't trigger a style recalc
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-07 18:22 PDT by Sam Weinig
Modified: 2016-06-07 19:28 PDT (History)
3 users (show)

See Also:


Attachments
Test case (805 bytes, text/html)
2016-06-07 18:22 PDT, Sam Weinig
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2016-06-07 18:22:22 PDT
Created attachment 280758 [details]
Test case

While investigating a test failure, I ran into this issue.  It seems that if you try to set a style on the body, right after load, and then read it back via getComputedStyle, it won't get set. Interestingly, this only happens the first time. If you immediately set the same style again, it works. Test case attached.