<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>244141</bug_id>
          
          <creation_ts>2022-08-19 14:09:54 -0700</creation_ts>
          <short_desc>[Resize Observer] Timeout on WPT test 18 (an observation is fired when device-pixel-content-box is being observed)</short_desc>
          <delta_ts>2022-08-21 18:53:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=206555</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>219005</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1892495</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-19 14:09:54 -0700</bug_when>
    <thetext>Hi Team,

Thanks for doing continuous good work, while I was triaging and bumping old bugs, came across bug 206555, which was about specific test failure but now it is working as intended but there are new failures. Hence, I am creating separate bug to track it.

Link - http://wpt.live/resize-observer/observe.html

Test Case Results across browsers:

*** Safari Technology Preview 151 ***

Harness status: Timeout &lt;--- Bug

Found 21 tests

19 Pass
1 Fail &lt;--- Bug
1 Not Run &lt;--- Bug


*** Firefox Nightly 105 ***

Harness status: OK

Found 21 tests
20 Pass
1 Fail

*** Chrome Canary 106 ***

Harness status: OK

Found 22 tests

20 Pass
2 Fail

______________

Specific failures:

test18: an observation is fired when device-pixel-content-box is being observed	

ssert_unreached: Caught a throw, possible syntax error Reached unreachable code
@http://wpt.live/resize-observer/resources/resizeTestHelper.js:87:25
@http://wpt.live/resources/testharness.js:2590:30
_nextStep@http://wpt.live/resize-observer/resources/resizeTestHelper.js:86:29
@http://wpt.live/resize-observer/resources/resizeTestHelper.js:150:21
@http://wpt.live/resources/testharness.js:2590:30
start@http://wpt.live/resize-observer/resources/resizeTestHelper.js:148:27


Pass	assert_equals(-1, -1, &quot;start can only be called once&quot;)
 /resize-observer/resources/resizeTestHelper.js:149:20

Fail	assert_unreached(&quot;Caught a throw, possible syntax error&quot;)
 /resize-observer/resources/resizeTestHelper.js:87:25

NEXT

Not Run	guard	Asserts run.  No assert


__________

Continue doing good work.. and Webkit more Web-copmat and interop. Thanks!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892853</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-08-21 18:47:31 -0700</bug_when>
    <thetext>I probably depends on Bug 219005

as the test 18 depends on it.

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

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

  return helper.start(() =&gt; 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: &lt;3 the typo &quot;Web-copmat&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892854</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-21 18:47:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/98956336&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892856</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-08-21 18:53:11 -0700</bug_when>
    <thetext>seeAlso https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize#browser_compatibility</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>