Source code

Revision control

Copy as Markdown

Other Tools

[random-serialize.tentative.html]
[e.style['width'\] = "random(0px, 100px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(0px, 100px, by 50px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(--foo, 0px, 100px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(--foo per-element, 0px, 100px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(per-element --foo, 0px, 100px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(--foo, 0px, 100px, by 50px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(--foo per-element, 0px, 100px, by 50px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(per-element --foo, 0px, 100px, by 50px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(100px, 0px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(-100px, -10px)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(1em, 200rem)" should set the property value]
expected: FAIL
[e.style['width'\] = "random(10 * 100px, 200em / 2)" should set the property value]
expected: FAIL
[e.style['width'\] = "calc(2 * random(0px, 100px))" should set the property value]
expected: FAIL
[e.style['max-lines'\] = "random(25, 50)" should set the property value]
expected: FAIL
[e.style['max-lines'\] = "random(25, 50, by 5)" should set the property value]
expected: FAIL
[e.style['scale'\] = "random(0.5, 2.5)" should set the property value]
expected: FAIL
[e.style['scale'\] = "random(0.5, 2.5, by 0.1)" should set the property value]
expected: FAIL
[e.style['rotate'\] = "random(25deg, 1turn)" should set the property value]
expected: FAIL
[e.style['rotate'\] = "random(25deg, 1turn, by 5deg)" should set the property value]
expected: FAIL
[e.style['transition-delay'\] = "random(25ms, 50s)" should set the property value]
expected: FAIL
[e.style['transition-delay'\] = "random(25ms, 50s, by 5s)" should set the property value]
expected: FAIL