General sibling combinator (~), not updating on DOM changes, working as intended?

前端 未结 2 1346
[愿得一人]
[愿得一人] 2021-01-16 03:05

I had a go at at this question (this question isn\'t related at all to his question), and tried to solve it through applying CSS selectors depending on whether the checkboxe

相关标签:
2条回答
  • 2021-01-16 03:44

    Your CSS looks correct, but browser support, of course, varies, and where there is support, there will be bugs. Javascript would be much more reliable.

    0 讨论(0)
  • 2021-01-16 04:00

    Webkit had problems with siblings and andjacents when combined with pseudoclases. I had some problems with :hover, it's possible that the same thing happens with :checked. It should be fixed in recent nightly chromium builds. If so this bug will some time end in stable chrome version.

    0 讨论(0)
提交回复
热议问题