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
The generator's mode: 'safe' exists because of IE11 ;)
I didn't test much in IE11, so some fixes might be missed. I tested your examples, my results: border is broken, but box-shadow works well. Going to add whitespace between dimension and hash.
I added tests for this part (that's very complicated that's why I didn't it before). I also tested in IE11 and more cases are covered now. As a result, I fixed several issues in css-tree and one minor bug in spec :) So now this part is more stable.
I found, that border parsing in IE11 is different from background which I used for testing. So 2px#f0f0f0 is ok for background but fails for border... I think adding a whitespace between dimension-token and hash-token should fix it.
Activity
lahmatiy commentedon Dec 9, 2021
The generator's
mode: 'safe'exists because of IE11 ;)I didn't test much in IE11, so some fixes might be missed. I tested your examples, my results:
borderis broken, butbox-shadowworks well. Going to add whitespace between dimension and hash.demonguyj commentedon Dec 9, 2021
Thanks for your check.
But I found some cases.
So I share for you.
Thanks :)
Expected
Result
lahmatiy commentedon Dec 9, 2021
All these cases are valid in IE11 (except

borderI mentioned before)Do you have different results?
demonguyj commentedon Dec 9, 2021
I have a same result too.
I just check difference from before version.
:)
lahmatiy commentedon Dec 10, 2021
I added tests for this part (that's very complicated that's why I didn't it before). I also tested in IE11 and more cases are covered now. As a result, I fixed several issues in css-tree and one minor bug in spec :) So now this part is more stable.
lahmatiy commentedon Dec 10, 2021
Fixes are released in 2.0.2
demonguyj commentedon Dec 15, 2021
Unfortunately I still broken border. :(
Check it please....
expected
result
lahmatiy commentedon Dec 15, 2021
Do you use
2.0.3? I will check as well as will check for the tests to cover itdemonguyj commentedon Dec 15, 2021
I just tested csso 5.0.1.
I knew csso 5.0.1 into csstree 2.0.3.
lahmatiy commentedon Dec 17, 2021
I found, that
borderparsing in IE11 is different frombackgroundwhich I used for testing. So2px#f0f0f0is ok forbackgroundbut fails forborder... I think adding a whitespace between dimension-token and hash-token should fix it.lahmatiy commentedon Dec 17, 2021
Fixed in CSSTree 2.0.4 / CSSO 5.0.2