Bug 115347

Summary: white-space:pre not working if loaded from script after getComputedStyle is used.
Product: WebKit Reporter: Olivier Goffart <ogoffart>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://acid.woboq.im:8001/~test/test.html
Attachments:
Description Flags
Testcase (html part)
none
Testcase (css part) none

Olivier Goffart
Reported 2013-04-29 05:17:19 PDT
When loading a css file from a script, the white-space:pre looses some white spaces if the style is applied after window.getComputedStyle is called (and it is called from jquery) Reproduced with chromium 26.0.1410.63 and was also seen with safari.
Attachments
Testcase (html part) (399 bytes, text/html)
2013-04-29 05:18 PDT, Olivier Goffart
no flags
Testcase (css part) (48 bytes, text/css)
2013-04-29 05:18 PDT, Olivier Goffart
no flags
Olivier Goffart
Comment 1 2013-04-29 05:18:09 PDT
Created attachment 199991 [details] Testcase (html part)
Olivier Goffart
Comment 2 2013-04-29 05:18:30 PDT
Created attachment 199992 [details] Testcase (css part)
Brent Fulgham
Comment 3 2022-07-13 14:43:43 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note You need to log in before you can comment on or make changes to this bug.