W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] [css-cascade] [css-scoping] [cssom] What should getComputedStyle return for an element which isn't in the flat tree?

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Feb 2018 02:45:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363984966-1518057939-sysbot+gh@w3.org>
**Cross-posting from 1548:**

> An element assigned to a slot doesn't inherit from the shadow host, but from the assigned slot. There's no spec that defines that in case it's not assigned to any slot it should inherit from the host, afaict.

Ah, that should probably be added then; more than likely it's just an oversight. Using their parent's style is the closest approximation of the behavior that would happen whenever it gets slotted, so that looks reasonable to me.

GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1964#issuecomment-363984966 using your GitHub account
Received on Thursday, 8 February 2018 02:45:48 UTC

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