Shim not working with pseudo classes and content.
See original GitHub issueIn the docs there is only example of using pseudo classes like after in combination with { content } utility.
In the case of using shim, one would assume the syntax would be similar.
Ex.
<p class="after::content-['*']">I should have an ::after with a * bellow me</div>
^ except this doesn’t work
Is there a different syntax for using pseudo classes and content with shim or is it straight up unsupported?
Small repro can be found here
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Why is :hover:after valid but not :after:hover? CSS Pseudo ...
CSS Pseudo-Class and Pseudo-Element Selectors ... I tried to add an underline style to an element on hover and it was not working....
Read more >Error while using pseudo class in css [#2991620] | Drupal.org
I am using Drupal 8.5.4. Fontawesome module 8.x-2.3. Fontawesome library 5.1.0. My settings are: - svg with js (but i tried also webfont)...
Read more >why this pseudo class selector is not working? - Stack Overflow
I've found out what the problem is. ::after is used to add content after an existing element, not to style elements that come...
Read more >Pseudo-classes - CSS: Cascading Style Sheets | MDN
A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). For example, the pseudo-class...
Read more >HTML5-Form-Shim/index.html at master · dsheiko ... - GitHub
HTML5-Form-Shim/index.html · Take in the account that legacy browsers ignore CSS pseudo-classes · :focus ·, · :invalid ·, · :valid ·, so use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

In my humble opinion, we (as a user community) should resist the temptation to ask @sastan to fix bugs / maintain Twind
0.x, which by definition is alpha software.Let’s focus on v1 which has been under heavy development in the last few weeks and is now starting to look great! 😃 https://github.com/tw-in-js/twind/tree/next
PSA - this has changed since this commit: https://github.com/tw-in-js/twind/commit/5c1934d9b2977000c755273b8a1723d9b670bfcf