use of elemental2.dom.ViewCSS in project gwtproject by treblereel.
the class Element method isRTLSafari.
@JsOverlay
private boolean isRTLSafari() {
HTMLElement e = Js.uncheckedCast(this);
// TODO when Document has defaultView, clean this up
// TODO also see about not referencing a class which doesn't exist in the browser (ViewCSS)
ViewCSS defaultView = Js.uncheckedCast(Js.<JsPropertyMap<?>>uncheckedCast(e.ownerDocument).get("defaultView"));
return Objects.equals(defaultView.getComputedStyle(e, "").direction, "rtl");
}
Aggregations