Bug 1326141 - Make .collapse property affect height computation. r=MattN
☠☠ backed out by e2bd855c3e5d ☠ ☠
authorRay Lin <ralin@mozilla.com>
Tue, 21 Feb 2017 10:13:48 +0800
changeset 373725 9bbe2c180655a60ec5e5c94791200c3fca37435e
parent 373724 6055065a2ed5bbfa0dafb62d13d62e33e2742eab
child 373726 41a156cf149e667f172f93c7492b466cfbb20565
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;
 }