| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/API/CSSImageValue | [Back] [Original] |
Get to know MDN better
Want more browser support for this feature? Tell us why.
CSSImageValue CSS API background-image, list-style-image, border-image-source
CSSImageValue <image> URL url() image() linear-gradient() element()
<button>Magic Wand</button>
CSS
button {
display: inline-block;
min-height: 100px;
min-width: 100px;
background: no-repeat 5% center url(magicwand.png) aqua;
}
background-image
//
const button = document.querySelector("button");
// computedStyleMap()
const allComputedStyles = button.computedStyleMap();
// CSSImageValue
console.log(allComputedStyles.get("background-image"));
console.log(allComputedStyles.get("background-image").toString());
| CSS Typed OM Level 1 # imagevalue-objects |
CSSImageValueCSS.factory_functionsCSSKeywordValueCSSMathClampCSSMathInvertCSSMathMaxCSSMathMinCSSMathNegateCSSMathProductCSSMathSumCSSMathValueCSSMatrixComponentCSSNumericArrayCSSNumericValueCSSPerspectiveCSSPositionValueCSSRotateCSSScaleCSSSkewCSSSkewXCSSSkewYCSSStyleRule.styleMapCSSStyleValueCSSTransformComponentCSSTransformValueCSSTranslateCSSUnitValueCSSUnparsedValueCSSVariableReferenceValueElement.computedStyleMapHTMLElement.attributeStyleMapMathMLElement.attributeStyleMapSVGElement.attributeStyleMapStylePropertyMapStylePropertyMapReadOnly| Web Proxy Viewer | New URL | Original Page |