- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Jan 2020 14:39:36 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Center alignment can be improved`, and agreed to the following: * `RESOLVED: Accept the text in current ED and open bugs on browsers to implement.` <details><summary>The full IRC log of that discussion</summary> <heycam> Topic: Center alignment can be improved<br> <heycam> github: https://github.com/w3c/csswg-drafts/issues/4659<br> <TabAtkins> https://drafts.csswg.org/css-align/#abspos-sizing<br> <heycam> TabAtkins: the diagram shows how alignment affects the available space for sizing static positioned abspos elements<br> <heycam> ... you have the abspos containing block<br> <heycam> ... you have the parent of the abspos (the static pos containing block)<br> <heycam> ... and you have the abs pos child<br> <heycam> ... it's statically positioned in the horiziontal axis<br> <heycam> ... we look at justify-self for alignment<br> <heycam> ... historically we had one rule to do this, based on direction<br> <heycam> ... here we're letting you specify that manually<br> <heycam> ... if start aligned, it does what you expect<br> <heycam> ... the space to align into starts on the start edge where teh static position is, and goes to the end of the abspos containing block<br> <heycam> ... it sits in ths same spot, but grows to where 0 would be<br> <heycam> ... if you'are end, you do the opposite, growing to where left:0 would give you<br> <heycam> fantasai: this is the behavior fro RTL text<br> <heycam> TabAtkins: how do you do cetner?<br> <heycam> ... previously the spec said you use this box [points to blackboard]<br> <heycam> ... you can't get bigger than the abspos containing block, which is weird because the other alignments can<br> <heycam> ... Ian's suggestion is to let it grow from both sides until one side would hit the edge of the abspos containing block<br> <heycam> ... it's cnetered in the expected space, but gets as large as it can<br> <heycam> iank_: this is EdgeHTML's behavior<br> <heycam> ... we'll have this when we pick up our new flex impl<br> <heycam> ... we've added some tentative tests<br> <heycam> TabAtkins: nobody currently center aligns according to the current spec<br> <heycam> ... I've edited this into the spec<br> <heycam> dbaron: this is the width you end up with auto width<br> <heycam> TabAtkins: if you have enough content<br> <heycam> fantasai: fun side effect, this makes it possible to interpolate between all three values<br> <heycam> ... since it's between the other two values<br> <heycam> iank_: this fell out beacuse we were adding static center positions in our new arch, and this was the obvious thing that fell out<br> <heycam> ... was relatively easy for us to do<br> <heycam> dbaron: I didn't realise we implemented this section of the spec at all, I'm ok with this<br> <heycam> cbiesinger: we only implement this for flex boxes?<br> <heycam> iank_: we get the available size more wrong<br> <heycam> cbiesinger: but we only do this if the parent is a flex box?<br> <heycam> iank_: yes<br> <heycam> ... only applies in implementations with flex boxes<br> <heycam> dbaron: then it makes more sense to me that we implement it<br> <heycam> ... because in theory this should be implemented for blocks too<br> <heycam> ... as I've mentioned before, I'm worried we'll be unable to implement this for block<br> <heycam> heycam: is Chrome implementing block alignment as part of your rewrite?<br> <heycam> iank_: not currently. but the new arch does make it easier to implement<br> <heycam> astearns: can you get into this situation with abs positioning as well?<br> <heycam> iank_: I don't think so<br> <heycam> astearns: given this was not well specified before, can you open bugs on impls to match the current text?<br> <heycam> TabAtkins: sure<br> <heycam> rego: so it applies in grid too?<br> <heycam> TabAtkins: in all places that use this text, so flexbox, grid, and theoretically block<br> <heycam> RESOLVED: Accept the text in current ED and open bugs on browsers to implement.<br> <heycam> cbiesinger: can we add WPT tests?<br> <heycam> iank_: I already have<br> <RossenF2F> tantek_, probably because folks go in/out of mic proximity<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4659#issuecomment-577211422 using your GitHub account
Received on Wednesday, 22 January 2020 14:39:38 UTC