w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.49k stars 662 forks source link

[cssom-view] "The innerWidth attribute must return the viewpo..." #4373

Open zcorpan opened 5 years ago

zcorpan commented 5 years ago

https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface

The innerWidth attribute must return the viewport width including the size of a rendered scroll bar (if any), or zero if there is no viewport.

This should match https://drafts.csswg.org/mediaqueries/#width but doesn't cover paged media.

Likely this applies to more stuff in cssom-view.

cc @emilio (since you edit cssom, it seems cssom-view still has no editor :( )

emilio commented 5 years ago

Hmm, can script even run on paged media?

zcorpan commented 5 years ago

Sure, e.g. an ebook reader.