I have a chess board with a counter variable for its fields. It is initialized using counter-reset and -1, and increments by one per field. Now I am trying to access that css counter variable using something that's not a :before or :after hack.
Asked
Active
Viewed 22 times
0
-
AFAIK there is no way to access a CSS counter from JS. – evolutionxbox Oct 04 '20 at 18:52
-
1Does this answer your question? [How to access CSS generated content with JavaScript](https://stackoverflow.com/questions/2651739/how-to-access-css-generated-content-with-javascript) – evolutionxbox Oct 04 '20 at 18:54