Replies: 2 comments 1 reply
-
|
I've found a solution for my current project: |
Beta Was this translation helpful? Give feedback.
-
|
Vivliostyle.js's JS handling has limitations. See the comments in the issue: The stylesheet given with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've come quite far with my Vivliostyle powered book project over the weekend.
Now I have an issue when I try to include a element that is bound to some JS functionality. In general its works, but the layout get's distorted by the layouting phase. The JS is working in a way that it tries to fit itself into the given dimensions (for example by a wrapper container element). This works well if I open the HTML unprocessed into a browser. But to manage tat the JS provides it's own CSS (it doesn't applies it itself).
I've implemented a
ResizeObserverto make sure that is only uses the dimensions determinated by the layouter.But even with this in place there are issues since vivliostyle walks down the whole tree and rewrites the classes and thus the applied styles.
Is there a way to stop that at a certain point? One possibility might be a custom CSS property (like
-vs-ignore: true), another way might be to pass classes on the command line that would be ignored in processing.Is there already such a posibility?
Beta Was this translation helpful? Give feedback.
All reactions