Skip to content

Empty CSS custom values generate an error #1538

Closed

Description

@user414

Hello I'm also running with an issue similar to the one describe here

twbs/bootstrap#38061

when including part of the boostrap css in an epub V3 file as epubcheck is reporting an error on empty value for custom css properties. After verification I agree with the boostrap team that it is legal CSS for custom properties to be empty whereas it is not legal for regular properties to be empty and it seems it is a bug in epubcheck to report this as an error.

To replicate the error simply take the boostrap CSS here

https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.css

and include it in an epub3 file, then run epubcheck vs 5.0.1 and you will get an error like this:

ERROR(CSS-008): ../untitled.epub/OEBPS/Styles/main.css(2731,25): An error occurred while parsing the CSS: Token ";" not allowed here, expecting a property value.

Activity

  1. rdeltour commented on Aug 31, 2023

    @rdeltour
    Member

    I agree this looks like a bug, good catch! If I remember correctly, EPUBCheck's custom CSS parser was implemented even before CSS custom properties were a thing. I'll look into it for the next milestone.

  2. self-assigned this
    on Aug 31, 2023
  3. added
    status: in progressThe issue is being implemented by the development team
    and removed on Dec 20, 2024
  4. added a commit that references this issue on Dec 23, 2024
    d60da30
  5. added
    status: has PRThe issue is being processed in a pull request
    and removed
    status: in progressThe issue is being implemented by the development team
    on Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: has PRThe issue is being processed in a pull requesttype: false-positiveThis issue is about valid content being incorrectly rejected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址