List of usage examples for com.google.gwt.modernizr.client.utils StyleSheet get
public native static StyleSheet get(StyleElement style);
From source file:com.google.gwt.modernizr.client.tests.FontFace.java
License:MIT License
@Override protected boolean runTest() { StyleElement style = Document.get().createStyleElement(); HeadElement head = getHeadElement(); style.setType("text/css"); head.insertFirst(style);/*from w w w. ja v a 2 s. co m*/ SupportRuleTest test = hasCss2Feature() ? new Css2SupportRuleTest() : new SupportRuleTest(); return test.isFontFaceSupported(StyleSheet.get(style)); }