| Summary: | [svg] fill-opacity should be clamped to the [0,1] range | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||
| Component: | SVG | Assignee: | Antoine Quint <graouts> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | changseok, darin, dino, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, sabouhallawa, webkit-bug-importer, zimmermann | ||||
| Priority: | P2 | Keywords: | InRadar, WebExposed, WPTImpact | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Antoine Quint
2022-02-27 08:59:46 PST
Created attachment 453342 [details]
Patch
Committed r290568 (247846@main): <https://commits.webkit.org/247846@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453342 [details]. Comment on attachment 453342 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453342&action=review > Source/WebCore/rendering/style/SVGRenderStyle.h:285 > + auto clampedOpacity = clampTo<float>(opacity, 0.f, 1.f); Should have been able to use std::clamp instead of clampTo<float> here. But I suppose either is OK. |