Re: [csswg-drafts] [css-zoom?] Zoom and inheritance. (#9397)

> Yes. But is that big deal? Also, can't the browsers optimize it by computing it once and passing along a cached value to descendants that also inherit?

Not quite sure I follow. Consider the case of a bunch of leaf elements (images) that have a zoom value. I've [seen this in the wild](https://bugzilla.mozilla.org/show_bug.cgi?id=1861726).

The problem has nothing to do with descendants, but for each of those images now you need to do a significantly larger amount of work.

> Wouldn't sharing still be possible, because descendants that don't change font-size or other lengths can reuse each others' values through caching?

The problem is not inheriting to further descendants IMO, it's generally breaking the parent-ancestor sharing at zoom boundaries too. Again in the case above, none of those images would share memory for the relevant data structures if we did this.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9397#issuecomment-1831162342 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 29 November 2023 03:34:20 UTC