Skip to content

Commit b6f2ba6

Browse files
MacDueawesomekling
authored andcommitted
Base: Example of border-radius on iframe and canvas elements
1 parent 304e096 commit b6f2ba6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Base/res/html/misc/border-radius.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,21 @@ <h3>Border-radius</h3>
332332
<br>
333333
<br>
334334

335+
<p>All these are non-conventional elements with a border-radius :^)<p>
336+
<em>iframe to the welcome page</em>
337+
<br>
338+
<iframe style="border-radius: 50%; border: none; width: 300px; height: 200px;" src="welcome.html"></iframe>
339+
<br>
340+
<em>Fun canvas demo</em>
341+
<br>
342+
<canvas id="fun-canvas" style="border-radius: 30%;" width="200" height="200"></canvas>
343+
<script src="fun-canvas.js"></script>
344+
<script>
345+
makeFunCanvas("fun-canvas")
346+
</script>
347+
<br/>
348+
<br/>
349+
335350
<p>The boxes are 50x50px</p>
336351
<em>All round 10px</em>
337352
<div class="box box-1"></div>

0 commit comments

Comments
 (0)