[csswg-drafts] [css-viewport] zoom and scroll propagation to the viewport. (#9911)

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

== [css-viewport] zoom and scroll propagation to the viewport. ==
When `document.scrollingElement == document.body` (so, in quirks mode when the `<body>` is propagated to the viewport), things like `document.body.scrollTop` return the viewport scroll position etc.

The question then becomes, with something like:

```html
<!quirks-mode>
<body style="zoom: 2">
  <div style="height: 3000px"></div>
  <script>
  onload = () => {
    document.body.scrollTop;
    document.body.scrollTop = 500;
  };
  </script>
</body>
```

Should those coordinates be unscaled by the `<body>` zoom or not?

I _think_ Chrome's behavior is _not_ unzooming them, which makes sense to me.

cc @chrishtr @smfr 

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


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

Received on Monday, 5 February 2024 17:15:59 UTC