How to implement SVG 1.2 Tiny textArea?

后端 未结 1 982
青春惊慌失措
青春惊慌失措 2021-02-06 04:04

I recently browsed on the internet that there is a textArea local to SVG (I might need this for text-wrapping purpose)

I used the example and tested it on Chrome inside

1条回答
  •  生来不讨喜
    2021-02-06 04:44

    Check if the UA supports the http://www.w3.org/Graphics/SVG/feature/1.2/#TextFlow feature string and display an SVG textArea if it does, otherwise display an html textarea inside a foreignObject e.g.

    
        
            
        
        
            
        
    
    

    0 讨论(0)
提交回复
热议问题