You can't style it as a placeholder in the general case. Not unless you know exactly what is in the shadow DOM and how it will layout (taking account of fonts etc...). The best you can do is an approximation
I hear what you're saying. I look forward to your support the next time we try to get inline Shadow DOM done.
-
-
And you will have it! As long as I know where to chime in, you can count on it.
- 2 more replies
New conversation -
-
-
A declarative shadow would be super interesting! it's very hard for me to imagine in a really good way tho.
-
One way is to do something like SVG <use>, except with template & slot for customizable copies, & custom tagnames: <template for="my-widget"> <link rel="stylesheet" href="widget.css" /> <slot …> <button> <etc> </template> …later: <my-widget> <data …> </my-widget>
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.