RE: CSSStyleDeclaration: Setting only a value or a priority

On Date: Tue, 13 Aug 2013 20:36:26 -0700, Rik Cabanier wrote:

> I guess I don't understand. What is "a three-dimensional color map for nonlinear interpolation in the rgb domain"? Are you trying to do ICC color conversion or a simple color transformation?

A color transform that is nonlinear in the rgb domain could still be interpolated linearly or quadratically in the rgb-domain if is sufficiently smooth. This would require the user to specify rgb-value-pairs (hence a 3d map) for interpolation. I consider using this in my add-ons for transforms in other color spaces, for example to enable changing hue without changing perceived luminance (insofar as this is possible).

> Aren't we trying to solve your use case?

No, we are trying to repair one of those little design flaws in your use case (DOM/CSS)  in order to prevent people from moving to native or graphics code bases.

>Please list other applications where your proposal would help.

Many Firefox add-ons enable users to change style properties that don't suit them. In any of these cases, merely the property values should be changed, because changing priorities would change rule application, which is something altogether different. Therefore, there should be separate functions for setting style property values and priorities. Those are simple functions that take ten minutes to implement.

PJS, Firefox add-on developer.

Date: Tue, 13 Aug 2013 20:36:26 -0700
Subject: Re: CSSStyleDeclaration: Setting only a value or a priority
From: cabanier@gmail.com
To: pjs.nl@live.com
CC: www-style@w3.org; simonp@opera.com



On Tue, Aug 13, 2013 at 6:35 PM, Peter Sloetjes <pjs.nl@live.com> wrote:




On Tue, 13 Aug 2013 17:52:46 -0700, Rik Cabanier wrote:

> Can this be solved by CSS Filters?

No it can not. Neither did you read (or understand) my previous answer.

I guess I don't understand. What is "a three-dimensional color map for nonlinear interpolation in the rgb domain"?
Are you trying to do ICC color conversion or a simple color transformation?  
 Please stop diverting the subject.

Aren't we trying to solve your use case?Please list other applications where your proposal would help. 

Date: Tue, 13 Aug 2013 17:52:46 -0700
Subject: Re: CSSStyleDeclaration: Setting only a value or a priority
From: cabanier@gmail.com

To: pjs.nl@live.com
CC: www-style@w3.org; simonp@opera.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_Filtering for 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 15:49:43 UTC