Web Inspector: Restore :not(:placeholder-shown) behavior on search bars with comments
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Oct 2015 18:42:15 +0000 (18:42 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Oct 2015 18:42:15 +0000 (18:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150452

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-10-22
Reviewed by Timothy Hatcher.

* UserInterface/Views/FindBanner.css:
(.find-banner.console-find-banner > input[type="search"]:not(:placeholder-shown)):
* UserInterface/Views/SearchBar.css:
(.search-bar > input[type="search"]:not(:placeholder-shown)):
Add back the placeholder-shown related styles and add a comment about what they are for.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191464 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/FindBanner.css
Source/WebInspectorUI/UserInterface/Views/SearchBar.css

index 857be4c..4c755a3 100644 (file)
@@ -1,3 +1,16 @@
+2015-10-22  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Restore :not(:placeholder-shown) behavior on search bars with comments
+        https://bugs.webkit.org/show_bug.cgi?id=150452
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/FindBanner.css:
+        (.find-banner.console-find-banner > input[type="search"]:not(:placeholder-shown)):
+        * UserInterface/Views/SearchBar.css:
+        (.search-bar > input[type="search"]:not(:placeholder-shown)):
+        Add back the placeholder-shown related styles and add a comment about what they are for.
+
 2015-10-22  Devin Rousso  <dcrousso+webkit@gmail.com>
 
         Web Inspector: Tabbing over CSS properties prepended by * doesn't move the highlighted range
index 889eefa..61ba004 100644 (file)
@@ -218,3 +218,9 @@ body.window-inactive .find-banner {
 .find-banner.console-find-banner > input[type="search"]:focus {
     background-color: white;
 }
+
+/* Make the search field's background white when it is not focused and has content.
+   Needs to be a separate rule. See http://webkit.org/b/118162 */
+.find-banner.console-find-banner > input[type="search"]:not(:placeholder-shown) {
+    background-color: white;
+}
index 3b101cd..66b09fa 100644 (file)
@@ -46,3 +46,9 @@
 .search-bar > input[type="search"]:focus {
     background-color: white;
 }
+
+/* Make the search field's background white when it is not focused and has content.
+   Needs to be a separate rule. See http://webkit.org/b/118162 */
+.search-bar > input[type="search"]:not(:placeholder-shown) {
+    background-color: white;
+}