- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Feb 2024 01:07:11 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-inline-3] Negative margins on inline boxes`, and agreed to the following: * `RESOLVED: we have fantasai start speccing accumulating neg margins for inline boxes` <details><summary>The full IRC log of that discussion</summary> <bramus> fantasai: we have been exploring have a more understandable and powerful inline layout model<br> <bramus> … in the block axis where there is a lot of dissatisfaction right now<br> <bramus> … one of the things is to swith to using line-height to decided ??? to using its margin-top and bottom<br> <bramus> … adv is that its a familiar model<br> <bramus> … another one is that you have pretty good control<br> <bramus> … you can use margin-top 1em and some padding and … so idea is that you take inline box and add margin and the margin doesnt inherit<br> <bramus> … that margin set ensures that it fits inside, and if it leaks outside then they cause the line box to grow<br> <bramus> … problem with neg margins<br> <bramus> … those should reduce how much you are contributing to line box<br> <iank_> q+<br> <bramus> … but if contents dont have same neg margin, as soon as you ahve any content with a separate box, then you are no longer slightly shorter<br> <bramus> … because content is back at same height<br> <bramus> … i thikn we need to fix this<br> <bramus> … only thing I can think of is to propage the neg margins to inline descendants<br> <bramus> … if you go deeper into the tree you accumulate more neg margin<br> <bramus> … (drawing)<br> <bramus> … (drawing of box with text and button with margin vs big text inside with margin)<br> <florian> q+<br> <bramus> … (drawing with problem of nested span that is too big … the neg margin should accumulate to the pos margin of that span)<br> <bramus> iank_: you would keep that margin if font size changes?<br> <bramus> fantasai: content box height is based on ?? of the font. margins modify that box<br> <bramus> iank_: thats fine<br> <astearns> ack iank_<br> <bramus> iank_: orthogonal q: margin collapsing interacts with inline … have you considered that today?<br> <bramus> fantasai: only interaction of margin collapsing and inline is only wether ?? is ?? or not<br> <bramus> iank_: yes, but (missed)<br> <dbaron> s/(missed)/only a small set of things that make it non-empty style wise/<br> <bramus> fantasai: having inline boxes margins taken into account for line box height is opt in<br> <bramus> … reqs could be more or less what they are<br> <bramus> iank_: ok<br> <astearns> ack florian<br> <bramus> florian: so either we acc neg margins or we give up? i am thinking about 2nd<br> <bramus> … use case is about a whole bunch of whitespace in glyph<br> <bramus> … isnt there stuff where you can ? with text box edge<br> <dbaron> s/edge/edge or text-box-trim/<br> <astearns> ack dbaron<br> <bramus> fantasai: you can use that to trim to specific metrics of a glyph which is better than magic number but you want to add adjustments on top of that<br> <bramus> dbaron: is your proposal that you estabilish a size around each ?? that adds up to all its inline ancestors umntil that is not an ancestor?<br> <bramus> fantasai: only for neg margins<br> <bramus> dbaron: why only neg?<br> <bramus> fantasai: in general you dont want to accumulate the margins. they dont stack on oinline boxes, just like padding in content area<br> <bramus> … elements being siblings or parent-child doesnt change how they are laid out<br> <bramus> florian: but you dont want to th esubm but bigger of the two<br> <bramus> dbaron: still not clear why only for neg ones<br> <bramus> fantasai: because for pos ones you get the effect that for inline box with ?? and you put some margins on it, all of them will at least be that tall<br> <bramus> dbaron: depends on the effect you want.<br> <bramus> … you say that for neg margins you do want the effect but for pos you don’t<br> <bramus> fantasai: yes, when typesetting you have some things that are bigger and will leak into extra space. but when tighter a neg margin wont have any effect if you put span around contents<br> <bramus> dbaron: so this would lead to more consistent line spacing?<br> <dbaron> s/this/this difference/<br> <bramus> florian: this helps preserve that adding an unstyled span to descendant shouldnt change anything. you dont need to acc pos margins for this to be true but to need that for neg ones.<br> <bramus> dbaron: i guess i am ok with it now<br> <bramus> fantasai: dont love the asymmetry but cant come up with a better solution<br> <bramus> … open to suggestions<br> <bramus> astearns: so outcome is to start working on this?<br> <bramus> fantasai: yes, should I spec that out?<br> <bramus> iank_: you will also need to change the text for what is an empty line<br> <bramus> … that will change how margin collapsing works<br> <bramus> fantasai: if we dont accumulate that outer one will prevent collapsings<br> <bramus> dbaron: i thought emtpy line test was only for inline margins<br> <bramus> iank_: non-zero doesnt apply in the block direction<br> <bramus> fantasai: (missed)<br> <bramus> florian: +1 to you trying to spec this out<br> <bramus> fantasai: this was the best i could think of<br> <bramus> astearns: concerns?<br> <florian> s/to spec this out/to spec this out, I don't see any other approach unless we give up on negative margins working here at all<br> <bramus> astearns: proposed resolution: we have fantasai start speccing accumulating neg margins for inline boxes<br> <bramus> astearns: objections?<br> <bramus> RESOLVED: we have fantasai start speccing accumulating neg margins for inline boxes<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8182#issuecomment-1940000516 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 February 2024 01:07:14 UTC