Paste number 33500: test for setRGBColor

Paste number 33500: test for setRGBColor
Pasted by: rwlbuis
When:14 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+PUK
Channel:#webkit
Paste contents:
Raw Source | XML | Display As
<svg xmlns="http://www.w3.org/2000/svg" onload="runTest()">
<script>
    function runTest()
    {
        var col = document.styleSheets[0].cssRules[0].style.getPropertyCSSValue("fill");
        col.setRGBColor("rgb(100%,100%,0%");
        col.setRGBColor("rgba(100%,100%,0%");
        col.setRGBColor("rgb(100,100%,0%)");
        col.setRGBColor("rgb(100,100,0%)");
        col.setRGBColor("rgb(100%,100%,0)");
        col.setRGBColor("rgb(100%,100%,r)");
        col.setRGBColor("yello");
    }
</script>   
<style type="text/css"><![CDATA[
    #foo {  
        fill: green;
    }
]]></style>
<rect width="50" height="50" id="foo"/>
</svg>

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.