-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webe: web_skwasmSkwasm rendering backend for webSkwasm rendering backend for webplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Use case
In #157755, an initial minimum viable product implementation of WebImage is added to Flutter. It supports some of the most commonly used Image properties, but not all of them. The missing properties are:
coloropacitycolorBlendModerepeatcenterSliceinvertColorsisAntiAliasfilterQuality
These properties effect the rendering of the image. Since RawWebImage is supposed to be a drop-in replacement for RawImage, it should also support these properties.
Proposal
Extend RawWebImage to support the missing properties. Some of the properties are easier to implement than others.
opacity,colorandcolorBlendModecould probably be implemented by simply wrapping theHTMLImageElementin the appropriateOpacityandColorFilteredwidgets and let the web engine handle setting the CSS properties on the platform view.centerSlicecould maybe be implemented using the CSSborder-image-sliceproperty: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slicerepeatcould maybe be implemented using thebackground-repeatCSS property: https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeatisAntiAliasandfilterQualitycould maybe be approximated with theimage-renderingCSS property: https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webe: web_skwasmSkwasm rendering backend for webSkwasm rendering backend for webplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team