Bug 1326141 - Make .collapse property affect height computation. r=MattN draft
authorRay Lin <ralin@mozilla.com>
Tue, 21 Feb 2017 10:13:48 +0800
changeset 487883 e236b912b7d3558ae0e18cdce54df3061b635f3b
parent 487882 d98d87fc9e2a5dcd86769eec829dd8153d7ab656
child 546602 542b9898c23c07c068e168fceda19e674faa9b1a
push id46386
push userbmo:ralin@mozilla.com
push dateWed, 22 Feb 2017 10:19:01 +0000
reviewersMattN
bugs1326141
milestone54.0a1
Bug 1326141 - Make .collapse property affect height computation. r=MattN MozReview-Commit-ID: BE5U8iKhYsO
browser/extensions/formautofill/content/formautofill.css
--- a/browser/extensions/formautofill/content/formautofill.css
+++ b/browser/extensions/formautofill/content/formautofill.css
@@ -7,11 +7,17 @@
   margin: 0;
   padding: 0;
   height: auto;
   min-height: auto;
 
   -moz-binding: url("chrome://formautofill/content/formautofill.xml#autocomplete-profile-listitem");
 }
 
+/* Treat @collpased="true" as display: none similar to how it is for XUL elements.
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Values */
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="autofill-profile"][collapsed="true"] {
+  display: none;
+}
+
 #PopupAutoComplete[firstresultstyle="autofill-profile"] {
   min-width: 150px !important;
 }