You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The following HTML does not result in a green background div. Only the bottom border is applied.
<html><head>
<style>
.alert {
--bg: #d1e7dd;
background-color: var(--bg);
border-bottom: 1px solid black;
}
</style>
</head><body>
<div class='alert'>
This box should be green (if VAR works) with a border bottom (if css applied).
</div></body></html>
To Reproduce
var document = new Document("index.hml");
document.Save("out.pdf", SaveFormat.Pdf);
Expected behavior
The box should be green with a border bottom.
Screenshots
Using Var():
Setting the background color without Var():
Desktop (please complete the following information):
OS: Windows
Version: Aspose.PDF v24.6.0
The text was updated successfully, but these errors were encountered:
Hello, @martsve in case you free of use nodejs package of Aspose.PDF I found solution for you with postcss package to transform var to static css. Also Lightning CSS can be applicable and postcss-rs you can use as standalone util.
Describe the bug
The following HTML does not result in a green background div. Only the bottom border is applied.
To Reproduce
Expected behavior
The box should be green with a border bottom.
Screenshots
Using Var():
Setting the background color without Var():
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: