When I tried to modify the CSS style for canvas, I didn't find any
details in the docs. Tucker pointed me to the default settings which
are hard-coded into the LaszloCanvas.lzs LFC class:
http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs
* <attribute name="bgcolor" style="background-color" type="color"
value="white" />
* <attribute name="font" style="font-family" type="string"
value="Verdana,Vera,sans-serif" />
* <attribute name="fontsize" style="font-size" type="number" value="11" />
* <attribute name="fontstyle" style="font-style" type="string"
value="plain" />
* <attribute name="fgcolor" style="color" type="color" value="black" />
* <attribute name="width" style="width" type="string" value="100%" />
* <attribute name="height" style="height" type="string" * value="100%" />
By overring these styles you can set custom values.
<canvas width="100%" height="100%">
<stylesheet>
canvas {
background-color: #ff0000;
}
</stylesheet>
</canvas>
I'm not sure if that's documented somewhere.
- Raju