Skip to content

Commit

Permalink
fix: text-decoration-line fallback (#2088) (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Jul 11, 2021
1 parent b2902ec commit 44296e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ export class CSSParsedDeclaration {
this.paddingLeft = parse(paddingLeft, declaration.paddingLeft);
this.position = parse(position, declaration.position);
this.textAlign = parse(textAlign, declaration.textAlign);
this.textDecorationColor = parse(textDecorationColor, declaration.textDecorationColor || declaration.color);
this.textDecorationLine = parse(textDecorationLine, declaration.textDecorationLine);
this.textDecorationColor = parse(textDecorationColor, declaration.textDecorationColor ?? declaration.color);
this.textDecorationLine = parse(
textDecorationLine,
declaration.textDecorationLine ?? declaration.textDecoration
);
this.textShadow = parse(textShadow, declaration.textShadow);
this.textTransform = parse(textTransform, declaration.textTransform);
this.transform = parse(transform, declaration.transform);
Expand Down

0 comments on commit 44296e5

Please sign in to comment.