News for hackers. Stuff that matters.
Re:Grid Style Sheets – CSS polyfills from the future by dictum on Thursday March 06, 2014 @12:22PM (#7355094)
This page scrolls slower than most pages on Safari (OS X 10.9.2).

EDIT: And the page is blank with JS disabled. I didn't know about the Cassowary Constraint Solver and it's interesting to see a project thinking outside of CSS and its flaws, but please don't use it in production.

EDIT II: gss.js is 653KB (would be much smaller if minified, I also didn't check the gzipped size) and worker.js is 64KB.

Re:Grid Style Sheets – CSS polyfills from the future by bergie on Thursday March 06, 2014 @12:51PM (#7355329)
We're working on precompiling to CSS, which should fix those issues.

The GSS build can also be a lot smaller if we drop the three grammar parsers (VGL, VFL, and CCSS), and you pre-parse GSS to the AST in for example Grunt

Re:Grid Style Sheets – CSS polyfills from the future by tavoe on Thursday March 06, 2014 @07:40PM (#7357649)
I'm not sure why, but the fellow you're replying to doesn't like javascript.

You plan to solve it by compiling to css beforehand.

What if I told you I like to remove all custom css from my page. Do you have any recourse?

Re:Grid Style Sheets – CSS polyfills from the future by dictum on Friday March 07, 2014 @03:52PM (#7362666)
I like JavaScript. I do most of my browsing on a browser with JS enabled. I only browse with JS off when I think the sites I'm about to visit are sketchy.

However, I also like saving resources and separating concerns. We have CSS to make pages look good (or at least half decent). We can make them look even better with JS, and GSS in a later version may very well do that: compile a stylesheet that does the basic layout/typography/effects and then patch what CSS cannot do with JS.

If I decide to disable CSS, I should still be able to see the HTML, and if I disable JS, I should still be able to see the content with most of the styling, except dynamic content and anything that CSS can't do.

I'll be watching GSS, a precompiled solution would be really useful.

Re:Grid Style Sheets – CSS polyfills from the future by bergie on Thursday March 06, 2014 @10:52PM (#7358427)
Web without CSS and JavaScript would be a quite boring place.

But hey, at least with GSS there is no need to rearrange your content in weird ways to accommodate to CSS layouts. So what you'd get is just the plain, semantic HTML.

Re:Grid Style Sheets – CSS polyfills from the future by exogen on Thursday March 06, 2014 @05:23PM (#7357035)
For the record, it's 223KB minified, 48KB min+gzip. (For reference, jQuery is 38KB min+gzip).
Re:Grid Style Sheets – CSS polyfills from the future by d4tocchini on Thursday March 06, 2014 @10:05PM (#7358296)
that's with all the generated PEG grammars in the compiler. build w/o the compiler stuff, which should be handled node.js side anyway, will be approx jQuery's size.