Update 'proposals/conditional-css.md'
This commit is contained in:
parent
fe649c7290
commit
60ab32b1e0
|
@ -4,7 +4,10 @@ One common use of JavaScript since the beginning was to dynamically change a pag
|
|||
So I propose that CSS should be extended such that style rules can be made conditional on the presence of another selector's presence. And optionally the position onscreen of the elements upon which it's conditional. The latter would be useful e.g. for highlighting links in a table of contents.
|
||||
|
||||
## Case Studies
|
||||
TODO
|
||||
* <detail> element
|
||||
* "Accordian" controls
|
||||
* hamburger menus
|
||||
* https://john.ankarstrom.se/english/texts/replacing-javascript/#css-examples
|
||||
|
||||
## Prior Work
|
||||
* https://john.ankarstrom.se/english/texts/replacing-javascript/#css-examples
|
||||
|
|
Loading…
Reference in New Issue