-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow fonts to be remote resources
Feature changes: - publication resources used in font declarations (in CSS documents, in inline CSS content of XHTML documents or SVG, or in SVG's deprecated `font-face-uri` element) MAY be remote resources. - remote resource check is dependent on content parsing, so the check is moved to *after* the resource contents are checked, and only run when checking an entire publication. Fix: - check that the item property "remote-resource" is properly set when required on items representing CSS documents Internal changes: - Add a new `FONT` type to XRefChecker references - Register as `XRefChecker` references of type `FONT` the paths found in CSS `@font-face` declaration and SVG `font-face-uri` elements. - Add a new `getTypes(path)` public method in `XRefChecker`, to get the type(s) of reference(s) to a given publication resource - Add a new `isRemote(String path)` util method to `PathUtil` - `CSSHandler` constructor only receives a `ValidationContext` - add tests Fix #871, Fix #672
- Loading branch information
Showing
75 changed files
with
972 additions
and
68 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
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
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
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
Oops, something went wrong.