Baseline 2024
Newly available
Experimental: ããã¯å®é¨çãªæ©è½ã§ãã
æ¬çªã§ä½¿ç¨ããåã«ãã©ã¦ã¶ã¼äºææ§ä¸è¦§è¡¨ããã§ãã¯ãã¦ãã ããã
supportsText
㯠CSSImportRule
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®èªã¿åãå°ç¨ããããã£ã§ã @import
ã¢ããã«ã¼ã«ã§æå®ããã supports æ¡ä»¶ãè¿ãã¾ãã
æååãã¾ã㯠null
ã§ãã
ãã®ææ¸ã®åä¸ã®ã¹ã¿ã¤ã«ã·ã¼ãã«ã¯ 3 ã¤ã® @import
ã«ã¼ã«ãå«ã¾ãã¦ãã¾ããæåã®å®£è¨ã¯ã display: flex
ã«å¯¾å¿ãã¦ããå ´åã«ã¹ã¿ã¤ã«ã·ã¼ããã¤ã³ãã¼ããã¾ãã 2 ã¤ç®ã®å®£è¨ã¯ã :has
ã»ã¬ã¯ã¿ã¼ã«å¯¾å¿ãã¦ããå ´åã«ã¹ã¿ã¤ã«ã·ã¼ããã¤ã³ãã¼ããã¾ãã 3 ã¤ç®ã®å®£è¨ã¯ãå¯¾å¿æ¡ä»¶ãªãã«ã¹ã¿ã¤ã«ã·ã¼ããã¤ã³ãã¼ããã¾ãã
The supportsText
property returns the import conditions associated with the at-rule.
@import url("style1.css") supports(display: flex);
@import url("style2.css") supports(selector(p:has(a)));
@import url("style3.css");
const myRules = document.styleSheets[0].cssRules;
console.log(myRules[0].supportsText); // `"display: flex"` ãè¿ã
console.log(myRules[1].supportsText); // `"selector(p:has(a))"` ãè¿ã
console.log(myRules[2].supportsText); // `null` ãè¿ã
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4