Skip to content

Commit

Permalink
fix: unsupported nested media rule causes subsequent rules to fail
Browse files Browse the repository at this point in the history
fix #1360
  • Loading branch information
MurakamiShinyu committed Jul 7, 2024
1 parent c1463b5 commit 6098105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/vivliostyle/css-cascade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ export function setPropCascadeValue(
value: CascadeValue,
context?: Exprs.Context,
): void {
if (!style) {
return;
}
if (!value) {
delete style[name];
} else {
Expand Down

0 comments on commit 6098105

Please sign in to comment.