|Summary:||Imported user style sheets fail to display|
|Product:||WebKit||Reporter:||Pat Garner <pg>|
|Component:||CSS||Assignee:||Dave Hyatt <hyatt>|
|Severity:||Normal||CC:||aroben, hyatt, jberlin|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.5|
Description Pat Garner 2009-03-05 12:32:25 PST
If a user defined style sheet imports additional style sheets, the imported style sheets will only be displayed on first load. To reproduce: (Please see the example attached html and css file) 1) Create a style sheet that does nothing but import another style sheet 2) Define a second style sheet imported by the first style sheet with some simple style definitions 3) In Safari, set your user style sheet to be the first style sheet which import the second one 4) Quit and relaunch Safari 4) Create simple html page which will show the style definitions you added to the second style sheet 5) Load the simple html page in Safari - the styles will be show 6) Reload the page - the styles will vanish Though this is not likely to often be a major issue for average users, the real problem is when a non-webbrowser based app is using WebKit and user defined style sheets to display content. In some cases the content will be rendered completely blank after first being displayed. The work around for this has been to override the cache policy to reload ignoring cache when loading content. This was recently broken and still is in the version of WebKit shipping with Safari 4 beta.
Comment 3 Pat Garner 2009-03-05 12:35:44 PST
Created attachment 28320 [details] second test css file
Comment 5 Adam Roben (:aroben) 2009-09-08 12:49:34 PDT
Hyatt thinks this is happening because "user stylesheets don't hold up the display of the document or prevent onload from firing, but they need to".
Comment 9 Dave Hyatt 2010-06-21 12:43:44 PDT
Pat says this actually regressed by the time we shipped Safari 5, so it's broken again. :(