W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-display][css-flexbox][css-grid] Interaction of 'display: contents' and 'run of text'

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Apr 2017 09:30:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-297317756-1493199058-sysbot+gh@w3.org>
I see no problem with text of different formatting occupiying the same flex/grid area. Single runs of text with different formatting aren't new in CSS, they occur quite often because of the font fallbacks. Can we generalize the rules of this behavior and reuse it for our case?

Making element with `display:content` the separate flex/grid item seems much more problematic to me. I consider `display:contents` as a way to separate the visual hierarchy of boxes from the DOM hierarchy, with the ability of effectively converting the children of the element to the siblings of its siblings as one of the biggest advantage. So if the siblings of the element with `display:contents` end up in the inline formatting context, I strictly prefer to see the text content of this element in the same inline formatting context, and creating the separate flex/grid item for it — as if it was the inline-level element box — feels like it's against the purpose of `display:contents`.

So my suggestion is to treat 'run of text' as 'run of text nodes in a text box', or even just as 'run of differently formatted text fragments in a text box' — in the similar way as text rendered with different fonts of the font stack or the bidirectional text is treated.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1281#issuecomment-297317756 using your GitHub account
Received on Wednesday, 26 April 2017 09:31:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:11 UTC