https://bugzilla.wikimedia.org/show_bug.cgi?id=60716

       Web browser: ---
            Bug ID: 60716
           Summary: [Regression] Placeholder for search input is black
                    instead of gray (again)
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: code-update-regression
          Severity: normal
          Priority: Unprioritized
         Component: Skin and page rendering
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: listenle...@gmail.com
                CC: jrob...@wikimedia.org, krinklem...@gmail.com,
                    matma....@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

Since
https://git.wikimedia.org/commitdiff/mediawiki%2Fcore.git/132ed8f5e013f19f67b34edbf58c31bb3f959bbe,
the CSS file contains the code:

  div#simpleSearch input:-ms-input-placeholder,
  div#simpleSearch input:-moz-placeholder,
  div#simpleSearch input::-webkit-input-placeholder {
    color: #999;
  }

This is wrong, you must use three separate rules, even if they all specify the
same "color: #999;", as a browser should ignore a rule completely when it
contains an unknown selector. I.e. the file search.less should write

&:-ms-input-placeholder {
color: #999;
}
&:-moz-placeholder {
color: #999;
}
&::-webkit-input-placeholder {
color: #999;
}

(and perhaps a comment to explain why three different rules for the same style
are necessary, as this isn't obvious).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to