Skip to content

Commit

Permalink
fix: TypeError occurs with ::nth-fragment() and ::after-if-continues(…
Browse files Browse the repository at this point in the history
…) selectors

- fix #1023
  • Loading branch information
MurakamiShinyu committed Oct 11, 2022
1 parent 1197e80 commit 7a7c1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/vivliostyle/css-cascade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ export function isSpecialName(name: string): boolean {
}

export function isMapName(name: string): boolean {
return name.charAt(0) == "_";
return name.charAt(0) === "_" && name !== "_viewConditionalStyles";
}

export function isPropName(name: string): boolean {
return name.charAt(0) != "_" && !SPECIALS[name];
return name.charAt(0) !== "_" && !SPECIALS[name];
}

export function isInherited(name: string): boolean {
Expand Down

0 comments on commit 7a7c1aa

Please sign in to comment.