blob: 615cb15708c35caf3e3c8af49f349a93df9429ff [file] [log] [blame]
<!DOCTYPE html>
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/#stylevalue-subclasses">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="'width' can be set with a CSSMathMin object.">
<style>
#target { font-size: 10px; background-color: green; height: 100px; }
</style>
<p>Test passes if there is a filled green square.</p>
<div id=target></div>
<script>
const width = new CSSMathMin(CSS.em(10), CSS.px(110));
const target = document.querySelector('#target');
target.attributeStyleMap.set('width', width);
</script>