Describe the issue
outlineWidth doesn’t accept calc() as a valid style:
const styles = stylex.create({
foo: {
outlineWidth: 'calc(0.25rem + 1px)',
~~~~~~~~~~~~~~~~~~~~~
// outlineWidth value must be one of:
// a number literal or math expression
// a number ending in px, mm, in, pc, pt
// a number ending in ch, em, ex, ic, rem, vh, vw, vmin, vmax, svh, dvh, lvh, svw, // dvw, ldw, cqw, cqh, cqmin, cqmax
// null
// initial
// inherit
// unset
// revert
},
})
Expected behavior
Allow calc() for widths
Steps to reproduce
- @stylexjs/eslint-plugin: 0.18.3
Test case
(see above)
Additional comments
Also throws an error for nested pseudoselector syntax too
Describe the issue
outlineWidthdoesn’t acceptcalc()as a valid style:Expected behavior
Allow
calc()for widthsSteps to reproduce
Test case
(see above)
Additional comments
Also throws an error for nested pseudoselector syntax too