porsager/bss

False positives in the px detector

pygy opened this issue · 1 comments

pygy commented

I just noticed that the detection trick would fail for the flex shortcut that can take both plain numbers (for flex-grow) or lengths (for flex-basis).

A user that specifies flex: 2 would expect it to mean flex-grow: 2, not flex-basis: 2px...

There may be other cases where the cache needs to be pre-populated, not sure which ones.

Wow... great insight @pygy !! Thanks a lot - I'll get that fixed.