I have been reading this post about how to make a div resizable. What I don'
t understand is why does the overflow
property have to be different from visible
? Both the w3c docs and csstricks blog mention this. Is there any specific reason behind this? If yes then what?
Asked
Active
Viewed 364 times
1
1 Answers
1
If you look at the overflow options, setting this value to visible will prevent the box to wrap the content, instead the content will go out of the box. Therefore, if the user is dynamically modifying the box, you would get the context overlapping your element's box.
reference: mdn overflow

daniel.brubeck
- 644
- 4
- 10
-
But what if I wanted to let the content go out with the resizability feature too? Was this the only reason w3c made it this way? – user31782 Oct 18 '16 at 13:18
-
That seems to be the case, since that is how the rule was specified; however if you look at the definition there are some exeptions elements that can use resize without overflow being defined: iframes, imgs, video, svg, object, picture and object – daniel.brubeck Oct 19 '16 at 13:05