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
{{ message }}
Repository navigation
False-positive with the CSS :not pseudo-class #1354
<?xml version="1.0" encoding="UTF-8"?><htmlxmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"><head><title>CSS test for :not</title><style>@namespaceepub"http://www.idpf.org/2007/ops";:not(nav.class)>h1{color: blue;}:not(nav[epub|type="landmarks"])>h1{text-decoration: underline;}</style></head><body><navepub:type="toc"><h1>Table of Contents</h1></nav><navepub:type="landmarks"><h1>Guide</h1></nav></body></html>
EPUBCheck lists these two errors:
Validating using EPUB version 3.2 rules.
ERROR(CSS-008): epubcheck-issue.epub/EPUB/xhtml/epubcheck-issue.xhtml(10,21): An error occurred while parsing the CSS: Token ")" not allowed here.
ERROR(CSS-008): epubcheck-issue.epub/EPUB/xhtml/epubcheck-issue.xhtml(14,25): An error occurred while parsing the CSS: Token "=" not allowed here.
Check finished with errors
Messages: 0 fatals / 2 errors / 0 warnings / 0 infos
EPUBCheck completed
The CSS appears to be correct, so I believe EPUBCheck should not report any errors.
Here's a small EPUB file that reproduces the issue (renamed to .zip, otherwise it wouldn't upload): epubcheck-issue.zip
Activity
fix: support CSS logical combination pseudo-classes