Skip to content

Commit

Permalink
Merge pull request #1024 from vivliostyle/fix/issue1023
Browse files Browse the repository at this point in the history
fix: TypeError occurs with ::nth-fragment() and ::after-if-continues() selectors
  • Loading branch information
MurakamiShinyu authored Oct 11, 2022
2 parents 1197e80 + 7a7c1aa commit 7e4983b
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

1 comment on commit 7e4983b

@vercel
Copy link

@vercel vercel bot commented on 7e4983b Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vivliostyle – ./

vivliostyle-git-master-vivliostyle.vercel.app
vivliostyle-vivliostyle.vercel.app
vivliostyle.vercel.app

Please sign in to comment.