Quote:
Originally Posted by phossler
Same here using 4.9.1 - didn't used to do that
|
Agreed. Perhaps it was some recent addition.
In the Calibre 4.9.1 release notes it mentions:
Quote:
Edit book: The Check book function has a new, improved CSS checker with support for CSS 3
|
Perhaps this was an accidental regression that was introduced.
Quote:
Originally Posted by phossler
I know it's only a warning, but I think it's a wrong warning since I think it's allowed by the CSS gods
From the 'detailed description' link
|
Here's the exact URL the "detailed description" links to:
https://github.com/CSSLint/csslint/w...e-defined-once
... very odd. I don't agree with that at all.
I can understand Check Book pointing out an (accidental) duplicate in your CSS:
h1,
h2, h3, h4 { }
h2 { }
h2 { }
but pointing out ones that aren't the same?
h2
h2.title
h2.author
Quote:
Originally Posted by JSWolf
That is much nicer code.
|
No. I'll have to agree with phossler and hobnail on this one.
Sometimes it's easier to have a centralized location for shared CSS, and then specific overrides in a different location.
Side Note: And I would strongly recommend against adding
hyphens: none though. Think big words ("Acknowledgements"), with big font, on tiny devices (cell phone). Just leave that setting up to user devices/preferences.