blob: 86634ba52c136e54a4a635d9de6baa8d41dc4bd1 [file] [log] [blame]
This is a testharness.js-based test.
PASS Property background-position-y value 'center' computes to '50%'
PASS Property background-position-y value 'top' computes to '0%'
PASS Property background-position-y value 'bottom' computes to '100%'
FAIL Property background-position-y value 'y-start' computes to 'y-start' assert_equals: expected "y-start" but got "0%"
FAIL Property background-position-y value 'y-end' computes to 'y-end' assert_equals: expected "y-end" but got "0%"
PASS Property background-position-y value '-20%' computes to '-20%'
PASS Property background-position-y value '10px' computes to '10px'
PASS Property background-position-y value '0.5em' computes to '20px'
PASS Property background-position-y value 'calc(10px - 0.5em)' computes to '-10px'
FAIL Property background-position-y value 'top -20%' computes to '-20%' assert_equals: expected "-20%" but got "0%"
FAIL Property background-position-y value 'bottom 10px' computes to 'calc(100% + 10px)' assert_equals: expected "calc(100% + 10px)" but got "0%"
FAIL Property background-position-y value '-20%, 10px' computes to '-20%, 10px' assert_equals: expected "-20%, 10px" but got "-20%"
FAIL Property background-position-y value 'center, top, bottom' computes to '50%, 0%, 100px' assert_equals: expected "50%, 0%, 100px" but got "50%"
FAIL Property background-position-y value '0.5em, y-start, y-end' computes to '20px, y-start, y-end' assert_equals: expected "20px, y-start, y-end" but got "0%"
FAIL Property background-position-y value 'calc(10px - 0.5em), top -20%, bottom 10px' computes to '-10px, -20%, calc(100% + 10px)' assert_equals: expected "-10px, -20%, calc(100% + 10px)" but got "0%"
Harness: the test ran to completion.