myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Robinson (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TRINIDAD-2268) -tr-property-ref replacement needs to work with gradient settings
Date Tue, 22 May 2012 21:44:40 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281233#comment-13281233
] 

Dave Robinson commented on TRINIDAD-2268:
-----------------------------------------

We need a way to replace the hex color values with the alias values (which are also assigned
to hex values). Ideally reusing the existing -tr-property-ref would be preferred, to be something
like this:

background: linear-gradient(top, -tr-property-ref(".AFColor1:alias","color") 0%, -tr-property-ref(".AFColor2:alias","color")
100%); 
background: -moz-linear-gradient(top, -tr-property-ref(".AFColor1:alias","color") 0%, -tr-property-ref(".AFColor2:alias","color")
100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,-tr-property-ref(".AFColor1:alias","color")),
color-stop(100%,-tr-property-ref(".AFColor2:alias","color")));
background: -webkit-linear-gradient(top, -tr-property-ref(".AFColor1:alias","color") 0%, -tr-property-ref(".AFColor2:alias","color")
100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='-tr-property-ref(".AFColor1:alias","color")',
endColorstr='-tr-property-ref(".AFColor2:alias","color")',GradientType=0 );
background: -ms-linear-gradient(top,-tr-property-ref(".AFColor1:alias","color") 0%, -tr-property-ref(".AFColor2:alias","color")
100%);

The exact syntax isn't that important - really we just need a way to do color replacements
for these instances. 

                
> -tr-property-ref replacement needs to work with gradient settings
> -----------------------------------------------------------------
>
>                 Key: TRINIDAD-2268
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2268
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Skinning
>    Affects Versions:  1.2.12-core
>         Environment: This is needed in 1.2.12.6.2 and other current versions
>            Reporter: Dave Robinson
>
> We need to be able to use -tr-property-ref to do color replacements for color gradient
assignments, like the following (showing examples for all browsers):
>   background: linear-gradient(top, #cce2f6 0%, #b1d2f2 100%); 
>     background: -moz-linear-gradient(top, #cce2f6 0%, #b1d2f2 100%);
>     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cce2f6),
color-stop(100%,#b1d2f2));
>     background: -webkit-linear-gradient(top, #cce2f6 0%, #b1d2f2 100%);
>     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cce2f6', endColorstr='#b1d2f2',GradientType=0
);
>     background: -ms-linear-gradient(top, #cce2f6 0%, #b1d2f2 100%);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message