3 ms·
You can wrap things in a checkbox, and use :checked in CSS. It's a little weird and perhaps misuse of input fields.
by mrweasel 5y ago
You can wrap things in a checkbox, and use :checked in CSS.
It's a little weird and perhaps misuse of input fields.
- The_rationalist 5y agoI know, this is the only non-js way to achieve this but not sure it should be used in production
- c-smile 5y agoJust in case, in Sciter if you will add this: div { behavior:check; } then any div will behave as a checkbox - will toggle :checked flag on element and so we can use: div:checked { color:red; } no JS is required at all.
- slver 5y agoSince you're familiar with Sciter, how close it is to actual HTML/CSS? How does it differ? What are your high-level impressions.
- c-smile 5y agoHTML (as a language): supports all HTML5 constructs. CSS: CSS 2.1 in full + some most popular CSS3 modules like transition, animation, transform, etc. CSS flex and grid are supported but in Sciter specification, see: https://terrainformatica.com/2018/12/11/10-years-of-flexboxing/ https://terrainformatica.com/2018/12/11/10-years-of-flexboxi... JavaScript: ES2020 specification in full + native JSX and Reactor, see: https://sciter.com/tutorials/reactor-hello-world/ https://sciter.com/tutorials/reactor-hello-world/ JavaScript runtime: + most popular and used JS DOM APIs + Node.JS runtime: FS, Net, Process + Desktop specific runtime, for example HTML Windows (https://sciter.com/html-window/ https://sciter.com/html-window/), components (https://sciter.com/tutorial-learn-sciters-html-components-in-5-minutes/ https://sciter.com/tutorial-learn-sciters-html-components-in...), etc. See: https://sciter.com/developers/for-web-programmers/ https://sciter.com/developers/for-web-programmers/