ro.sync.ecss.css.Styles getPseudoLevel() only returns 0 or 1
Posted: Fri Mar 04, 2016 6:08 pm
Hello everyone,
I am using the author component (SDK version 17.1.0.1). I have created a class which implements ro.sync.ecss.extensions.api.StylesFilter.
My .framework file calls this class in the "cssStylesFilterExtension" field.
My .framework file also calls a CSS file containing several pseudo elements at different pseudo levels. Example :
When I open my XML file, I can see that the different contents and styles have been applied.
I would like to change programmatically in my "StylesFilter" class the styles of these pseudo elements so I tried to get the pseudoLevel of the current styles by using :
BUT it always returns 0 or 1 for all type of nodes (NODE_TYPE_PSEUDO_ELEMENT or NODE_TYPE_ELEMENT).
Can you help me on this ?
Thanks.
Johann
I am using the author component (SDK version 17.1.0.1). I have created a class which implements ro.sync.ecss.extensions.api.StylesFilter.
My .framework file calls this class in the "cssStylesFilterExtension" field.
My .framework file also calls a CSS file containing several pseudo elements at different pseudo levels. Example :
Code: Select all
procedure:before(1) {
content: "before 1";
background-color: red;
}
procedure:before(2) {
content: "before 2";
background-color: green;
}
procedure:before(3) {
content: "before 3";
background-color: blue;
}
I would like to change programmatically in my "StylesFilter" class the styles of these pseudo elements so I tried to get the pseudoLevel of the current styles by using :
Code: Select all
styles.getPseudoLevel()
Can you help me on this ?
Thanks.
Johann