- From: François REMY <francois.remy.dev@outlook.com>
- Date: Wed, 19 Dec 2012 19:10:24 +0100
- To: Tab Atkins Jr. <jackalmage@gmail.com>
- CC: "www-style@w3.org" <www-style@w3.org>
> From: jackalmage@gmail.com > Better would be set *both* width and min-width; if you set just > min-width it won't shrink below its initial size. This is already what Chrome is doing by the way. The way it's done is that there some "magic" that prevent you from making an element smaller than its initial size (at the moment you started resizing it). This is a problem, by the way, if you resize an element in Chrome and then rotate your PC (landscape->portrait). Indeed, because the element refuses to become smaller than its intial size in landscape mode, it can cause layout issues by being too wide with no way for the user to resizing it to a "normal" size for portrait. This is why I'm in favor of less "magic" in the case of user resize: magic in this case is just making sure nothing works as expected (says the one which uses the word 'magic' to describe his own APIs all the time) :-) ----------------------------- http://www.quirksmode.org/css/resize.html resize: Allows the user to resize an element. Note that most browsers do not allow the elemen]t to be resized to a smaller size than the original.
Received on Wednesday, 19 December 2012 18:10:52 UTC