Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

border-radius with !important produces wrong output #20

Closed
wants to merge 6 commits into from

Conversation

ocean90
Copy link
Contributor

@ocean90 ocean90 commented Jul 27, 2014

This PR adds a test for div { border-radius: 0 !important } where the expected output would be the same. But you get div { border-radius: !important 0 }.

Another added test is div { border-radius: 8px 7px !important } which should output div { border-radius: 7px 8px !important }, but you get div { border-radius: 7px 8px } !important.

Related: https://core.trac.wordpress.org/ticket/29038

@ocean90
Copy link
Contributor Author

ocean90 commented Aug 3, 2014

@ntwb
Copy link

ntwb commented Nov 30, 2014

@Krinkle Is there anything holding back this pull request from being merged?

I also just tested both of the reported issues here at https://cssjanus.github.io/

The first issue div { border-radius: 0 !important } still produces div { border-radius: !important 0 }

The second issue is now fixed as part of v1.1.1 / 2014-11-19

@trevorparscal
Copy link
Contributor

It being able to be merged cleanly might help.

@ocean90
Copy link
Contributor Author

ocean90 commented Jan 13, 2015

@trevorparscal I've updated this pull request to support the recent changes.

@Krinkle
Copy link
Member

Krinkle commented Jan 13, 2015

@ocean90 Thanks! I'll try to get it merged this week.

@ntwb
Copy link

ntwb commented Feb 3, 2015

@Krinkle Any chance of maybe merging this this week? 😉

@Krinkle Krinkle closed this in d6b9efd Feb 4, 2015
@Krinkle
Copy link
Member

Krinkle commented Feb 4, 2015

@ocean90 I made a few minor changes (adjust indentation of borderRadiusRegExp, document border-radius syntax, capitalise @param {Array}, and added tests for four-values with slashes). I also simplified the implementation in follow-up commit 1faff3f. It's slightly less performant due to Array#slice and Array#filter overhead, but makes it a lot simpler.

@ntwb Done!

@ntwb
Copy link

ntwb commented Feb 4, 2015

Thanks :)

Krinkle pushed a commit to wikimedia/mediawiki-tools-grunt-cssjanus that referenced this pull request Feb 11, 2015
Adds support for !importand and slash in border-radius values.
See wikimedia/node-cssjanus#20.
@ocean90
Copy link
Contributor Author

ocean90 commented Feb 11, 2015

Thanks @Krinkle!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants