Replies: 1 comment
-
|
@kerryj89 It's going to be a bit difficult because different CSS features have complex and unique behaviors. Let me guess you should want: <!-- 🥲 Browser does not support -->
<label class="font:blue:has(:checked)">
<input checked>
</label>But if so: <div class="display:flex flex:col">
<!-- 🤩 WoW -->
<input checked class="font:blue:checked+label order:1" type="checkbox">
<label class="order:0">title</label>
</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since the styles are applied through JS, I wonder if you can write logic to polyfill
:has()? That is the golden css selector that everyone has needed at one point or another. With that, you won't even need the better supported:focus-within, just do:has(:focus)and I have needed a similar:checked-withinwhich does not exist, but with:has(:checked)that would be easy.Beta Was this translation helpful? Give feedback.
All reactions