4 <title>Test to ensure non-framed canvas inherits properties
</title>
7 <div style=
"font: 40px sans-serif; direction: rtl;">
8 <canvas id=
"c" width=
"512" height=
"256" style=
"display: none;"></canvas>
10 <canvas id=
"d" width=
"512" height=
"256"></canvas>
11 <script type=
"text/javascript">
12 var canvas
= document
.getElementById('c');
13 var ctx
= canvas
.getContext('2d');
16 ctx
.font
= '1em sans-serif';
17 ctx
.fillStyle
= 'black';
18 ctx
.textAlign
= 'center';
19 ctx
.fillText(str
, 256, 128);
21 var canvas2
= document
.getElementById('d');
22 var ctx
= canvas2
.getContext('2d');
24 ctx
.drawImage(canvas
, 0, 0);