- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 02 May 2018 17:32:17 +0000
- To: public-css-archive@w3.org
You don't just have a "comment" from me, I *started* the thread and have an active proposal for how to handle these things. ^_^ Yes, Blink's behavior is bad. I'm not sure of the exact details of WebKit's implementation, but I'm pretty certain it's also still not what we finally want. Thus my proposal up top: name-defining things should scope their names to the TreeScope their stylesheet appears in; name-referencing things default to only referring to the *top-level* definition; `scoped(ident)` can be used to refer to the definition from the local (to the stylesheet) TreeScope (or explicitly from an ancestor TreeScope anywhere between your local and the top level); inheritance across TreeScopes auto-increments the integer argument in `scoped()`, so it maintains its correct reference. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1995#issuecomment-386057956 using your GitHub account
Received on Wednesday, 2 May 2018 17:32:20 UTC