[Web] Please support a custom stylesheet for platform views #67740
Labels
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
e: web_html
HTML rendering backend for Web
P3
Issues that are less important to the Flutter project
platform-web
Web applications specifically
Flutter Web encapsulates all HTML created via
HtmlElementView
in a shadow DOM of a customflt-platform-view
element. The shadow DOM automatically get a style reset attached before the HTML element is added. This makes external customization of the HTML very difficult if not impossible. This is by design, I guess, but I'd like to globally customize the styles via an external .css file and not use inline styles for my HTML in each and everyHtmlElementView
.Therefore, please support overwriting the
all: initial
style reset with a different style definition. An easy way would be to pass withShadowRoot
viagetCreatedView
to the callback, so that I can remove the reset and add my own style elements.The text was updated successfully, but these errors were encountered: