Skip to content

Commit

Permalink
Add value getter to CSSMathInvert and CSSMathNegate (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland authored Nov 9, 2023
1 parent 5dc6e27 commit b3d05a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/proxy-cssom.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,20 @@ export function installCSSOM() {
constructor(values) {
super([arguments[0]], 'negate', '-');
}

get value() {
return privateDetails.get(this).values[0];
}
},

'CSSMathInvert': class extends MathOperation {
constructor(values) {
super([1, arguments[0]], 'invert', 'calc', ' / ');
}

get value() {
return privateDetails.get(this).values[1];
}
},

'CSSMathMax': class extends MathOperation {
Expand Down

0 comments on commit b3d05a5

Please sign in to comment.