W3C home > Mailing lists > Public > www-style@w3.org > December 2011

[css4-ui] Resizing an element with resize != none should fire a resize event

From: Lea Verou <leaverou@gmail.com>
Date: Mon, 19 Dec 2011 22:41:50 -0800
Message-ID: <4EF02E2E.9000404@gmail.com>
To: www-style list <www-style@w3.org>
CSS3 UI defines a `resize` property [1], however it's not currently as 
useful as it could be. There is absolutely no event fired while a user 
is resizing an element, or even after the resize is over, which makes it 
very hard to adjust other elements in the page according to the new size 
of the element (for example when splitting the viewport in multiple 
resizable panes).

DOM3 Events spec allows UAs to fire the resize event on such cases [2]: 
" A host language may define certain elements to be resizable, and under 
what conditions (e.g., specific elements like iframe, or elements with 
particular characteristics like width and height); however, this 
specification does not define the behavior for elements.", but itís not 
required or specified in detail, so most (if not all) UAs don't do it.

[1]: http://www.w3.org/TR/css3-ui/#resize
[2]: http://www.w3.org/TR/DOM-Level-3-Events/#event-type-resize

Lea Verou (http://lea.verou.me | @LeaVerou)
Received on Tuesday, 20 December 2011 06:42:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:11 UTC