Viewport units (vh/vw) were a mistake to add to CSS; slower than alternatives (layout systems) assuming good implementation
4
11
12
@davidbaron Interesting. What makes them slow? What is a "layout system" in this context? Might need > 140 chars.
1
@SimonSapin Viewport units need recomputation of style data for size changes plus the work the layout system (block, flex, &c) requires.
2
1
@davidbaron @SimonSapin size changes in practice are mainly device orientation switches. Devs frantically resizing the window doesn't count
1
1
2
@alanstearns @SimonSapin Also things like mobile keyboards, URL bars, status bars appearing and disappearing (with animation)
Oct 22, 2014 · 2:30 AM UTC
1


