<?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>138949</bug_id>
          
          <creation_ts>2014-11-20 20:51:33 -0800</creation_ts>
          <short_desc>range.getBoundingClientRect() returns incorrect value for collapsed ranges</short_desc>
          <delta_ts>2022-09-18 17:04:42 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>196380</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glen Huang">hey.hgl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>enrica</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1050369</commentid>
    <comment_count>0</comment_count>
    <who name="Glen Huang">hey.hgl</who>
    <bug_when>2014-11-20 20:51:33 -0800</bug_when>
    <thetext>Example URL:
http://jsbin.com/lesobugupi/2/edit?html,js,output

Steps to reproduce the problem:
1. click on the hello text
2. see a 0 0 0 0 value in the output div

What went wrong?
range.getBoundingClientRect() should return a rect that denotes the range position even if it&apos;s collapsed, according to the spec http://www.w3.org/TR/cssom-view/#dom-range-getclientrects

Especially the &quot;including when the boundary-points are identical&quot; part.

Blink also has this problem. Works in gecko.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1057271</commentid>
    <comment_count>1</comment_count>
    <who name="Glen Huang">hey.hgl</who>
    <bug_when>2014-12-20 02:49:54 -0800</bug_when>
    <thetext>Blink has confirmed this bug.
https://code.google.com/p/chromium/issues/detail?id=435438

I believe this bug exists pre-fork.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899191</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-17 03:48:06 -0700</bug_when>
    <thetext>I am not able to reproduce this with Safari Technology Preview 153 and it does not show &quot;0 0 0 0&quot; value.

I will tag others to confirm whether it is fixed it or not. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899391</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-18 17:04:42 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 196380 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>