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

Re: [csswg-drafts] [css-display] Should anonymous boxes always inherit through the box tree?

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Apr 2017 07:45:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-295144510-1492587925-sysbot+gh@w3.org>
fantasai and I seem to disagree on the behavior - she think the first example should have red text; i find it vaguely horrifying that inserting a non-styled span should have dramatic effects on inheritance in this sole instance.

Assuming we go with "everything should be green", doing this rigorously seems to require us to define "text" as an object in the element tree that has properties (only set via inheritance), and which generates "text" in the box tree accordingly. I'm down with this.

(Alternately, we can do some handwavey "the element that would generate the text's parent box, if it wasn't display:contents". But that's handwavey and nasty; I'd much prefer to get a better, more rigorous description of text in the CSS model.)

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1118#issuecomment-295144510 using your GitHub account
Received on Wednesday, 19 April 2017 07:45:33 UTC

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