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

> I think it's pretty weird if wrapping a span with no styles applied to it around some text changes the styling of the text. Can you think of any other cases in CSS where that would happen?

In this case styles are being applied to the span via inheritance. I don't see a major difference between having explicit rules targeting the span vs targeting it's display:contents parent. The behavior is perfectly consistent.


-- 
GitHub Notification of comment by anttijk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1118#issuecomment-305409577 using your GitHub account

Received on Thursday, 1 June 2017 07:16:29 UTC