W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-pseudo-4] new generated content pseudo :between/:separator (#2960)

From: Philippe Verdy via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Mar 2019 01:11:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-468503027-1551402703-sysbot+gh@w3.org>
styling gaps is relevant for the layout only: the layout manager has its own requirements depending if this is a horizontal or vertical layout or a grid, and if flex is used (this becomes even more complex with multicolumn layouts, primarily used as containers for text, but not only)
But there's a separate need for "::between" to generate contents, not necessarily boxes, without effect on the layout of these boxes.
Styling lists with added punctuation/separators is different from styling gaps because they don't add necessarily any new box if the "between" content is a simple text or icon span (it could as well be breaks, or rules inserted inline but still within the same layout box....
So separate the design between generic content separators and layout-specific tuning of their gaps between layout-specific margins of each child (these gaps are complex also because of the need to manage collapsing margins when there's no gap).

Note that gaps may also have negative values (e.g. showing a grid of elements with no gap by default between children, but when hovering the grid with the mouse, negative gap would create a mask layer partially over the children without necessarily resizing or moving them, so the relative layouts of children would remain the same: this may be useful to perform visual selection in a way currently not supported by borders/margins which are always outside the content and never on top of them): negative gaps would then allow to show on top of existing margins, borders and content.


-- 
GitHub Notification of comment by verdy-p
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2960#issuecomment-468503027 using your GitHub account
Received on Friday, 1 March 2019 01:11:47 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:57 UTC