W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2017

Re: [csswg-drafts] [css-variables] User Agent properties and variables

From: Dean Jackson via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Sep 2017 00:56:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-329338058-1505350571-sysbot+gh@w3.org>
> Why don't you just add a property to body or html that tells the browser that it's ok to render stuff that's normally cut off because it's outside the viewport?

> And then the UA can just fill up the space as needed with stuff that's normally cut off? This way the developer could just place elements outside the normally available viewport, e.g. render a header element that should extend to the edges of the screen with negative margins.

We've done that, via a viewport tag. The problem is that we can't just extend objects - because it doesn't always look correct. Also, many objects are snapped to the edges anyway (think of a top or bottom bar), so they need to know how much padding to include in those objects in order to know they are showing content without being clipped.

After a lot of experimentation, we concluded that the best thing to do was to give authors the ability to extend to the full viewport and avoid edges if they want to, but we'd do the right thing otherwise.

Note that this discussion is orthogonal to the `constant` proposal. I think there is general support for that without finalizing the safe-area-inset topic.

-- 
GitHub Notification of comment by grorg
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1693#issuecomment-329338058 using your GitHub account
Received on Thursday, 14 September 2017 00:56:13 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:38 UTC