News for hackers. Stuff that matters.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by pcwalton on Thursday March 23, 2017 @02:10PM (#13942395)
CSS object-fit handles your first two complaints, and CSS Variables handles your last one.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by Dylan16807 on Thursday March 23, 2017 @03:42PM (#13943444)
Aren't CSS Variables just constants you can reuse? How are they going to let you set width to 80% and height to 2/3 of whatever that ends up being?
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by pcwalton on Thursday March 23, 2017 @04:14PM (#13943810)
Because percentages in heights are usually relative to the width of the containing block.