Implement color-interpolation="linearRGB"
Categories
(Core :: SVG, enhancement)
Tracking
()
People
(Reporter: bugzilla, Assigned: longsonr)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+ color-interpolation="linearRGB" renders the same as color-interpolation="sRGB" on the linear gradient in the test suite. Reproducible: Always Steps to Reproduce: 1. Visit http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-painting-render-01-b.html with Deer Park Alpha 1.1 2. Compare the three gradients. 3. The differences are described in the text on the page. Actual Results: The three examples look the same. Expected Results: The third example should be different (read the text in the test).
Updated•19 years ago
|
![]() |
||
Comment 1•19 years ago
|
||
Spec. link: http://www.w3.org/TR/SVG/painting.html#ColorInterpolationProperties
Comment hidden (obsolete) |
Comment 3•19 years ago
|
||
converting sRGB to linearRGB is a simple gamma correction, it can be expressed as an svg filter ( which allready works in mozilla ! yay :-) ): <filter id="toLinearRGB" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1"> <feComponentTransfer color-interpolation-filters="sRGB"> <feFuncR type="gamma" amplitude="1" exponent="0.416666666666" offset="0"/> <feFuncG type="gamma" amplitude="1" exponent="0.416666666666" offset="0"/> <feFuncB type="gamma" amplitude="1" exponent="0.416666666666" offset="0"/> <feFuncA type="gamma" amplitude="1" exponent="0.416666666666" offset="0"/> </feComponentTransfer> </filter> here is the site where i found this information: http://www.sjbrown.co.uk/index.php?article=gamma this can be used as a workaround if you need linearRGB.
Comment 4•19 years ago
|
||
oops, this is not 100% correct, it should be exponent="0.454545454545" , sorry !
![]() |
||
Updated•15 years ago
|
Updated•15 years ago
|
![]() |
||
Updated•15 years ago
|
Assignee | ||
Updated•14 years ago
|
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Comment hidden (obsolete) |
Updated•2 years ago
|
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•2 years ago
|
Assignee | ||
Comment 11•7 months ago
|
||
Updated•7 months ago
|
Assignee | ||
Comment 12•7 months ago
|
||
Assignee | ||
Comment 13•7 months ago
|
||
Comment 14•6 months ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1cb2802bb09b implement color-interpolation: linearRGB for gradients r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43713 for changes under testing/web-platform/tests
Comment 16•6 months ago
|
||
Backed out changeset 1cb2802bb09b (bug 298281) for causing build bustage at nsCSSRenderingGradients.h
Backout: https://hg.mozilla.org/integration/autoland/rev/aeb951a438d6f33812c2b4d5cc70aaabbef7a37e
Failure log: https://treeherder.mozilla.org/logviewer?job_id=440534116&repo=autoland&lineNumber=93711
Upstream PR was closed without merging
Assignee | ||
Comment 18•6 months ago
|
||
Comment 19•6 months ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6a3bba37bd22 implement color-interpolation: linearRGB for gradients r=emilio
Comment 20•6 months ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Comment 22•6 months ago
|
||
Robert, is that something worth mentioning in our release notes (general or MDN)?
Assignee | ||
Comment 23•6 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
We now implement linearRGB interpolation for SVG gradients.
[Affects Firefox for Android]:
yes
[Suggested wording]:
We now implement linearRGB interpolation for SVG gradients, as well as the existing sRGB interpolation. You can choose which to use via the color-interpolation property.
[Links (documentation, blog post, etc)]:
http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-painting-render-01-b.html
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color-interpolation
Comment 24•6 months ago
|
||
Note added to 123 nightly release notes in the Web Standards section with a link to MDN, thanks.
Comment 25•5 months ago
|
||
The browser compat data should also be updated (actually added) to reflect that change.
Sebastian
Comment 26•5 months ago
|
||
Updated•5 months ago
|
Description
•