Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mbpowner

macrumors regular
Original poster
Aug 19, 2016
174
14
is there a way to get safari to support this ?

Also can canvas elements have other enclosed tags?

e.g. <canvas>
<p>hi</p>
</canvas>

Like on a shape you draw you can put other html elements ?
Only issue is if the canvas isnt supported by the browser is it possiblg to still display the elements outside the canvas?
 
Nope... well, rather, you should not.
For more information read up on this: https://www.w3.org/TR/2dcontext/

You can place html elements on top of a canvas using CSS. Any html element (inside canvas) will be hidden if canvas is supported and visible if canvas is NOT supported.

PS I may be just confused as to what you really are trying to accomplish.
 
  • Like
Reactions: Starfia
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.