Skip to content

Commit ff1175f

Browse files
committed
Crisper ticks on firefox.
1 parent 8bd5b65 commit ff1175f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/slider/slider.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ md-slider {
6868

6969
.md-slider-ticks {
7070
background: repeating-linear-gradient(to right, $md-slider-tick-color,
71-
$md-slider-tick-color $md-slider-tick-size, transparent 0, transparent) repeat-x;
71+
$md-slider-tick-color $md-slider-tick-size, transparent 0, transparent) repeat;
72+
/* Firefox doesn't draw the gradient correctly with 'to right'
73+
(see https://bugzilla.mozilla.org/show_bug.cgi?id=1314319). */
74+
background: -moz-repeating-linear-gradient(0.0001deg, $md-slider-tick-color,
75+
$md-slider-tick-color $md-slider-tick-size, transparent 0, transparent) repeat;
7276
height: $md-slider-track-thickness;
7377
width: 100%;
7478
opacity: 0;

0 commit comments

Comments
 (0)