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

epubcheck does not accept a CSS :is pseudo-class #1289

Closed
iherman opened this issue Dec 17, 2021 · 0 comments
Closed

epubcheck does not accept a CSS :is pseudo-class #1289

iherman opened this issue Dec 17, 2021 · 0 comments
Assignees
Labels
status: completed Work completed, can be closed type: false-positive This issue is about valid content being incorrectly rejected
Milestone

Comments

@iherman
Copy link
Member

iherman commented Dec 17, 2021

Consider the following content file:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
  <head>
    <title>CSS test for :is</title>
    <style>
      :is(h1,h2,h3,h4,h5,h6,a) abbr{border:none}
    </style>
  </head>
  <body>
    <p>This is a possible epubcheck bug...</p>
  </body>
</html>

the epubcheck response is as follows:

Validating using EPUB version 3.3 rules.
ERROR(CSS-008): css-bug.epub/OPS/content_001.xhtml(5,13): An error occurred while parsing the CSS: Token "," not allowed here.

I believe the CSS :is(...) syntax is correct and epubcheck should accept it.

I have also created a small epub file encapsulating this content file, see https://www.dropbox.com/s/d3gwhyg9agjtazx/css-bug.epub?dl=0

@rdeltour rdeltour self-assigned this Dec 17, 2021
@rdeltour rdeltour added status: accepted Ready to be further processed type: false-positive This issue is about valid content being incorrectly rejected labels Dec 17, 2021
@rdeltour rdeltour added this to the v5.0.0-beta milestone Apr 1, 2022
@rdeltour rdeltour added status: in progress The issue is being implemented by the development team and removed status: accepted Ready to be further processed labels Nov 17, 2022
@rdeltour rdeltour added status: completed Work completed, can be closed and removed status: in progress The issue is being implemented by the development team labels Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: completed Work completed, can be closed type: false-positive This issue is about valid content being incorrectly rejected
Projects
None yet
Development

No branches or pull requests

2 participants