W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-selectors] Reference selectors (#3714)

From: Giuseppe via GitHub <sysbot+gh@w3.org>
Date: Tue, 19 Mar 2019 11:51:53 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-474330631-1552996311-sysbot+gh@w3.org>
@matthewp, @threepointone I am not sure about that. There is definitely smarter people than me in this thread to make the final call but I'd probably expect that to be doable but scoped to the current module only - after all that's possible in JS 

```js
function foo() {
	return `color: red`
}

function foo() {
	return `color: green`
}

console.log(`
.foo {
  ${foo()}
}
`)
```

or with Sass mixins

```scss
@mixin foo() {
  color: red;
}

@mixin foo() {
  color: green;
}

.foo {
  @include foo()
}
```

-- 
GitHub Notification of comment by giuseppeg
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3714#issuecomment-474330631 using your GitHub account
Received on Tuesday, 19 March 2019 11:51:54 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:05 UTC