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

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

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 May 2017 01:49:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-301357572-1494812970-sysbot+gh@w3.org>
@tabatkins, I think you’ve indicated that apply is a bad solution which should _not_ be implemented. If that’s accurate, would you mind placing a deprecated notice or something similar to the spec linked above?

Secondly, @tabatkins, do you think there might be an acceptable alternative to `@apply`, or do you think its best lightdom does not have such a feature? In the event there is hope for an alternative, @NicolasJEngler, would you accept moving forward with that, or would you still want an advocate for the `@apply` syntax specifically?

I am curious if something like `::part` or `::theme` can still be applied to the lightdom. I roughly understand its syntax may rely on a `part` attribute in HTML, but could that attribute become an identifier within CSS itself?

``` css
/* style any focused element with a "my-ident" part */
::theme(my-ident):focus {
  color: var(--one);
}

x-component {
  --one: blue;
  part: my-ident;
}
```

-- 
GitHub Notification of comment by jonathantneal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1047#issuecomment-301357572 using your GitHub account
Received on Monday, 15 May 2017 01:49:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC