Open Bug 1439781 Opened 7 years ago Updated 3 years ago

[wpt-sync] Sync PR 9174 - [css-typed-om] WIP: Make custom paint canvas work with <gradient>s.

Categories

(Core :: Web Painting, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 9174 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/w3c/web-platform-tests/pull/9174 Details from upstream follow. Darren Shen wrote: > [css-typed-om] WIP: Make custom paint canvas work with <gradient>s. > > Currently the custom paint canvas cannot draw CSSImageValues > representing <gradient>s. The main difficulty is that <gradient>s may > specify relative lengths / colors that need to be resolved using a > ComputedStyle. > > To implement this, we create a new subclass CSSStyleGradientValue. When > a CSSStyleGradientValue is created from a custom paint styleMap, we pass > in the Node that the paint callback corresponds to. When we need to > generate an image, we use the Node to resolve any lengths / colors. > > Bug: 803680 > Change-Id: I15994c7b87015731547da581720f42d29384426b > Reviewed-on: https://chromium-review.googlesource.com/882906 > WPT-Export-Revision: 94d342402aea84c13fe192115073262d3fa43c68 > > >
Component: web-platform-tests → Layout: Web Painting
Product: Testing → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.