There is an ambiguity in what you mean by “textarea with the shape of a circle and text inside”, the following solution will follow the rules for rendering textarea in html and give you a circle with the text fitting inside it , although it will not be for receiving text in a circular form (which will be possible with -webkit-shape-inside )
adding the appropriate number of indents
textarea { width: 500px; height: 500px; border-radius: 100%; padding:110px; }
script: http://jsfiddle.net/zuh7z/8/
math behind her!
The exact formula for calculating the required fill:
sqrt (2) * (width / 2) - (width / 2)
In our case: width = 500px
required fill = sqrt (2) * (500/2) - (500/2)
= 353.55-250 = 103.55
padding: 103.55px
source share