W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

Re: [csswg-drafts] [css-apply-rule] New advocate for the spec

From: rolfen via GitHub <sysbot+gh@w3.org>
Date: Tue, 31 Oct 2017 23:05:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-340932987-1509491145-sysbot+gh@w3.org>
@apply is pretty cool. It basically allows you to re-use CSS declaration blocks without having to copy them around, without having to modify their selectors and without having to use a CSS pre-processor (eventually).

It will make it easier to use CSS frameworks and keep semantic class names at the same time.

CSS frameworks won't have to use visual semantics anymore (`<input class="fl w-third ba b--blue pa3 h3">`...). 

It would be a simple, native solution. I would hate to see it dropped in favor of something more complicated.

-- 
GitHub Notification of comment by rolfen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1047#issuecomment-340932987 using your GitHub account
Received on Tuesday, 31 October 2017 23:05:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC