Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[css-ui] Hide input[type=search] icons when appearance: textfield is set
https://bugs.webkit.org/show_bug.cgi?id=238751 <rdar://91253463> Reviewed by Aditya Keerthi and Antti Koivisto. This forces the display value to none when appearance: textfield is set to make it look like input[type=text], matching the CSS UI spec. There are however still two issues in order to make input[type=search] match input[type=text] fully with appearance: textfield: - iOS has special UA styles in html.css that need to stop applying with appearance: textfield - The focus outline offset is inflated on macOS (although this is an issue with other contexts too), see webkit.org/b/241102 * LayoutTests/TestExpectations: * LayoutTests/fast/forms/search/search-padding-cancel-results-buttons.html: * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/ios/fast/css/input-search-padding-expected.txt: * LayoutTests/platform/gtk/fast/css/input-search-padding-expected.png: * LayoutTests/platform/gtk/fast/css/input-search-padding-expected.txt: * Source/WebCore/html/shadow/TextControlInnerElements.cpp: (WebCore::SearchFieldResultsButtonElement::resolveCustomStyle): (WebCore::SearchFieldCancelButtonElement::resolveCustomStyle): Canonical link: https://commits.webkit.org/253691@main
- Loading branch information
Showing
7 changed files
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ | ||
<head> | ||
<style> | ||
input { | ||
-webkit-appearance: textfield; | ||
appearance: none; | ||
padding: 10px; | ||
} | ||
</style> | ||
BIN
+50 Bytes
(100%)
LayoutTests/platform/gtk/fast/css/input-search-padding-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters