W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

Re: [csswg-drafts] [resize-observer] ResizeObserver callback order. (#4518)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Nov 2019 02:01:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-555800881-1574215291-sysbot+gh@w3.org>
Test-case for the `HashSet` issue in Blink:

```html
<!doctype html>
<style>
  div {
    width: 100px;
    height: 100px;
    background: green;
  }
</style>
<div id="observeme"></div>
<script>
  let div = document.querySelector("#observeme");
  for (let i = 0; i < 100; ++i) {
    new ResizeObserver(function() {
      console.log(i);
    }).observe(div);
  }
</script>
```

The following example should output all the numbers from 0 to 99. In blink order is pretty random. That's clearly a bug.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4518#issuecomment-555800881 using your GitHub account
Received on Wednesday, 20 November 2019 02:01:33 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC