Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

custom selectors are pseudo classes #6

Closed
MoOx opened this issue Apr 8, 2015 · 3 comments
Closed

custom selectors are pseudo classes #6

MoOx opened this issue Apr 8, 2015 · 3 comments
Labels

Comments

@MoOx
Copy link
Contributor

MoOx commented Apr 8, 2015

Should be

@custom-selector :--heading h1, h2, h3, h4, h5, h6;

:--heading { /* styles for all headings */ }
:--heading + p { /* more styles */ }

http://dev.w3.org/csswg/css-extensions/#example-5b616cc6

We need to support that asap and add a warning message to deprecate previous behavior.
I will try to tackle this.

@MoOx MoOx added the bug label Apr 8, 2015
@yisibl
Copy link
Contributor

yisibl commented Apr 8, 2015

In the specification may be in order to distinguish and custom property.

@custom-property --foo {
  scope: [ inherit | local ];
  initial: <any-value>*;
  value: <length> <length> <color>;
  /* Literally, define a simplistic definition syntax.
     OR FULL CSS PROPERTY GRAMMAR?!? */
}

@MoOx
Copy link
Contributor Author

MoOx commented May 6, 2015

We should warn for custom selector that are NOT using :.

@MoOx
Copy link
Contributor Author

MoOx commented May 29, 2015

I guess 2.0 close this ?

@yisibl yisibl closed this as completed Jun 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants