Html5 canvas

Discussion in 'Web Design and Development' started by mbpowner, Nov 18, 2016.

  1. mbpowner macrumors regular

    Joined:
    Aug 19, 2016
    #1
    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?
     
  2. 960design macrumors 68020

    Joined:
    Apr 17, 2012
    Location:
    Destin, FL
    #2
    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.
     
  3. robvas macrumors 68030

    Joined:
    Mar 29, 2009
    Location:
    USA
  4. jtara macrumors 65816

    Joined:
    Mar 23, 2009
    #4

Share This Page