- From: John Reeves via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 May 2019 22:19:16 +0000
- To: public-css-archive@w3.org
> For CSS properties that are inherited through shadow tree boundaries (such as `font-family`) the inherited value retains the original scope. Why is this necessary or expected? I read the whole thread but I'm unclear why this would be wanted? If I define a font-face foo in a shadow root, and that overrides a foo defined at the doc root, why should I not see the inherited font-family foo change to my new foo definition? I agree with avoiding any new scoped() syntax, I'm just curious about this one point. An analog to a programming language might be class A defines foo() and bar(), and bar() calls this.foo(). Then class B extends A and overrides foo(). That automatically has any calls to B.bar() get the new definition of foo() even though nothing obviously used it (at least in Java/JS/TS/python/anything I can think of). I know it's not perfectly analogous to css, but as a developer this is the behavior I would expect. -- GitHub Notification of comment by vectorjohn Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1995#issuecomment-494580084 using your GitHub account
Received on Tuesday, 21 May 2019 22:19:20 UTC