Re: [css-houdini-drafts] [css-layout-api] Review the LayoutOptions.sizing parameter

The Working Group just discussed `Review the LayoutOptions.sizing parameter`, and agreed to the following resolutions:

* `RESOLVED: Accept the new parameter in https://github.com/w3c/css-houdini-drafts/issues/747`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Review the LayoutOptions.sizing parameter<br>
&lt;dael> github: https://github.com/w3c/css-houdini-drafts/issues/747<br>
&lt;dael> iank_: This is...we had one layout option for the child display. This is one mode I think we should add that flips the type of sizing you default to<br>
&lt;dael> iank_: As I was building examples it's really nice if you don't have to worry about your size. block-like is handled for you.<br>
&lt;dael> iank_: Like in my earlier demo you're always given a fixed size and you're given an auto block size.<br>
&lt;dael> iank_: Thing that makes it more custom is a manual sizing mode where you explicitly say the sizing.<br>
&lt;dael> iank_: If we use block-like initially it makes it a lot easier on impl to do it this way and less compat risk.<br>
&lt;dael> iank_: Is there any feedback?<br>
&lt;dael> smfr: Minor objection ot size as a word since it's height and width<br>
&lt;dael> iank_: This is the engine taking care of the size<br>
&lt;dael> smfr: But it's a scalar.<br>
&lt;dael> dbaron: CSS is using block-sizing already<br>
&lt;dael> smfr: What happens with a disctionary of auto block size?<br>
&lt;dbaron> s/block-sizing/block-size/<br>
&lt;dael> iank_: In block-like it takes care of it for you. In some circumstances you'll get a fixed size like abspos and you're constraining the block.<br>
&lt;dael> iank_: I think for compat risk we'd want block-like as a default.<br>
&lt;dael> Rossen: This sounds more like native layout. Sizing and positioning are parts of layout, but you're not talking positioning. Engine for layout more for native layout mode or something like that for the name.<br>
&lt;dael> Rossen: Instead of 'sizing' to imply I want you to do layout on my behalf and the type of layout is block0like.<br>
&lt;dael> iank_: It's not simply layout. It's also the size of your fragment.<br>
&lt;dael> iank_: That's why I sort of....<br>
&lt;dael> Rossen: ...Okay.<br>
&lt;dael> iank_: I'm fine calling it something else.<br>
&lt;dael> Rossen: I see what your intention was.<br>
&lt;dael> iank_: With this sizing is block0like it's computed as if you were a block container and that's pre-computed.<br>
&lt;dael> Rossen: So if you happen to be a flex item all the flexing will be ignored?<br>
&lt;dael> iank_: If you're a flex-item the engine can work out ahead of time what your size is going to be. If there's flexing that fixed inline size will be increased by the flex amount. Inline synthesis is handled by the engine and all you need to do is the flex size and that follows the same rules as the block size.<br>
&lt;dael> Rossen: I guess it's okay<br>
&lt;dael> iank_: You lose a little bit of power<br>
&lt;dael> iank_: It also allows if we're defaulting like servo can do it's inline sizing pass at the moment. From what I've used it's much easier and a lot less work. What it gives you is what you want 95% of the time.<br>
&lt;dael> Rossen: Was this edited in?<br>
&lt;dael> iank_: Yes.<br>
&lt;dael> Rossen: Objections to accepting this new parameter?<br>
&lt;dael> RESOLVED: Accept the new parameter in https://github.com/w3c/css-houdini-drafts/issues/747<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/747#issuecomment-379723060 using your GitHub account

Received on Monday, 9 April 2018 11:40:41 UTC