Viewport units (vh/vw) were a mistake to add to CSS; slower than alternatives (layout systems) assuming good implementation

Oct 22, 2014 · 1:58 AM UTC

4
11
12
Replying to @vasilis
@vasilis The work a browser needs to do to handle a size change is more than for alternatives (layout systems, like flexbox).
Replying to @davidbaron
@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
Replying to @davidbaron
@davidbaron is there an alternative proposal that works for font sizes?
Replying to @davidbaron
@davidbaron Viewport Units for layout are amazing. They understand what I want to do where floats, inline-blocks, and even flexboxes fail.
Replying to @vasilis
@vasilis @davidbaron I agree. viewport units and layout systems are not equivalent.