Skip to content

Commit ec709b4

Browse files
sispsquidfunk
andauthored
Fixed rendering issue for rotated annotation icons in Firefox (#5937)
Co-authored-by: Martin Donath <[email protected]>
1 parent 3eb1887 commit ec709b4

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

material/assets/stylesheets/main.f814a825.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.f814a825.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.43b9b3ee.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f814a825.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">

src/assets/stylesheets/main/components/_tooltip.scss

+6
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@
162162
transition: z-index 250ms;
163163
}
164164

165+
// Hack: Work around Firefox bug that renders a subpixel outline when
166+
// rotating a mask image element.
167+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1671784
168+
overflow: hidden; // stylelint-disable-line order/properties-order
169+
border-radius: 0.01px;
170+
165171
// [screen]: Render annotation markers as icons
166172
@media screen {
167173
width: 2.2ch;

0 commit comments

Comments
 (0)