Skip to content
Discussion options

You must be logged in to vote

The precedence order in the same origin, "author (developer)", is determined by order of appearance.

Vivliostyle CLI inserts <link rel="stylesheet"> elements for stylesheets from themes to the end of the <head> elements of the HTML document:

for (const s of style ?? []) {
$('head').append(`<link rel="stylesheet" type="text/css" />`);
$('head > *:last-child').attr('href', encodeURI(s));
}

Vivliostyle CLI passes stylesheets given by style (author stylesheet), userStyle (user stylesheet) and css (author stylesheet) options to Vivliostyle.js:

vivliostyle-cli/src/server.ts

Lines 134 to 165 in

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by yamahige
Comment options

You must be logged in to vote
1 reply
@MurakamiShinyu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants