WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
227135
[iOS] Update textfield border color to match specification
https://bugs.webkit.org/show_bug.cgi?id=227135
Summary
[iOS] Update textfield border color to match specification
Aditya Keerthi
Reported
2021-06-17 11:36:24 PDT
...
Attachments
For EWS
(285.47 KB, patch)
2021-06-17 11:39 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Patch
(287.21 KB, patch)
2021-06-21 08:40 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Aditya Keerthi
Comment 1
2021-06-17 11:37:00 PDT
<
rdar://problem/79456679
>
Aditya Keerthi
Comment 2
2021-06-17 11:39:22 PDT
Created
attachment 431695
[details]
For EWS
James Craig
Comment 3
2021-06-17 14:23:27 PDT
Could the layout tests cover the IC variant?
James Craig
Comment 4
2021-06-17 14:34:39 PDT
Relating
bug 227145
as tracking the checkboxes, etc.
James Craig
Comment 5
2021-06-17 14:49:30 PDT
Comment on
attachment 431695
[details]
For EWS View in context:
https://bugs.webkit.org/attachment.cgi?id=431695&action=review
> Source/WebCore/css/html.css:417 > + border: 1px solid -apple-system-opaque-separator;
From another thread, this should be -apple-system-separator since it has an IC variant.
Aditya Keerthi
Comment 6
2021-06-21 08:40:58 PDT
Created
attachment 431864
[details]
Patch
Aditya Keerthi
Comment 7
2021-06-21 08:50:58 PDT
(In reply to James Craig from
comment #3
)
> Could the layout tests cover the IC variant?
The layout tests update are old render tree dumps, I would prefer not to add new render tree dump tests or to modify existing ones. We could update fast/css/ios/system-color-for-css-value.html, but that would require new logic to force IC mode in tests. I've filed
https://bugs.webkit.org/show_bug.cgi?id=227218
to track adding the mechanism / tests.
Maciej Stachowiak
Comment 8
2021-06-21 13:12:00 PDT
Comment on
attachment 431864
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431864&action=review
> Source/WebCore/css/html.css:417 > + border: 1px solid -apple-system-opaque-separator;
It looks like James's suggestion to use -apple-system-separator here instead has not been applied.
Maciej Stachowiak
Comment 9
2021-06-21 13:12:01 PDT
Comment on
attachment 431864
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431864&action=review
> Source/WebCore/css/html.css:417 > + border: 1px solid -apple-system-opaque-separator;
It looks like James's suggestion to use -apple-system-separator here instead has not been applied.
Aditya Keerthi
Comment 10
2021-06-21 13:18:12 PDT
(In reply to Maciej Stachowiak from
comment #9
)
> Comment on
attachment 431864
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=431864&action=review
> > > Source/WebCore/css/html.css:417 > > + border: 1px solid -apple-system-opaque-separator; > > It looks like James's suggestion to use -apple-system-separator here instead > has not been applied.
We still want an opaque color, hence the use of "-apple-system-opaque-separator". "-apple-system-separator" is a transparent color. From the other thread, we actually want to use separatorColor composited on top of a solid color (essentially creating our own opaque separator, since the UIKit version is currently missing an Increased Contrast variant). Consequently, the change that James mentions is actually applied in the RenderThemeIOS change in the patch, where we now use separatorColor with the compositing behavior. The name of the CSS value is kept the same to reflect the opaqueness.
Maciej Stachowiak
Comment 11
2021-06-21 17:37:47 PDT
Comment on
attachment 431864
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431864&action=review
r=me but see question.
>>>> Source/WebCore/css/html.css:417 >>>> + border: 1px solid -apple-system-opaque-separator; >>> >>> It looks like James's suggestion to use -apple-system-separator here instead has not been applied. >> >> It looks like James's suggestion to use -apple-system-separator here instead has not been applied. > > We still want an opaque color, hence the use of "-apple-system-opaque-separator". "-apple-system-separator" is a transparent color. > > From the other thread, we actually want to use separatorColor composited on top of a solid color (essentially creating our own opaque separator, since the UIKit version is currently missing an Increased Contrast variant). > > Consequently, the change that James mentions is actually applied in the RenderThemeIOS change in the patch, where we now use separatorColor with the compositing behavior. The name of the CSS value is kept the same to reflect the opaqueness.
I see! I'm not totally sure how the change in RenderThemeIOS.mm does that. Does the ", true" force compositing on top of a solid color? Does that handle dark mode in a reasonable way (as pointed out in another comment in this Radar)?
Aditya Keerthi
Comment 12
2021-06-21 17:54:21 PDT
(In reply to Maciej Stachowiak from
comment #11
)
> Comment on
attachment 431864
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=431864&action=review
> > r=me but see question. > > >>>> Source/WebCore/css/html.css:417 > >>>> + border: 1px solid -apple-system-opaque-separator; > >>> > >>> It looks like James's suggestion to use -apple-system-separator here instead has not been applied. > >> > >> It looks like James's suggestion to use -apple-system-separator here instead has not been applied. > > > > We still want an opaque color, hence the use of "-apple-system-opaque-separator". "-apple-system-separator" is a transparent color. > > > > From the other thread, we actually want to use separatorColor composited on top of a solid color (essentially creating our own opaque separator, since the UIKit version is currently missing an Increased Contrast variant). > > > > Consequently, the change that James mentions is actually applied in the RenderThemeIOS change in the patch, where we now use separatorColor with the compositing behavior. The name of the CSS value is kept the same to reflect the opaqueness. > > I see! I'm not totally sure how the change in RenderThemeIOS.mm does that. > Does the ", true" force compositing on top of a solid color? Does that > handle dark mode in a reasonable way (as pointed out in another comment in > this Radar)?
Yes, the compositing behavior activated with the ", true". The way we handle dark mode is by compositing the dark mode variant of the color over solid black (logic in `systemColorFromCSSValueSystemColorInformation`). Thanks for the review!
EWS
Comment 13
2021-06-21 18:00:32 PDT
Committed
r279097
(
239014@main
): <
https://commits.webkit.org/239014@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431864
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug