Re: [csswg-drafts] [css-cascade][css-pseudo] How does 'inherit' keyword behave in a child of ::first-line?

I'm fine with @FremyCompany's proposed resolution above:

> Inheriting properties of inline fragments that are contained in a ::first-line only inherit from the ::first-line if those properties (1) do apply to ::first-line, (2) do inherit by default, and (3) are not custom properties.

I would note one issue, though.  It's not clear to me that condition (1) is even needed.  In most cases, an "Applies to:" line doesn't affect computed values, but I've always had the understanding that pseudo-element restrictions worked differently, and a property that doesn't apply to that pseudo-element *doesn't* change their computed values.  I'm not sure if there's a spec that backs up that interpretation, though.  And I don't think it *hurts* to include condition (1), except that it makes that interpretation of how application to pseudo-elements works a little bit more of a stretch since it wouldn't be needed if that interpretation were correct.

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

Received on Thursday, 25 May 2017 00:41:08 UTC