public void SetPageStyleSheetFromCSSDeclarationStyle(WebKitDOMCSSDeclarationStyle style) // not tested but should work
        {
            string path = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) + "temp" + new Random().Next(10000).ToString() + ".css";

            System.IO.File.WriteAllText(path, style.CSSText);
            SetPageStyleSheetFromLocalFile(path);
        }
 public void SetPageStyleSheetFromCSSDeclarationStyle(WebKitDOMCSSDeclarationStyle style) // not tested but should work
 {
     string path = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) + "temp" + new Random().Next(10000).ToString() + ".css";
     System.IO.File.WriteAllText(path, style.CSSText);
     SetPageStyleSheetFromLocalFile(path);
     
 }