Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Couldn't this be reduced by, like, a lot by simply using this CSS3 gem?

height: attr(sata-cp-size px);




Someday, but right now the support for using 'attr()' function in properties other than 'content' is very poor.


Correct, attr() for use with anything than the content property is unsupported by most browsers.

(https://developer.mozilla.org/en-US/docs/Web/CSS/attr)


Yes, once we get to the point where we can stop supporting IE <= 9. :)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: