blob: 777dc05f71398e2ff86c17fbd43010519f07e4ca [file] [log] [blame]
This is a testharness.js-based test.
PASS Property background-position-x value 'center' computes to '50%'
PASS Property background-position-x value 'left' computes to '0%'
PASS Property background-position-x value 'right' computes to '100%'
FAIL Property background-position-x value 'x-start' computes to 'x-start' assert_equals: expected "x-start" but got "0%"
FAIL Property background-position-x value 'x-end' computes to 'x-end' assert_equals: expected "x-end" but got "0%"
PASS Property background-position-x value '-20%' computes to '-20%'
PASS Property background-position-x value '10px' computes to '10px'
PASS Property background-position-x value '0.5em' computes to '20px'
PASS Property background-position-x value 'calc(10px - 0.5em)' computes to '-10px'
FAIL Property background-position-x value 'left -20%' computes to '-20%' assert_equals: expected "-20%" but got "0%"
FAIL Property background-position-x value 'right 10px' computes to 'calc(100% + 10px)' assert_equals: expected "calc(100% + 10px)" but got "0%"
FAIL Property background-position-x value '-20%, 10px' computes to '-20%, 10px' assert_equals: expected "-20%, 10px" but got "-20%"
FAIL Property background-position-x value 'center, left, right' computes to '50%, 0%, 100px' assert_equals: expected "50%, 0%, 100px" but got "50%"
FAIL Property background-position-x value '0.5em, x-start, x-end' computes to '20px, x-start, x-end' assert_equals: expected "20px, x-start, x-end" but got "0%"
FAIL Property background-position-x value 'calc(10px - 0.5em), left -20%, right 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.