- From: Peter-Paul Koch via GitHub <sysbot+gh@w3.org>
- Date: Thu, 14 Sep 2023 20:49:41 +0000
- To: public-css-archive@w3.org
Since I'm mostly to blame for the popularity of the term 'layout viewport', I thought I'd reply to this issue and offer some background. In 2010 or so, when I first described their behaviour, I badly needed names for the two distinct mobile viewports I had discovered and that nobody else was talking about. The names visual and layout viewport were, I think, suggested by Anne van Kesteren and were used internally by Opera at that time. I ran with them, and since for years I was just about the only one to write about the viewports, they became de-facto standard terms. At the time I was unsure about the exact relation of the layout viewport to the ICB, and I ignored that aspect. Up until about 2013(?) there was considerable confusion about which viewport fixed elements should be fixed to. Some mobile browsers used the layout viewport, others the visual viewport, and if memory serves me there were even some browsers that fixed them relative to the ICB, which made fixed positioning the same as absolute positioning. Later on mobile browsers standardized on the 'layout viewport' as distinct from the ICB, and the modern system was born. So at the time I coined these terms it was not at all clear that the layout viewport behaved as it currently does and that it was in fact distinct from the ICB. What functions, other than fixing fixed elements, does the 'layout viewport' currently serve? I can think of none. In the recent spec and spec-adjacent writing I read, 'viewport' always means 'layout viewport'. In my opinion a distinction between visual viewport and 'layout viewport' should continue to exist, though I'm not opposed to a name change. I would suggest adding a note to the viewport definition that explains the existence of the visual and 'layout' viewports, and clarifies that 'the viewport' without further qualifiers always means the 'layout viewport'. I created a viewport visualisation page that may be of help to people struggling with these concepts: http://quirksmode.org/mobile/viewports/. Ironically, it's only usable on a desktop device. -- GitHub Notification of comment by pp-koch Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8237#issuecomment-1720134134 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 14 September 2023 20:49:43 UTC