You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use getCssText to replicate styles into pip window and found this bug. When there is all: unset the order of declarations is not correct in chrome, because it expands all declarations.
declare component like this const StyledButton = styled('div', {all: 'unset', borderRadius: '12px'})
call getCssText
explore the output and see the order of declarations in chrome
Expected behavior
Order is correct
System information
Browser (if applies) chrome
Additional context
It is probably mostly a bug in Chrome as it wrongly returns value of rule.cssText so this function can not be used in that case. Adding it here for others as it is currently not maintained anymore.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
I wanted to use
getCssText
to replicate styles into pip window and found this bug. When there isall: unset
the order of declarations is not correct in chrome, because it expands all declarations.More info here: https://stackoverflow.com/questions/79332575/wrong-order-of-css-declarations-when-using-all-unset-and-csstext
To Reproduce
const StyledButton = styled('div', {all: 'unset', borderRadius: '12px'})
getCssText
Expected behavior
Order is correct
System information
Additional context
It is probably mostly a bug in Chrome as it wrongly returns value of
rule.cssText
so this function can not be used in that case. Adding it here for others as it is currently not maintained anymore.The text was updated successfully, but these errors were encountered: