Skip to content

Commit

Permalink
chore: Ignore properties with unknown prefix to avoid unnecessary war…
Browse files Browse the repository at this point in the history
…nings
  • Loading branch information
MurakamiShinyu committed Jan 17, 2025
1 parent 8f8b0cc commit 3075654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/vivliostyle/css-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
import * as Css from "./css";
import * as CssTokenizer from "./css-tokenizer";
import * as Logging from "./logging";
import * as Base from "./base";
import { ValidationTxt } from "./assets";
import { TokenType } from "./css-tokenizer";

Expand Down Expand Up @@ -2099,6 +2099,8 @@ export class ValidatorSet {
if (CSS.supports(name, value.toString())) {
// Browser supports this property
receiver.simpleProperty(origName, value, important);
} else if (prefix && !Base.knownPrefixes.includes(`-${prefix}-`)) {
// Ignore properties with unknown prefix to avoid unnecessary warnings
} else {
receiver.unknownProperty(origName, value);
}
Expand Down

0 comments on commit 3075654

Please sign in to comment.