diff --git a/theme/components/dropdown/dropdown.css b/theme/components/dropdown/dropdown.css index 9cbf70de..532b9620 100644 --- a/theme/components/dropdown/dropdown.css +++ b/theme/components/dropdown/dropdown.css @@ -19,7 +19,7 @@ position: absolute; top: 50%; - transform: translate( 0, -50% ); + transform: translate3d( 0, -50%, 0 ); } /* Dropdown button should span horizontally, e.g. in vertical toolbars */ @@ -44,9 +44,12 @@ position: absolute; left: 0px; - transform: translateY( 100% ); + transform: translate3d( 0, 100%, 0 ); } .ck-dropdown__panel-visible { display: inline-block; + + /* This will prevent blurry icons in dropdown on Firefox. See #340. */ + will-change: transform; } diff --git a/theme/components/icon/icon.css b/theme/components/icon/icon.css index 156a8b17..3fc4faf0 100644 --- a/theme/components/icon/icon.css +++ b/theme/components/icon/icon.css @@ -11,6 +11,9 @@ svg.ck-icon { /* Inherit cursor style (#5). */ cursor: inherit; + /* This will prevent blurry icons on Firefox. See #340. */ + will-change: transform; + & * { /* Inherit cursor style (#5). */ cursor: inherit;