Issue with string-set and variable declaration in css (PDF creation)
Posted: Wed Sep 11, 2024 6:48 pm
I'm using a demo version of Publishing Engine and have run into the following issue while creating PDFs
I'm testing the use of css variables and string-set and when referencing them in the css no value is returned.
I've tried the above without the oxy_concat
content: var(--effectiveDate); or content: string(effectiveDate)
both these return nothing.
Is this a limitation with the demo version?
Mario
I'm testing the use of css variables and string-set and when referencing them in the css no value is returned.
Code: Select all
:root {
string-set: effectiveDate "EFFECTIVE DATE";
--effectiveDate: "EFFECTIVE DATE";
}
/* this one returns : TEST - Some more stuff - null */
.front-page > div.front-page-title > div {
color: blue;
font-size: 4rem;
content: oxy_concat('TEST - ', 'Some more stuff - ', string(effectiveDate));
}
/* this one returns nothing */
.front-page > div.front-page-title2 > div {
color: blue;
font-size: 4rem;
content: oxy_concat('TEST - ', 'Some more stuff - ', var(--effectiveDate));
}
content: var(--effectiveDate); or content: string(effectiveDate)
both these return nothing.
Is this a limitation with the demo version?
Mario