These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

New "resizable" attribute

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

New "resizable" attribute

Postby chris.f.jay@gmail.com » Fri Sep 07, 2007 10:20 am

Allowing the user to resize an element - e.g. shrink an img, or stretch a textarea - is a very common problem on the web, and it currently takes mountains of javascript.

HTML5 already has a "draggable" attribute, can we add a "resizable" attribute too? For example, <img resizable="all"> for an image that could be resized in any direction by the user. The browser would present an appropriate user interface.
chris.f.jay@gmail.com
<h6>
 
Posts: 3
Joined: Mon Jul 09, 2007 1:08 pm

Postby zcorpan » Fri Sep 07, 2007 10:56 am

Safari 3 supports the 'resize' CSS property which does what you want, and enables resizability of textareas by default.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Why CSS

Postby chris.f.jay@gmail.com » Tue Sep 11, 2007 1:09 pm

Thanks - but it seems very odd that "resize" is in CSS, whereas "draggable" is in HTML.

Shouldn't they be in the same specs? After all, they're both part of the user interface around editable positioning.
chris.f.jay@gmail.com
<h6>
 
Posts: 3
Joined: Mon Jul 09, 2007 1:08 pm

Postby zcorpan » Tue Sep 11, 2007 9:23 pm

draggable="" is in HTML because there are several events related to dragging and you usually want to do something specific when the user drags something, e.g. add an item to the shopping cart.

Resize however is purely visual, and you normally wouldn't do anything in response to something being resized.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest