/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
core/scss/tests/_transition.test.scss
43 строки
1 KB
Paweł Kuna
Unify workspace lint, format, and type-check quality gates (#2732)
30 июл 2026, 20:36
Не верифицирован
30 июл 2026, 20:36
6db32ea
Код
Авторство
О чём код?
// Output tests for the `transition` mixin in scss/mixins/bootstrap/_transition.scss. // With `$enable-transitions` and `$enable-reduced-motion` both true (the // defaults), a real transition also emits a `prefers-reduced-motion` reset — // except when the value itself is `none`. @use '../mixins/bootstrap/transition' as *; @include describe('transition') { @include it('emits the transition plus a reduced-motion reset') { @include assert() { @include output() { .t { @include transition(color 0.3s); } } @include expect() { .t { transition: color 0.3s; } @media (prefers-reduced-motion: reduce) { .t { transition: none; } } } } } @include it('skips the reduced-motion reset when the value is none') { @include assert() { @include output() { .t { @include transition(none); } } @include expect() { .t { transition: none; } } } } }