Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug that stylesheet link element is ignored when class attribute exists #452

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

MurakamiShinyu
Copy link
Member

For example, <link class="horizontal" rel="stylesheet" href="style_h.css" > was ignored. This seemed to be caused by incorrect implementation of EPUB Alternate Style Tags. This spec says,

persistent style sheet is one that is always enabled, regardless of which alternate style set is enabled. A persistent style sheet is indicated by omitting the title attribute from the link or style element that imports it.

That is, the link element with class attribute should be a persistent style sheet unless title attribute is specified.

…as ignored because of existence of the class attribute
@MurakamiShinyu MurakamiShinyu merged commit 6f35bb6 into master Sep 7, 2018
@MurakamiShinyu MurakamiShinyu deleted the fix-link-stylesheet-with-class branch December 21, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant