Re: [csswg-drafts] [css-align] Which behavior for block's "justify-self: center"?

The CSS Working Group just discussed `Which behavior for block's "justify-self: center"?`, and agreed to the following resolutions:

* `RESOLVED: Optino #1 from the issue "Reduce the size of the alignment container by the size of the float's margin box, then center the block in the remaining space (this is the behavior of HTML's align attribute)"`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Which behavior for block's "justify-self: center"?<br>
&lt;dael> Github: https://github.com/w3c/csswg-drafts/issues/1612<br>
&lt;dael> Rossen_: Summery is you have a float and you are positioning a BFC next to it and thisblock has a justify-self: center which means w/o a float it'll b e centered, but since the float is taking space away the justification need to either a) take th float into account or b) don't<br>
&lt;dael> Rossen_: In the case that the bfc has sufficient space to distribute around it the question is which proposal makes more sense? Place the float and then center or center ignoring the float and shift the float if nec.<br>
&lt;dael> Rossen_: As an impl I prefer option 1. I see more people on the issue for option 1. I'd like to hear alternatives or opposing opinions if there are any from the WG.<br>
&lt;dael> [silence]<br>
&lt;dael> Rossen_: If no one has any we can resolve on option #1: the block would be positioned next to the float and centered in that  remaining space.<br>
&lt;dael> Rossen_: [Reads] "Reduce the size of the alignment container by the size of the float's margin box, then center the block in the remaining space (this is the behavior of HTML's align attribute)"<br>
&lt;dael> Rossen_: That's the proposal.<br>
&lt;dael> Rossen_: If there are no obj we can resolve.<br>
&lt;fantasai> testcase http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=5281<br>
&lt;dael> Rossen_: fantasai when you discussed with TabAtkins the current proposed is for BFC with fixed width or width which is auto?<br>
&lt;dael> fantasai: Either one. As long as width is smaller than remaining space.<br>
&lt;dael> Rossen_: I was asking b/c if the width is auto and supposed  to e xtend out to fill available space css2.1 behavior is already what you desc here.<br>
&lt;dael> Rossen_: The jutification even though there would be centering you wouldn't be able to tell. So I guess this is mostly observable when bfc has fixed size smaller than availablespace and has justification.<br>
&lt;dael> fantasai: Looks like centering with margins for auto has same behavior as centering with center tag.<br>
&lt;dael> Rossen_: For BFC next to floats?<br>
&lt;dael> fantasai: Yeah. Which I wasn't expecting. I was expecting [missed]<br>
&lt;dael> Rossen_: This is the test case you pasted in IRC?<br>
&lt;dael> fantasai: Yeah.<br>
&lt;dael> Rossen_: This is just another confirmation of existing behavior consistant with wha tyou're trying to define.<br>
&lt;dael> Rossen_: I'm going to call for objections on the current proposed behavior.  Current proposed is "Reduce the size of the alignment container by the size of the float's margin box, then center the block in the remaining space (this is the behavior of HTML's align attribute)"<br>
&lt;dael> Rossen_: Is there  anyone objecting this this?<br>
&lt;dael> RESOLVED: Optino #1 from the issue "Reduce the size of the alignment container by the size of the float's margin box, then center the block in the remaining space (this is the behavior of HTML's align attribute)"<br>
</details>


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

Received on Wednesday, 26 July 2017 16:18:50 UTC