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

Jeanne Waldman commented on TRINIDAD-1680:
------------------------------------------

More comments:
1. In the skinning.xml file, can you explain why this would be useful to 
someone?
2. In purpleSkin.css, can you add more properties to the selectors to make sure 
they still get included?

/* test the new include property functionality */
.AFTestForegroundColor:alias {color: Red; font-style:bold;}
.AFTestBackgroundColor:alias {-tr-include-property: 
property(selector=".AFTestForegroundColor:alias",propertyName="color", 
localPropertyName="background-color"); padding: 2px; margin:5px;}

af|commandButton
{
  background-color: purple;
  -tr-include-property: 
property(selector=".AFTestBackgroundColor:alias",propertyName="background-color",localPropertyName="background-color");
  min-width: 100px;
  
}

> Introduce include-property in CSS
> ---------------------------------
>
>                 Key: TRINIDAD-1680
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1680
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Marius Petoi
>            Priority: Minor
>         Attachments: includeProperty.patch, includeProperty.patch, 
> includeProperty.patch, patchIncludeProperty.patch
>
>
> The include-property feature is present in the XSS, but it is not supported 
> in the CSS. With this, we are one step closer to eliminating the old XSS 
> files and replacing them with CSS. In the XSS files, the syntax of 
> includeProperty is:
>  <!-- AFVeryDarkForeground is the darkest foreground color in the core (green)
>      color ramp -->
>  <style name="AFVeryDarkForeground">
>   <includeProperty name="AFVeryDarkBackground"
>                    propertyName="background-color"
>                    localPropertyName="color"/>
>  </style>
> This should be ported to CSS also.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to