blob: d545f25315bcb66a7e849fdd033192313e147b2f [file] [log] [blame]
Test parsing and computed style of stroke-opacity
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS innerStyle("stroke-opacity", "0") is "0"
PASS innerStyle("stroke-opacity", "0.5") is "0.5"
PASS innerStyle("stroke-opacity", "1") is "1"
PASS innerStyle("stroke-opacity", "1000") is "1000"
PASS innerStyle("stroke-opacity", "-400") is "-400"
PASS innerStyle("stroke-opacity", "20%") is "0.2"
PASS innerStyle("stroke-opacity", "-600%") is "-6"
PASS innerStyle("stroke-opacity", "700%") is "7"
PASS innerStyle("stroke-opacity", "2.5e-1") is "0.25"
PASS innerStyle("stroke-opacity", "2.5e1%") is "0.25"
PASS innerStyle("stroke-opacity", "100.25%") is "1.0025"
PASS computedStyle("stroke-opacity", "0") is "0"
PASS computedStyle("stroke-opacity", "0.5") is "0.5"
PASS computedStyle("stroke-opacity", "1") is "1"
PASS computedStyle("stroke-opacity", "1000") is "1"
PASS computedStyle("stroke-opacity", "-400") is "0"
PASS computedStyle("stroke-opacity", "25%") is "0.25"
PASS computedStyle("stroke-opacity", "-600%") is "0"
PASS computedStyle("stroke-opacity", "700%") is "1"
PASS computedStyle("stroke-opacity", "2.5e-1") is "0.25"
PASS computedStyle("stroke-opacity", "2.5e1%") is "0.25"
PASS computedStyle("stroke-opacity", "100.25%") is "1"
PASS innerStyle("stroke-opacity", "2px") is ""
PASS innerStyle("stroke-opacity", "auto") is ""
PASS innerStyle("stroke-opacity", "none") is ""
PASS innerStyle("stroke-opacity", "'str'") is ""
PASS successfullyParsed is true
TEST COMPLETE