Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (34 sloc) 736 Bytes
<!doctype html>
<html>
<head>
<script src="../donatello.js" type="text/javascript"></script>
<script src="../rect.js" type="text/javascript"></script>
<script>
function main() {
var paper = Donatello.paper('paper-div', 20, 20, 300, 300 );
test_stroke_width_correction( paper );
}
/*
* Should draw a thick red square with a thin black square
* co-incident.
*/
function test_stroke_width_correction( paper ) {
var attrs = {
stroke:'red',
'stroke-width':20
};
paper.rect( 12, 12, 150, 150, attrs );
paper.rect( 12, 12, 150, 150 );
}
</script>
<style>
#paper-div {
border: 1px solid black
}
</style>
</head>
<body onload='main();'>
<div id="paper-div">
</div>
</body>
</html>