Bug 167349 - When using 100vw and page zoom, the vw doesn't get updated to show the zoom level
Summary: When using 100vw and page zoom, the vw doesn't get updated to show the zoom l...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 10
Hardware: Mac macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-23 17:39 PST by Aaron Hickman
Modified: 2017-01-23 17:49 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Hickman 2017-01-23 17:39:39 PST
When using viewport units, specifically 100vw in this scenario, it will not take into consideration any zoom level. For example, I have a <div> that I want to span the entire width of the page, so I give it a style of width=100vw. If I zoom out (View -> Zoom Out) it no longer takes up the entire width. 

I have a Stack Overflow issue created here: http://stackoverflow.com/questions/41817411/safari-100vw-layout-issue-when-zoomed-help-me-understand

And a jsFiddle here:  https://jsfiddle.net/4vax8Lga/

I would expect that 100vw should take up the entire width of the screen, even when zoomed out.