[csswg-drafts] [css-zoom?] Zoom and replaced element intrinsic dimensions (#9442)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-zoom?] Zoom and replaced element intrinsic dimensions ==
The zoom property has an effect on intrinsic element dimensions ([live](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Ap%20%7B%20zoom%3A%202%20%7D%0A%3C%2Fstyle%3E%0A%3Cp%3E%3Cimg%20src%3Dimage%3E), [another demo](http://crisal.io/tmp/zoom-image-size.html)):

```html
<!DOCTYPE html>
<style>
p { zoom: 2 }
</style>
<p><img src=image>
```

That is fine and all, because it matches what you'd get if you specified the size with `width` and `height` (because those would go through the attribute mapping stuff etc).

But I don't think it's explained/defined in https://github.com/atanassov/css-zoom/ or so. What other side-effects does Zoom have? Does it apply to all replaced elements? Presumably it should, since their intrinsic size works in CSS pixels as well?

cc: https://github.com/w3c/csswg-drafts/issues/5623 @chrishtr @lilles @smfr @tabatkins @atanassov @zcorpan 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9442 using your GitHub account


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

Received on Thursday, 5 October 2023 11:39:36 UTC