Re: Zoom use case


> On May 29, 2015, at 1:11 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> 
> 
> 
>> On May 28, 2015, at 3:39 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> 
>> On Thu, May 28, 2015 at 3:14 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>>>> On May 27, 2015, at 7:48 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
>>>> Zooming in Microsoft Word (and similar) does not affect layout of the zoomed content.
>>> 
>>> Yes, I know. I wasn't trying to suggest it should in CSS either, at least not for that use case, and that flavor of zoom.
>> 
>> A non-layout-affecting zoom is just a scale, tho, right?
> 
> Pretty much, except unlike with transforms, descendants could be different scales with an absolute scale factor, such as 'zoom:1' to get normal specified size/resolution. 

That sounds like you believe that the zoom property on a descendant can counter the computed value of a ancestor:

<div style="width: 200; height: 200px; zoom: 2; background-color: blue;">
  <div style="width: 200; height: 200px; zoom: 1; background-color: green;"></div>
</div>

However, the zoom level does not reset the zoom to “100%” for the 2nd div here. Both are 400px wide and height. Visually, zoom behaves like transform: scale(…);

Greetings,
Dirk

> 
> 
> 

Received on Saturday, 13 June 2015 06:17:35 UTC