Bug 1144822 - Hide elements with common hidden class names in reader content. r=Gijs, a=sledru
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Thu, 09 Apr 2015 16:17:22 -0700
changeset 260399 e4a70d181871
parent 260398 9a494b64194e
child 260400 80a9584ac5e4
push id771
push userryanvm@gmail.com
push date2015-05-05 02:31 +0000
treeherdermozilla-release@810e81a9bced [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, sledru
bugs1144822
milestone38.0
Bug 1144822 - Hide elements with common hidden class names in reader content. r=Gijs, a=sledru
mobile/android/themes/core/aboutReader.css
toolkit/themes/shared/aboutReader.css
--- a/mobile/android/themes/core/aboutReader.css
+++ b/mobile/android/themes/core/aboutReader.css
@@ -271,16 +271,25 @@ body {
   list-style: disc !important;
 }
 
 .content ol {
   -moz-padding-start: 35px !important;
   list-style: decimal !important;
 }
 
+/* Hide elements with common "hidden" class names */
+#moz-reader-content .visually-hidden,
+#moz-reader-content .visuallyhidden,
+#moz-reader-content .hidden,
+#moz-reader-content .invisible,
+#moz-reader-content .sr-only {
+  display: none;
+}
+
 /*======= Controls toolbar =======*/
 
 .toolbar {
   font-family: sans-serif;
   transition-property: bottom;
   transition-duration: 0.3s;
   position: fixed;
   width: 100%;
--- a/toolkit/themes/shared/aboutReader.css
+++ b/toolkit/themes/shared/aboutReader.css
@@ -254,16 +254,25 @@ body.loaded {
   list-style: disc;
 }
 
 .content ol {
   -moz-padding-start: 30px;
   list-style: decimal;
 }
 
+/* Hide elements with common "hidden" class names */
+#moz-reader-content .visually-hidden,
+#moz-reader-content .visuallyhidden,
+#moz-reader-content .hidden,
+#moz-reader-content .invisible,
+#moz-reader-content .sr-only {
+  display: none;
+}
+
 /*======= Controls toolbar =======*/
 
 .toolbar {
   font-family: Helvetica, Arial, sans-serif;
   position: fixed;
   height: 100%;
   top: 0;
   left: 0;