/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/counter-scoping/style.module.css
71 строка
997 B
Alexander Akait
feat(css): scope counter names in CSS modules (#21600)
04 авг 2026, 15:36
Не верифицирован
04 авг 2026, 15:36
d6fbda7
Код
Авторство
О чём код?
@counter-style thumbs { system: cyclic; symbols: "\2022"; suffix: " "; } .list { counter-reset: section 0 list-item 3; } .item { counter-increment: section; } .item::before { content: counter(section, decimal) ". "; } .styled::before { content: counter(section, thumbs); } .nested::before { content: counters(section, ".", thumbs); } .reversed { counter-reset: reversed(section) page pages; } .setter { counter-set: section 1; } .cleared { counter-reset: none; } .dashed { counter-reset: --dashedCounter; } .dashed::before { content: counter(--dashedCounter); } .escaped { counter-reset: global(globalCounter) local(localCounter); } .escaped::before { content: counter(global(globalCounter)) counter(localCounter, global(globalStyle)); } .target::before { content: target-counter(url("#anchor"), section, thumbs); } .marker { list-style-type: thumbs; } @value aliased: section; .valued { counter-reset: aliased; } .valued::before { content: counter(aliased); }