Skip to content

Commit

Permalink
fix: Page at-rule in conditional rule is applied even if condition is…
Browse files Browse the repository at this point in the history
… false

fixes 764
  • Loading branch information
MurakamiShinyu committed Sep 8, 2021
1 parent a693b4f commit b114396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/vivliostyle/css-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ export class PageParserHandler
validatorSet: CssValidator.ValidatorSet,
private readonly pageProps: { [key: string]: CssCascade.ElementStyle },
) {
super(scope, owner, null, parent, null, validatorSet, false);
super(scope, owner, parent?.condition, parent, null, validatorSet, false);
}

/**
Expand Down

0 comments on commit b114396

Please sign in to comment.