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

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

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Thu, 25 May 2017 00:40:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-303891039-1495672858-sysbot+gh@w3.org>
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

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