blob: 8c958a01e4aaa59a0b1b7d7ec2e17ed16bcae6f4 [file] [log] [blame]
PASS e.style['shape-outside'] = "none" should set the property value
PASS e.style['shape-outside'] = "inset(100%)" should set the property value
PASS e.style['shape-outside'] = "inset(0 1px)" should set the property value
PASS e.style['shape-outside'] = "inset(0px 1px 2%)" should set the property value
PASS e.style['shape-outside'] = "inset(0px 1px 2% 3em)" should set the property value
PASS e.style['shape-outside'] = "inset(0px round 100%)" should set the property value
PASS e.style['shape-outside'] = "inset(0px round 0 1px)" should set the property value
PASS e.style['shape-outside'] = "inset(0px round 0px 1px 2%)" should set the property value
PASS e.style['shape-outside'] = "inset(0px round 0px 1px 2% 3em)" should set the property value
PASS e.style['shape-outside'] = "inset(10px round 20% / 0px 1px 2% 3em)" should set the property value
PASS e.style['shape-outside'] = "circle()" should set the property value
PASS e.style['shape-outside'] = "circle(1px)" should set the property value
PASS e.style['shape-outside'] = "circle(closest-side)" should set the property value
PASS e.style['shape-outside'] = "circle(at 10% 20%)" should set the property value
PASS e.style['shape-outside'] = "circle(farthest-side at center top)" should set the property value
PASS e.style['shape-outside'] = "circle(4% at top right)" should set the property value
PASS e.style['shape-outside'] = "ellipse()" should set the property value
PASS e.style['shape-outside'] = "ellipse(3% 2%)" should set the property value
PASS e.style['shape-outside'] = "ellipse(closest-side 1px)" should set the property value
PASS e.style['shape-outside'] = "ellipse(10% closest-side)" should set the property value
PASS e.style['shape-outside'] = "ellipse(closest-side closest-side at 60% 70%)" should set the property value
PASS e.style['shape-outside'] = "ellipse(at 10% 20%)" should set the property value
PASS e.style['shape-outside'] = "ellipse(farthest-side 4% at bottom left)" should set the property value
PASS e.style['shape-outside'] = "polygon(1% 2%)" should set the property value
PASS e.style['shape-outside'] = "polygon(nonzero, 1px 2px, 3em 4em)" should set the property value
PASS e.style['shape-outside'] = "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)" should set the property value
PASS e.style['shape-outside'] = "border-box" should set the property value
PASS e.style['shape-outside'] = "padding-box" should set the property value
PASS e.style['shape-outside'] = "content-box" should set the property value
PASS e.style['shape-outside'] = "margin-box" should set the property value
PASS e.style['shape-outside'] = "circle(7% at 8% 9%) border-box" should set the property value
FAIL e.style['shape-outside'] = "padding-box inset(10em)" should set the property value assert_equals: serialization should be canonical expected "inset(10em) padding-box" but got "padding-box inset(10em)"
FAIL e.style['shape-outside'] = "border-box circle(7% at 8% 9%)" should set the property value assert_equals: serialization should be canonical expected "circle(7% at 8% 9%) border-box" but got "border-box circle(7% at 8% 9%)"
FAIL e.style['shape-outside'] = "margin-box ellipse(at 1em 2em)" should set the property value assert_equals: serialization should be canonical expected "ellipse(at 1em 2em) margin-box" but got "margin-box ellipse(at 1em 2em)"
FAIL e.style['shape-outside'] = "content-box polygon(1% 2%)" should set the property value assert_equals: serialization should be canonical expected "polygon(1% 2%) content-box" but got "content-box polygon(1% 2%)"
PASS e.style['shape-outside'] = "url(https://example.com/)" should set the property value
PASS e.style['shape-outside'] = "url(\"https://example.com/\")" should set the property value
FAIL e.style['shape-outside'] = "cross-fade(url(\"https://example.com/\"), green)" should set the property value assert_not_equals: property should be set got disallowed value ""
PASS e.style['shape-outside'] = "linear-gradient(yellow, blue)" should set the property value