Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Cleanup #32

Open
tparisi opened this issue Dec 11, 2014 · 4 comments
Open

CSS Cleanup #32

tparisi opened this issue Dec 11, 2014 · 4 comments
Labels
Milestone

Comments

@tparisi
Copy link
Owner

tparisi commented Dec 11, 2014

We are at a fork in the road with CSS. Unless browsers are going to support custom CSS properties, or Web Components pioneers it (doesn't look like they care), we should not be in the business of mixing standard CSS with our flavor of CSS.

Options (not necessarily mutually exclusive):

  • Put the content in external files, read it with Ajax and use custom parser. Also remove from <style> tags... if we really want the stylesheet inline, we can throw it into a custom script node or use CDATA in an element or yadayada.
  • Use traditional CSS syntax, OR
  • Come up with whatever syntax changes we want; it's our CSS now
  • Ditch stylesheets altogether; do everything in data attributes. Goodbye, separation of concerns. Why has this become so popular?
@tparisi tparisi added this to the Alpha 1 milestone Dec 11, 2014
@mkeblx
Copy link

mkeblx commented Dec 11, 2014

It seems logical that if you're going to say the future the the web is not being constrained to the current set of tags that you'd also not be limited to the current set of CSS properties. What is the downside of mixing standard with custom, say with a vendor prefix -gl-skybox: url(...) etc?

@bnolan
Copy link

bnolan commented Dec 11, 2014

You could use css-sauron to parse the css.

litejs/dom#13 (comment)

@tparisi
Copy link
Owner Author

tparisi commented Dec 11, 2014

Wish I understood what it is. I just went to the page and saw a pile of WTF.

But you're saying there's a good CSS parser in there? Are you using it for your project?

@bnolan
Copy link

bnolan commented Dec 11, 2014

Yeah, I've had a play with it. Haven't integrated it in yet, but it's a tool for finding out what rules apply to which dom elements.

@tparisi tparisi removed this from the Alpha 1 milestone Jan 12, 2015
@tparisi tparisi added this to the Beta 1 milestone Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants