- From: Nadya678 via GitHub <sysbot+gh@w3.org>
- Date: Sat, 10 Feb 2018 19:10:41 +0000
- To: public-css-archive@w3.org
Nadya678 has just created a new issue for https://github.com/w3c/csswg-drafts: == [CSS-SELECTORS-4]#defines - like in programming language == I propose add to CSS specification "defines" known from pascal or C++. I propose: for selectors: `@define selector textish {input[type="text"], input[type="mail"], input[type="url"]}` usage in code: `body>$textish` will be equivalent of: `body>input[type="text"], body>input[type="mail"], body>input[type="url"]` `$textish.mainform` will be equivalent of: `input[type="text"].mainform, input[type="mail"].mainform, input[type="url"].mainform` for properties: ``` @define block framed { border: 2rem solid #000; border-radius:10rem; } ``` usage: ``` body>ul { block: framed; background: white; } ``` will be equivalent: ``` body>ul { border: 2rem solid #000; border-radius:10rem; background: white; } ``` What do you think about this proposal? Is it possible to add this or similar solution to selectors level 4? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2298 using your GitHub account
Received on Saturday, 10 February 2018 19:10:42 UTC