- From: Ryosuke Niwa via GitHub <sysbot+gh@w3.org>
- Date: Sat, 20 Apr 2019 04:39:25 +0000
- To: public-css-archive@w3.org
> Want to share a use case / feature that VisBug has as it's applicable to conversation here. VisBug has a feature that you can select elements on the page and "copy styles" and then select new elements and "apply styles." It works entirely on computed values. A use case being, copy this dark button style and paste them on light buttons. The copy style feature doesnt care what it copied, it copied any values that aren't initial values. For such a feature to work across shadow boundaries, you'd need to also copy & duplicate font face declarations from the tree of the source element to the tree of the destination element. If you're relying on declarations being shared across shadow trees, then you wouldn't have a problem anyway because the same font name would refer to the same font. The only case where inheriting font name wouldn't work is when the tree of a shadow host and the shadow tree define two distinct font faces using the same name. However, in such situation, VisBug or whatever tool which implements a similar functionality would have to figure out the font face being referenced for each element by walking up the shadow trees anyway. -- GitHub Notification of comment by rniwa Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1995#issuecomment-485058007 using your GitHub account
Received on Saturday, 20 April 2019 04:39:26 UTC