Re:256 CSS Classes Can Override an #id
by mmahemoff on Wednesday August 15, 2012 @07:40PM
(#4389016)
It still works with > 256 classes. I was expecting it to overflow and go back to blue when I added a 257th class.
[ Parent
| on HN ]
Re:256 CSS Classes Can Override an #id
by SoftwareMaven on Wednesday August 15, 2012 @08:12PM
(#4389152)
If it is adding numbers, it may be losing the ID altogether.
spec = classes + (id>>8) + (important>>16) + (styles>>24);
If the assumption was that classes would "probably" be under 256 and wasn't put in a char, it could be messing with the whole value.