Bug 106613 - select element with an outline shrinks when it receives focus
Summary: select element with an outline shrinks when it receives focus
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 15:58 PST by Ojan Vafai
Modified: 2023-06-05 06:33 PDT (History)
11 users (show)

See Also:


Attachments
test case (271 bytes, text/html)
2013-01-10 15:58 PST, Ojan Vafai
no flags Details
Local Build with culprit UA rule removed (112.06 KB, image/png)
2023-06-03 21:38 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2013-01-10 15:58:36 PST
Created attachment 182220 [details]
test case

See test case.
Comment 1 Kent Tamura 2013-01-15 03:33:18 PST
Because we have outline-offset in html.css?

input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
    outline-offset: -2px
}
Comment 2 Ahmad Saleem 2023-05-27 07:07:55 PDT
We still have this issue:

https://searchfox.org/wubkat/source/Source/WebCore/css/html.css#1298
Comment 3 Ahmad Saleem 2023-06-03 21:37:06 PDT
(In reply to Kent Tamura from comment #1)
> Because we have outline-offset in html.css?
> 
> input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
>     outline-offset: -2px
> }

Removing this above makes both ‘select’ element looks same in Minibrowser - if I delete below UA stylesheet rule. Will attach screenshot.
Comment 4 Ahmad Saleem 2023-06-03 21:38:31 PDT
Created attachment 466587 [details]
Local Build with culprit UA rule removed
Comment 5 Karl Dubost 2023-06-04 22:34:33 PDT
It doesn't seem defined on Firefox. 

This was added in 
https://searchfox.org/wubkat/commit/c435dd62c7a5b3a5d1f6f7b04aa5e39072fa35bf
by Alan. 

Let's ask him.
Comment 6 zalan 2023-06-05 06:33:58 PDT
(In reply to Karl Dubost from comment #5)
> It doesn't seem defined on Firefox. 
> 
> This was added in 
> https://searchfox.org/wubkat/commit/c435dd62c7a5b3a5d1f6f7b04aa5e39072fa35bf
> by Alan. 
> 
> Let's ask him.
It was added to preserve existing behavior (patch was landed in 2016 while this bug was filed in 2013).