Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
PassCanvas width and height attributes are used as the surface size with contain:size
Asserts run
Pass
assert_approx_equals(2.5, 2.5, 0.001)
    at assert_ratio ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html:18:3)
PassCanvas width and height attributes are used as the surface size
Asserts run
Pass
assert_approx_equals(2.5, 2.5, 0.001)
    at assert_ratio ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html:18:3)
PassComputed style test: canvas with {"width":"10","height":"20"}
Asserts run
Pass
assert_equals("auto 10 / 20", "auto 10 / 20")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"0","height":"1"}
Asserts run
Pass
assert_equals("auto 0 / 1", "auto 0 / 1")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"1","height":"0"}
Asserts run
Pass
assert_equals("auto 1 / 0", "auto 1 / 0")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"0","height":"0"}
Asserts run
Pass
assert_equals("auto 0 / 0", "auto 0 / 0")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"0.5","height":"1.5"}
Asserts run
Pass
assert_equals("auto 0 / 1", "auto 0 / 1")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"10%","height":"20"}
Asserts run
Pass
assert_equals("auto 10 / 20", "auto 10 / 20")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":null,"height":null}
Asserts run
Pass
assert_equals("auto", "auto")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"10","height":null}
Asserts run
Pass
assert_equals("auto", "auto")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":null,"height":"20"}
Asserts run
Pass
assert_equals("auto", "auto")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"xx","height":"20"}
Asserts run
Pass
assert_equals("auto", "auto")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)
PassComputed style test: canvas with {"width":"20","height":"xx"}
Asserts run
Pass
assert_equals("auto", "auto")
    at Test.<anonymous> ( /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js:11:5)