Example usage for com.google.gwt.modernizr.client.utils StyleSheet get

List of usage examples for com.google.gwt.modernizr.client.utils StyleSheet get

Introduction

In this page you can find the example usage for com.google.gwt.modernizr.client.utils StyleSheet get.

Prototype

public native static StyleSheet get(StyleElement style);

Source Link

Usage

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));
}