Код: Выделить всё
@counter-style path-data {
system: fixed;
symbols: "M0 0 L 140 140";
suffix: " ";
}
svg {
width: 10rem;
height: 10rem;
background: salmon;
path {
stroke: black;
stroke-width: 0.4rem;
&:nth-of-type(1) {
counter-reset: circled 1;
d: path(counter(circled, path-data));
}
&:nth-of-type(2) {
counter-reset: circled 1;
--var: "M140 0 L 0 140";
d: path(var(--var));
}
}
}
div::before {
counter-reset: circled 1;
content: counter(circled, path-data)
}
Код: Выделить всё
... just to double check im getting the right string
Подробнее здесь: https://stackoverflow.com/questions/791 ... r-actually