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

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