- From: Rik Cabanier <cabanier@gmail.com>
- Date: Tue, 13 Aug 2013 17:52:46 -0700
- To: Peter Sloetjes <pjs.nl@live.com>
- Cc: "www-style@w3.org" <www-style@w3.org>, "simonp@opera.com" <simonp@opera.com>
- Message-ID: <CAGN7qDDD4VnU3uH786d0vUEuWMMF6_osaF+LqwXDAJK2e7FnSQ@mail.gmail.com>
On Tue, Aug 13, 2013 at 3:02 PM, Peter Sloetjes <pjs.nl@live.com> wrote: > On Tue, 13 Aug 2013 14:08:14 -0700, Rik Cabanier wrote: > > > Custom filters can't access the color information of the content that > they're applied on so they can't be used. I can't tell what problem Peter > is trying to solve with the color transformation. > > I created two Firefox extensions that apply some transformation to color > data that is extracted from html content (including style rules, images and > canvas elements). It would be nice if some general web technology would > accept a three-dimensional color map for nonlinear interpolation in the rgb > domain, but as far as I know, such a technology does not exist today. > Can this be solved by CSS Filters? For instnace see https://developer.mozilla.org/en-US/docs/Applying_SVG_effects_to_HTML_content#Example.3A_Filteringfor transforming with a color matrix. > If you know of any or can bring one into existence, let me know. My own > implementation works fine, but it could be faster. > > The actual issue is the efficiency of transformations of arbitrary style > property values. Such transformations should not change property priorities > and need to call getPropertyPriority in order to avoid doing so. > > > On Tue, Aug 13, 2013 at 1:45 PM, Simon Pieters <simonp@opera.com> wrote: > > > I just need to know what the use cases are and see whether there are > other solutions that address those use cases *better*. > > I could come up with use cases for any CSS style property. The issue is > that the specification leads to inefficient code, which could easily be > avoided by adding two simple functions. > > PJS, Firefox extension developer. > > ------------------------------ > Date: Tue, 13 Aug 2013 14:08:14 -0700 > > Subject: Re: CSSStyleDeclaration: Setting only a value or a priority > From: cabanier@gmail.com > To: simonp@opera.com > CC: www-style@w3.org; pjs.nl@live.com > > > > > On Tue, Aug 13, 2013 at 1:45 PM, Simon Pieters <simonp@opera.com> wrote: > > On Tue, 13 Aug 2013 21:04:32 +0200, Peter Sloetjes <pjs.nl@live.com> > wrote: > > On Tue, 13 Aug 2013 16:54:47 +0200, Simon Pieters <simonp@opera.com> > wrote: > > Could CSS custom filters be used to address this use case? > > > Clearly there are more color domains than rgba. Transforms in those > domains do require custom implementations, because they normally are > nonlinear in the rgba-domain. > > > I don't know enough about CSS custom filters to tell if it's feasible for > these use cases or not. > > > Custom filters can't access the color information of the content that > they're applied on so they can't be used. > I can't tell what problem Peter is trying to solve with the color > transformation. > > > > > Other use cases do not involve graphics at all, such as custom > transformations of font sizes. > > > Is IE's 'zoom' property inadequate for this use case? > > > My request is basically to remove the built-in inefficiency at this very > low level of the specification. > > > Yes, I understand that. I just need to know what the use cases are and see > whether there are other solutions that address those use cases *better*. > >
Received on Wednesday, 14 August 2013 00:53:13 UTC