File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ css[SO] type RuleList = raw.CSSRuleList
217217css[SO] type StyleDeclaration = raw.CSSStyleDeclaration
218218css[SO] type StyleRule = raw.CSSStyleRule
219219css[SO] type StyleSheet = raw.CSSStyleSheet
220+ css[SO] def CSS = raw.CSS
220221css[SO] def Rule = raw.CSSRule
221222experimental/AbortController[JC] def abort(): Unit
222223experimental/AbortController[JC] val signal: AbortSignal
@@ -2592,6 +2593,8 @@ raw/CDATASection[JC] def splitText(offset: Int): Text
25922593raw/CDATASection[JC] def substringData(offset: Int, count: Int): String
25932594raw/CDATASection[JC] var textContent: String
25942595raw/CDATASection[JC] def wholeText: String
2596+ raw/CSS[JO] def supports(propertyName: String, value: String): Boolean
2597+ raw/CSS[JO] def supports(supportCondition: String): Boolean
25952598raw/CSSFontFaceRule[JC] var CHARSET_RULE: Int
25962599raw/CSSFontFaceRule[JC] var FONT_FACE_RULE: Int
25972600raw/CSSFontFaceRule[JC] var IMPORT_RULE: Int
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ css[SO] type RuleList = raw.CSSRuleList
217217css[SO] type StyleDeclaration = raw.CSSStyleDeclaration
218218css[SO] type StyleRule = raw.CSSStyleRule
219219css[SO] type StyleSheet = raw.CSSStyleSheet
220+ css[SO] def CSS = raw.CSS
220221css[SO] def Rule = raw.CSSRule
221222experimental/AbortController[JC] def abort(): Unit
222223experimental/AbortController[JC] val signal: AbortSignal
@@ -2592,6 +2593,8 @@ raw/CDATASection[JC] def splitText(offset: Int): Text
25922593raw/CDATASection[JC] def substringData(offset: Int, count: Int): String
25932594raw/CDATASection[JC] var textContent: String
25942595raw/CDATASection[JC] def wholeText: String
2596+ raw/CSS[JO] def supports(propertyName: String, value: String): Boolean
2597+ raw/CSS[JO] def supports(supportCondition: String): Boolean
25952598raw/CSSFontFaceRule[JC] var CHARSET_RULE: Int
25962599raw/CSSFontFaceRule[JC] var FONT_FACE_RULE: Int
25972600raw/CSSFontFaceRule[JC] var IMPORT_RULE: Int
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package org.scalajs.dom
44 * Short aliases of all the dom.CSSThing classes
55 */
66object css {
7+ @ inline def CSS = raw.CSS
78 type FontFaceRule = raw.CSSFontFaceRule
89 type ImportRule = raw.CSSImportRule
910 type KeyframeRule = raw.CSSKeyframeRule
Original file line number Diff line number Diff line change @@ -12,6 +12,28 @@ package org.scalajs.dom.raw
1212import scala .scalajs .js
1313import scala .scalajs .js .annotation ._
1414
15+ @ js.native
16+ @ JSGlobal
17+ object CSS extends js.Object {
18+
19+ /**
20+ * The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not.
21+ * Allows to test the support of a pair property-value.
22+ *
23+ * MDN
24+ */
25+ def supports (propertyName : String , value : String ): Boolean = js.native
26+
27+ /**
28+ * The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not.
29+ * Takes one parameter matching the condition of @supports.
30+ *
31+ * MDN
32+ */
33+ def supports (supportCondition : String ): Boolean = js.native
34+
35+ }
36+
1537/**
1638 * A CSSStyleDeclaration is an interface to the declaration block returned by the
1739 * style property of a cssRule in a stylesheet, when the rule is a CSSStyleRule.
You can’t perform that action at this time.
0 commit comments