Update 'proposals/conditional-css.md'

This commit is contained in:
alcinnz 2018-11-29 16:45:12 -05:00
parent fe649c7290
commit 60ab32b1e0
1 changed files with 4 additions and 1 deletions

View File

@ -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