W3C home > Mailing lists > Public > www-style@w3.org > July 2014

[css-ui] Resize factor?

From: Lea Verou <lea@verou.me>
Date: Sun, 27 Jul 2014 02:21:00 +0300
Message-Id: <F235EF43-49A2-402D-8649-9FCE5C5F1C81@verou.me>
To: www-style list <www-style@w3.org>
According to css-ui [1]:
> When an element is resized by the user, the user agent keeps track of a resize factor (which is initially 1.0) for the width and height, which it then applies to the computed width and height as part of determining the used width and height. The element's contents (and surroundings) are reformatted as necessary.

> With regard to interactivity and the Document Object Model (DOM), the resize factor on an element lasts the lifetime of the element, however, if the ‘resize’ property itself is altered (e.g. via pseudo-class change or via DOM manipulation), then the resize factor is reset to 1.0.

So, if I’m reading this right, according to spec the resize factor is only reset if the resize property is dynamically altered. What happens then if width and height are dynamically altered? If the resize factor doesn’t reset, then the author gets completely different dimensions than the ones they used, for no obvious reason. It seems very confusing. 
(Although, none of the browsers I’ve tested seem to actually implement the resize factor anyway. They just modify width/height inline...)

[1]: http://dev.w3.org/csswg/css-ui/#resize

Lea Verou ✿ http://lea.verou.me ✿ @leaverou

Received on Saturday, 26 July 2014 23:21:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC