gss / engine

GSS engine
http://gss.github.io
MIT License
2.87k stars 103 forks source link

Position:fixed in GSS #69

Closed appsforartists closed 10 years ago

appsforartists commented 10 years ago

Is there a construct to emulate position:fixed? Maybe an x/y attribute on ::window?

Because GSS relies on transforms and position:absolute, you can't use position:fixed on an element that's been sized with GSS.

d4tocchini commented 10 years ago

It works, just have to:

position: fixed !important;

GSS manually sets position: absolute on all constrained elements.

appsforartists commented 10 years ago

I tried that and it didn't seem to be working.

It could be interesting to expose window.scrollX/Y as ::window[x]/[y]? The bi-directionality of constraints might make that weird though.

d4tocchini commented 10 years ago

Hmm... Gridstylesheets.org & flowhub.io uses position:fixed for the menu if you wanna check those out.

On Thu, May 1, 2014 at 3:13 PM, Brenton Simpson notifications@github.comwrote:

I tried that and it didn't seem to be working.

It could be interesting to expose window.scrollX/Y as ::window[x]/[y]? The bi-directionality of constraints might make that weird though.

— Reply to this email directly or view it on GitHubhttps://github.com/the-gss/engine/issues/69#issuecomment-41963078 .

d4tocchini commented 10 years ago

Unfortunately for webkit -> https://bugs.webkit.org/show_bug.cgi?id=110478