gss / engine

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

`:hover` pseudo class is not rendering #189

Open Fresheyeball opened 9 years ago

Fresheyeball commented 9 years ago
.foo:hover{
  transform:scale(1.5);
}

has no effect.

Inviz commented 9 years ago

We have a very modest support for pseudo classes, but it's not difficult to add it. I'd do it but I'm a bit overloaded at work. If I were to do it, I'd define a global mouseover event, and did a engine.solve() call with a callback, in which I would invalidate selectors in a similar way mutations do.

Fresheyeball commented 9 years ago

Sounds good to me. Obviously constraints used in :hover will need to recalculate.