For example height: 200rpx !important; is a line of valid CSS code and it works in Toutiao. But after uglify it becomes height:200rpx!important; and it won't work.
Not all !important statements fail. To reproduce the bug there are several requirements:
Must use rpx. height:200px!important; is ok and also color:red!important is ok.
Description
For example
height: 200rpx !important;
is a line of valid CSS code and it works in Toutiao. But after uglify it becomesheight:200rpx!important;
and it won't work.Not all
!important
statements fail. To reproduce the bug there are several requirements:rpx
.height:200px!important;
is ok and alsocolor:red!important
is ok.!important
.Reproduct link
https://developer.toutiao.com/ide/minicode/vpNKxu
Reproduct steps
Impact
Some CSS failed on Toutiao.
Temporary solution
We can write a Webpack loader to revert the uglify.
Platforms