summaryrefslogtreecommitdiffstats
path: root/toolkit/content/widgets/marquee.css
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/content/widgets/marquee.css')
-rw-r--r--toolkit/content/widgets/marquee.css22
1 files changed, 8 insertions, 14 deletions
diff --git a/toolkit/content/widgets/marquee.css b/toolkit/content/widgets/marquee.css
index b898cd0dce..6cdb52ca02 100644
--- a/toolkit/content/widgets/marquee.css
+++ b/toolkit/content/widgets/marquee.css
@@ -2,25 +2,19 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-.outerDiv {
- overflow: hidden;
- width: -moz-available;
+slot {
+ display: block;
+ will-change: translate;
}
-.horizontal > .innerDiv {
- width: max-content;
- /* We want to create overflow of twice our available space. */
- padding: 0 100%;
-}
-
-/* disable scrolling in contenteditable */
-:host(:read-write) .innerDiv {
- padding: 0 !important;
+/* Disable the animation on contenteditable */
+:host(:read-write) > slot {
+ translate: none !important;
}
/* When printing or when the user doesn't want movement, we disable scrolling */
@media print, (prefers-reduced-motion) {
- .innerDiv {
- padding: 0 !important;
+ slot {
+ translate: none !important;
}
}