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 265844 bbebbcae56f4701f7172bfaf63d7719e19c1ef52
parent 265843 386c5f297cc4e7a0525689635f0c2526271c0f4a
child 265845 c5132b63860c15b94f8fe3f5ba657293b4fbe97f
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, sledru
bugs1144822
milestone39.0a2
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;