How can we create css rules for webKit browser ? I was doing it like this on default browser... IHTMLDocument2 currentDocument = (IHTMLDocument2)webBrowser1.Document.DomDocument; ``` int length = currentDocument.styleSheets.length; IHTMLStyleSheet styleSheet = currentDocument.createStyleSheet(@"", length + 1); TextReader reader = new StreamReader(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "cssFile.css")); string style = reader.ReadToEnd(); styleSheet.cssText = style; ```
How can we create css rules for webKit browser ?
I was doing it like this on default browser...
IHTMLDocument2 currentDocument = (IHTMLDocument2)webBrowser1.Document.DomDocument;