<?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>187524</bug_id>
          
          <creation_ts>2018-07-10 09:20:21 -0700</creation_ts>
          <short_desc>getClientRects and getBoundingClientRect don&apos;t follow the spec for tables</short_desc>
          <delta_ts>2022-07-26 15:15:26 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>FromImplementor, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1440863</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2018-07-10 09:20:21 -0700</bug_when>
    <thetext>VERSION: Safari TP 57

STEPS TO REPRODUCE: Load attached testcase.

EXPECTED BEHAVIOR: Alert shows a list with two rects in it.

ACTUAL BEHAVIOR: Alert shows a list with only one rect.

ADDITIONAL INFORMATION: https://drafts.csswg.org/cssom-view/#dom-element-getclientrects says:

  If the element on which the method was invoked has a
  computed value for the display property of table or
  inline-table include both the table box and the caption
  box, if any, but not the anonymous container box.

but WebKit seems to be returning only the anonymous container box.

Gecko follows the spec here, fwiw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440866</commentid>
    <comment_count>1</comment_count>
      <attachid>344704</attachid>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2018-07-10 09:20:59 -0700</bug_when>
    <thetext>Created attachment 344704
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440931</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-07-10 11:35:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/42033168&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886925</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-26 15:15:16 -0700</bug_when>
    <thetext>Chrome Canary 106:

{&quot;0&quot;:{&quot;x&quot;:8,&quot;y&quot;:8,&quot;width&quot;:200,&quot;height&quot;:37,&quot;top&quot;:8,&quot;right&quot;:208,&quot;bottom&quot;:45,&quot;left&quot;:8}}

Firefox Nightly 104:

{&quot;0&quot;:{&quot;x&quot;:8,&quot;y&quot;:25,&quot;width&quot;:100,&quot;height&quot;:20,&quot;top&quot;:25,&quot;right&quot;:108,&quot;bottom&quot;:45,&quot;left&quot;:8},&quot;1&quot;:{&quot;x&quot;:8,&quot;y&quot;:8,&quot;width&quot;:200,&quot;height&quot;:17,&quot;top&quot;:8,&quot;right&quot;:208,&quot;bottom&quot;:25,&quot;left&quot;:8}}

Safari 15.6 on macOS 12.5:

{&quot;0&quot;:{&quot;x&quot;:8,&quot;y&quot;:8,&quot;width&quot;:200,&quot;height&quot;:37,&quot;top&quot;:8,&quot;right&quot;:208,&quot;bottom&quot;:45,&quot;left&quot;:8}}

______

I a not sure on expected behavior but it seems Safari and Chrome are only showing single rect rather than two like Firefox. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>344704</attachid>
            <date>2018-07-10 09:20:59 -0700</date>
            <delta_ts>2018-07-10 09:20:59 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>baz.html</filename>
            <type>text/html</type>
            <size>219</size>
            <attacher name="Boris Zbarsky">bzbarsky</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+Cjx0YWJsZSBzdHlsZT0id2lkdGg6IDEwMHB4OyBoZWlnaHQ6IDIwcHgi
PgogIDxjYXB0aW9uIHN0eWxlPSJ3aWR0aDogMjAwcHg7IGhlaWdodDogMTdweCI+PC9jYXB0aW9u
Pgo8L3RhYmxlPgo8c2NyaXB0PgogIGFsZXJ0KEpTT04uc3RyaW5naWZ5KGRvY3VtZW50LnF1ZXJ5
U2VsZWN0b3IoInRhYmxlIikuZ2V0Q2xpZW50UmVjdHMoKSkpOwo8L3NjcmlwdD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>