diff --git a/src/styles/global.css b/src/styles/global.css index d254f07c3b..772b20a8b5 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -22,14 +22,16 @@ /* Appearance › Reduce motion, or the system's reduced-motion preference: animations jump to their end state and transitions apply at once, so spinners stand still and popups appear without a - fade. Animation events still fire. */ + fade. Animation events still fire. Transitions get no duration at all: with the default + `transition-property: all`, any non-zero one would make every element, CodeMirror's height + gaps included, report its old size for a frame after a change and throw off layout reads. */ :root[data-reduce-motion] *, :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; - transition-duration: 0.01ms !important; + transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; } @@ -41,7 +43,7 @@ animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; - transition-duration: 0.01ms !important; + transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }