From b11439676d49eb075174b288f4c7a5838f21c7db Mon Sep 17 00:00:00 2001 From: MurakamiShinyu Date: Wed, 8 Sep 2021 19:46:27 +0900 Subject: [PATCH] fix: Page at-rule in conditional rule is applied even if condition is false fixes 764 --- packages/core/src/vivliostyle/css-page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/vivliostyle/css-page.ts b/packages/core/src/vivliostyle/css-page.ts index 368934bcc..b9360bd4c 100644 --- a/packages/core/src/vivliostyle/css-page.ts +++ b/packages/core/src/vivliostyle/css-page.ts @@ -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); } /**