[Webkit-unassigned] [Bug 244141] [Resize Observer] Timeout on WPT test 18 (an observation is fired when device-pixel-content-box is being observed)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 21 18:47:31 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244141

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |BrowserCompat
                 CC|                            |karlcow at apple.com,
                   |                            |webkit-bug-importer at group.a
                   |                            |pple.com
         Depends on|                            |219005

--- Comment #1 from Karl Dubost <karlcow at apple.com> ---
I probably depends on Bug 219005

as the test 18 depends on it.

```
function test18() {
  let t = createAndAppendElement("div");
  t.style.height = "100px";
  t.style.width = "50px";

  let helper = new ResizeTestHelper(
    "test18: an observation is fired when device-pixel-content-box is being " +
    "observed",
  [
    {
      setup: observer => {
        observer.observe(t, {box: "device-pixel-content-box"});
      },
      notify: entries => {
        assert_equals(entries.length, 1, "1 pending notification");
        assert_equals(entries[0].target, t, "target is t");
        assert_equals(entries[0].contentRect.width, 50, "target width");
        assert_equals(entries[0].contentRect.height, 100, "target height");
        assert_equals(entries[0].contentBoxSize[0].inlineSize, 50,
                      "target content-box inline size");
        assert_equals(entries[0].contentBoxSize[0].blockSize, 100,
                      "target content-box block size");
        assert_equals(entries[0].borderBoxSize[0].inlineSize, 50,
                      "target border-box inline size");
        assert_equals(entries[0].borderBoxSize[0].blockSize, 100,
                      "target border-box block size");
        assert_equals(entries[0].devicePixelContentBoxSize[0].inlineSize, 50,
                      "target device-pixel-content-box inline size");
        assert_equals(entries[0].devicePixelContentBoxSize[0].blockSize, 100,
                      "target device-pixel-content-box block size");
      }
    },
  ]);

  return helper.start(() => t.remove());
}
```


And test 19 also would depends on it: zoom + device-pixel-content-box
(zoom is non-standard and not supported by Firefox, hence the test number differences)

PS: <3 the typo "Web-copmat"


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=219005
[Bug 219005] Implement ResizeObserver's devicePixelContentBox
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220822/b66fb1ba/attachment.htm>


More information about the webkit-unassigned mailing list