Baseline Widely available
CSSStyleDeclaration.getPropertyPriority() ã¡ã½ããã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ããã® CSS ããããã£ã«æç¤ºçã«è¨å®ããããã¹ã¦ã®åªå 度ãæååã§è¿ãã¾ãã
æ§ægetPropertyPriority(property)
弿°
property
æååã§ããã§ãã¯ããããããã£åã表ãã¾ãã
åå¨ããå ´åã¯åªå
度ï¼"important"
ãªã©ï¼ã表ãã¾ãã åå¨ããªãå ´åã¯ã空æååãè¿ãã¾ãã
以ä¸ã® JavaScript ã³ã¼ãã¯ã margin
ã CSS ã»ã¬ã¯ã¿ã¼ã®ã«ã¼ã«ã§ important ã¨è¨ããã¦ãããã©ããããã§ãã¯ãã¾ãã
const declaration = document.styleSheets[0].cssRules[0].style;
const isImportant = declaration.getPropertyPriority("margin") === "important";
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
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