calc-size-width-box-sizing.html

FAILExpected4 of 15 subtests pass327 ms

Details

Test
/css/css-values/calc-size/calc-size-width-box-sizing.html
Harness
OK

Subtests

StatusSubtestMessage
PASSresolved width with styles {"width":"auto"}
PASSresolved width with styles {"width":"auto","box-sizing":"border-box"}
PASSresolved width with styles {"width":"calc-size(auto, size)"}
PASSresolved width with styles {"width":"calc-size(auto, size)","box-sizing":"border-box"}
FAILresolved width with styles {"width":"calc-size(auto, size * 2)"}
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
FAILresolved width with styles {"width":"calc-size(auto, size * 2)","box-sizing":"content-box"}
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
FAILresolved width with styles {"width":"calc-size(auto, size * 2)","box-sizing":"border-box"}
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
FAILresolved width with styles {"width":"calc-size(min-content, size * 2)"}
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
FAILresolved width with styles {"width":"calc-size(fit-content, size * 2)","box-sizing":"border-box"}
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
FAILresolved width with styles {"min-width":"calc-size(min-content, size * 2)"}
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
assert_equals: getComputedStyle(target).width expected "14px" but got "7px"
FAILresolved width with styles {"min-width":"calc-size(max-content, size * 2)","box-sizing":"border-box"}
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
assert_equals: getComputedStyle(target).width expected "38px" but got "19px"
FAILresolved width with styles {"width":"200px","max-width":"calc-size(max-content, size * 2)"}
assert_equals: getComputedStyle(target).width expected "14px" but got "200px"
assert_equals: getComputedStyle(target).width expected "14px" but got "200px"
FAILresolved width with styles {"width":"200px","max-width":"calc-size(min-content, size * 2)","box-sizing":"border-box"}
assert_equals: getComputedStyle(target).width expected "38px" but got "200px"
assert_equals: getComputedStyle(target).width expected "38px" but got "200px"
FAILresolved width with styles {"width":"calc-size(11px, size * 2)"}
assert_equals: getComputedStyle(target).width expected "22px" but got "7px"
assert_equals: getComputedStyle(target).width expected "22px" but got "7px"
FAILresolved width with styles {"width":"calc-size(11px, size * 2)","box-sizing":"border-box"}
assert_equals: getComputedStyle(target).width expected "22px" but got "19px"
assert_equals: getComputedStyle(target).width expected "22px" but got "19px"