Bug 20129

Summary: Cursor position in empty editable element does not respect padding
Product: WebKit Reporter: Torsten Radtke <torsten.radtke>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: enrica, gur.trio, leviw, michael.vm, mitz, rniwa, shezbaig.wk
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.5   
Attachments:
Description Flags
Test case XML file
none
Test case CSS file
none
reduction none

Description Torsten Radtke 2008-07-22 03:00:17 PDT
The position of the cursor when clicking on an empty element filled with the :empty:before CSS rule ignores the CSS padding property. It is always drawn in the top left corner of the box. See the attached files for an example.
Comment 1 Torsten Radtke 2008-07-22 03:00:53 PDT
Created attachment 22423 [details]
Test case XML file
Comment 2 Torsten Radtke 2008-07-22 03:01:31 PDT
Created attachment 22425 [details]
Test case CSS file
Comment 3 Ryosuke Niwa 2012-05-01 21:54:33 PDT
Created attachment 139743 [details]
reduction
Comment 4 Alexey Proskuryakov 2012-05-02 12:54:44 PDT
See also: bug 20242, bug 21785.
Comment 5 gur.trio 2013-12-18 03:16:50 PST
(In reply to comment #0)
> The position of the cursor when clicking on an empty element filled with the :empty:before CSS rule ignores the CSS padding property. It is always drawn in the top left corner of the box. See the attached files for an example.

Latest webkit and chrome its working. Please confirm so that we can close this.
Comment 6 Ryosuke Niwa 2013-12-24 00:11:12 PST
Works as expected now.
Comment 7 gur.trio 2013-12-24 00:56:46 PST
*** Bug 21785 has been marked as a duplicate of this bug. ***
Comment 8 gur.trio 2013-12-24 00:58:01 PST
*** Bug 20242 has been marked as a duplicate of this bug. ***
Comment 9 Torsten Radtke 2014-01-03 07:36:02 PST
Works as expected in Safari Version 7.0.1 (9537.73.11)