diff --git a/proposals/conditional-css.md b/proposals/conditional-css.md index 6c506c2..3cf23f1 100644 --- a/proposals/conditional-css.md +++ b/proposals/conditional-css.md @@ -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