-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support CSS logical combination pseudo-classes
This commit update the CSS grammar parser to support funcitonal pseudo- classes taking selector listrs as argument. In effect, this impacts the parsing of the following pseudo-classes: - `:is()` (taking a forgiving selector list) - `:not()` (taking a selector list) - `:where()` (taking a forgiving selector list) - `:has()` (taking a forgiving relative selector list) Fixes #1289, Fixes #1354
- Loading branch information
Showing
5 changed files
with
151 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/org/idpf/epubcheck/util/css/ForgivingErrorHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.idpf.epubcheck.util.css; | ||
|
||
import org.idpf.epubcheck.util.css.CssExceptions.CssException; | ||
|
||
public final class ForgivingErrorHandler implements CssErrorHandler | ||
{ | ||
|
||
public static final ForgivingErrorHandler INSTANCE = new ForgivingErrorHandler(); | ||
|
||
@Override | ||
public void error(CssException e) | ||
throws CssException | ||
{ | ||
// do nothing | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters