From: Rural H. <rur...@gm...> - 2017-06-27 01:44:08
|
Thanks Ronald. I already get it working like this: HTMLElement element=(HTMLElement)he.getScriptableObject(); ComputedCSSStyleDeclaration style=jscript.getComputedStyle(element, ":before"); The important thing is the pseudo parameter of getComputedStyle method has to be ":before", not "before" or "::before". I think this should be documented. 在 2017/6/27 0:01, Ronald Brill 写道: > Hi Rural, > > not sure what you are looking for. Maybe ask the element for the computed css style and > then check for the attribute.... > > On Tue, 20 Jun 2017 15:34:39 +0800 Rural Hunter wrote: >> Hi, >> >> Does htmlunit support the CSS pseudo elements ::before and ::after? If yes, how to get it > on the html element? >> >> ----------------------------------------------------------------------- > ------- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > |