W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-env-1] values for screen edge avoidance

From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Jul 2018 04:27:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-402359526-1530678448-sysbot+gh@w3.org>
The Working Group just discussed `Accept safe-area-inset*`.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Accept safe-area-inset*<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/2868<br>
&lt;fantasai> dino: We proposed this last year<br>
&lt;fantasai> dino: I think this one is hopefully not so controversial<br>
&lt;fantasai> dino: We expose it so ppl can avoid notch in iPhone and rounded corners<br>
&lt;fantasai> dino: But can also be used for e.g. safe area for televisions<br>
&lt;fantasai> fantasai: Would be really usefl for printing as well<br>
&lt;astearns> https://drafts.csswg.org/css-env-1/#safe-area-insets<br>
&lt;fantasai> dino: Having experimented with this, it makes sense for insets<br>
&lt;fantasai> dino: But let's imagine that what you're trying to do is get ppl to avoid X in thet top corner of the screen<br>
&lt;fantasai> dino: page shouldn't put anything there<br>
&lt;fantasai> dino: Should we inset the entire top/left sides?<br>
&lt;fantasai> dino: Or just a note saying avoid that part of the screen?<br>
&lt;fantasai> dino: Let's pause and talk about that later?<br>
&lt;fantasai> dbaron: There was some prec prose that Rebecca Hughes and I iterated over<br>
&lt;fantasai> dbaron: Because I didn't want Google to ship without a spec for it<br>
&lt;fantasai> dbaron: What I suggested there, and which I thin kis now in the draft,<br>
&lt;fantasai> dbaron: Was that the insets together should define a rectangle such that everything in that rectangel is safe<br>
&lt;fantasai> dbaron: But what you're showing is your insets are more than that<br>
&lt;fantasai> dbaron: You could use any pair of them... but that doesn't work for the notch<br>
&lt;fantasai> dino: Right, for notch, we have top and bottom insets and it's fine<br>
&lt;fantasai> dino: But if your rotate sideways, then you have left and right insets<br>
&lt;fantasai> dbaron: I'm wondering if the diagram is intentional<br>
&lt;fantasai> dbaron: I'm suggesting that the rectangle inside the insets was safe<br>
&lt;fantasai> dbaron: but if you move any of those lines outward, then it's no longe rsafe<br>
&lt;fantasai> (dbaron is talking about taking the largest rectangle that would fully fit within the safe area, and using its edges as the inset edges vs. considering each inset individually, making sure the entire screen is safe along that edge or inward from it)<br>
&lt;fantasai> dbaron: Specced that the UA is allowed to pick whatever it wants that would maximize the the usuable space<br>
&lt;fantasai> dbaron: There are multiple solutions, might want a narrower or wider rectangle, that affects how tall it can be<br>
&lt;fantasai> myles: The UA is the one that decides what safe me<br>
&lt;fantasai> myles: We could say that the innermost rectangle is safe<br>
&lt;fantasai> dbaron: Prose we put it said something like<br>
&lt;fantasai> “There is some nonrectangular safe region. The insets define some maximal rectangle within that region”<br>
&lt;fantasai> fantasai restates what dbaron was saying<br>
&lt;fantasai> dino: I think this definition would be acceptable...<br>
&lt;fantasai> dino: User agent could also be free to pick a rectangle where it only specifies a top and a bototm inset in this case, and uses the entire width<br>
&lt;fantasai> dino: Would be overagressive in saying what's safe<br>
&lt;fantasai> fantasai: there might be different use cases for each definition...<br>
&lt;fantasai> myles: For TV example, there's no horizontal line that's afe all the way across<br>
&lt;fantasai> dino: TV wants more like the green example (individal insets)<br>
&lt;fantasai> dino: whereas a rounded display needs more like the red one (dbaron's definition)<br>
&lt;astearns> q?<br>
&lt;fantasai> iank_: Another take is that the green is the same as the red plus a margin<br>
&lt;fantasai> fantasai: Could have two different sets of variables, safe-area-inset and safe-rect-inset...<br>
&lt;fantasai> heycam: With scrolling, might have different preferences on whether to maximize horizontal or vertical areas<br>
&lt;fantasai> myles: UA could alter these<br>
&lt;fantasai> astearns: Hroizontal vs vertical orientation of device, would UA reset them depending on orientation?<br>
&lt;fantasai> dino: Currently does, yes<br>
&lt;fantasai> myles: ...<br>
&lt;fantasai> astearns: Are you unsure whether having these four insets is the right design?<br>
&lt;fantasai> dino: I was sure, now wondering whether we should define them as the red rectangle<br>
&lt;fantasai> dino: With the green rectangle you can be safe, if I pad enough from the top, I know I'm going to be visible in that case, even though I wo'n't be safe...<br>
&lt;fantasai> dino: Maybe we should hold this.<br>
&lt;fantasai> dino: I will take this back and discuss with other ppl<br>
&lt;fantasai> dbaron: I think the text needs adjusting for the TV use case, also.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2868#issuecomment-402359526 using your GitHub account
Received on Wednesday, 4 July 2018 04:27:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 4 July 2018 04:27:33 UTC