Bug 11965 - REGRESSION: 1 pixel on left/right inside of focus ring is erased while typing
Summary: REGRESSION: 1 pixel on left/right inside of focus ring is erased while typing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL: data:text/html,<textarea rows=10>
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2006-12-25 07:06 PST by David Kilzer (:ddkilzer)
Modified: 2007-12-05 08:39 PST (History)
3 users (show)

See Also:


Attachments
Zoomed screenshot showing missing pixels (28.81 KB, image/png)
2006-12-25 07:29 PST, David Kilzer (:ddkilzer)
no flags Details
Screenshot of text input (14.35 KB, image/png)
2006-12-25 20:04 PST, Matt Lilek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2006-12-25 07:06:57 PST
Summary:

When typing in a textarea that has lost and regained focus once, typing causes 1 pixel of the focus ring to be erased on the left and right inside border.

Steps to reproduce:

1. Open the URL above.
2. Put focus in textarea.
3. Type "asdf".
4. Tab out of the textarea.
5. Shift-tab into the textarea.
6. Type one more character, or delete one character.

Expected results:

The left/right inside focus ring should not lose 1 pixel of its border.

Actual results:

The left/right inside focus ring loses 1 pixel of its border.

Regression:

This is a regression from shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).

Notes:

May be related to Bug 9569.  Bug 8268 is similar, but affects the top/bottom border and is caused by the caret.
Comment 1 David Kilzer (:ddkilzer) 2006-12-25 07:29:26 PST
Created attachment 12017 [details]
Zoomed screenshot showing missing pixels 

Zoomed in screenshot of textarea showing missing 1 pixel left/right inner border of focus ring.
Comment 2 David Kilzer (:ddkilzer) 2006-12-25 07:47:32 PST
Tested with a locally-built debug build of WebKit r18411.

Comment 3 Matt Lilek 2006-12-25 20:04:38 PST
Created attachment 12021 [details]
Screenshot of text input

This screenshot shows this isn't limited to just textareas, but text inputs also.

<input type="text" style="border: 1px solid black;"> is the code from the screenshot.
Comment 4 David Kilzer (:ddkilzer) 2006-12-25 20:14:29 PST
(In reply to comment #3)
> Created an attachment (id=12021) [edit]
> Screenshot of text input
> 
> This screenshot shows this isn't limited to just textareas, but text inputs
> also.
> 
> <input type="text" style="border: 1px solid black;"> is the code from the
> screenshot.

Actually that's Bug 8268.

Comment 5 Mark Rowe (bdash) 2007-01-17 15:49:27 PST
<rdar://problem/4930969>
Comment 6 Antti Koivisto 2007-02-18 13:50:06 PST
This is most likely the same problem as bug 8268. See the comments there.
Comment 7 Adele Peterson 2007-04-04 13:41:23 PDT
I can no longer reproduce this.  Can someone else confirm?

(but I can still repro bug 8268)
Comment 8 mitz 2007-04-04 13:46:36 PDT
(In reply to comment #7)
> I can no longer reproduce this.  Can someone else confirm?
> 
> (but I can still repro bug 8268)
> 

I can still reproduce (using 10.4.9 here).
Comment 9 Alexey Proskuryakov 2007-12-05 05:48:58 PST
I cannot reproduce this with r28320 on Tiger (note that this is before Adele's patch for <rdar://problem/5499918>.
Comment 10 David Kilzer (:ddkilzer) 2007-12-05 08:39:01 PST
(In reply to comment #9)
> I cannot reproduce this with r28320 on Tiger (note that this is before Adele's
> patch for <rdar://problem/5499918>.

I don't see this anymore with a local debug build of WebKit r28434 with Safari 3.0.4 (523.12) on Mac OS X 10.4.11 (8S165).

Actually, it looks like the "inner" 1-pixel-wide ring of light blue shading is gone with the above configuration.

Marking as RESOLVED/FIXED.

Note that I can still reproduce Bug 8268.