Commit e7293331 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1643279 - Fix specificity of select rules in forms.css. r=jwatt, a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D78252
parent 5415be42
......@@ -243,9 +243,12 @@ select:active:hover {
%endif
/* Need the "select[size][multiple]" selector to override the settings on
'select[size="1"]', eg if one has <select size="1" multiple> */
'select[size="1"]', eg if one has <select size="1" multiple>, and that it
needs to be separate from the other :is() selector because otherwise it'd
increase the specificity of it, and override the rule below */
select:is([size], [multiple], [size][multiple]) {
select:is([size], [multiple]),
select[size][multiple] {
/* Different alignment and padding for listbox vs combobox */
background-color: -moz-Field;
color: -moz-FieldText;
......
<!doctype html>
<title>select size=1 renders the same as plain select</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1643279">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="select-size-ref.html">
<select size="1">
<option value ="1">1</option>
<option value ="2">2</option>
<option value ="3">3</option>
</select>
<!doctype html>
<title>select size=0 renders the same as plain select</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1643279">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="select-size-ref.html">
<select size="0">
<option value ="1">1</option>
<option value ="2">2</option>
<option value ="3">3</option>
</select>
<!doctype html>
<title>Test reference.</title>
<select>
<option value ="1">1</option>
<option value ="2">2</option>
<option value ="3">3</option>
</select>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment