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

Add support for border-width shorthand property. #21

Merged
merged 1 commit into from
Jul 26, 2016
Merged

Conversation

tkaemming
Copy link
Collaborator

This is a follow up to GH-20.

References GH-19.

@@ -27,46 +27,46 @@
logger = logging.getLogger(__name__)


def expand_shorthand_box_property(name, value):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing name here doesn't really make sense with the addition of templating, so I removed it. Not sure there would be other cases where property expansion relies on the original property name being passed in.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be necessary to determine the syntax for those other, more complex properties but I think this interface is fine as it is.

@@ -25,28 +25,30 @@ class TestCase(Exam, unittest.TestCase):


def test_expand_shorthand_box_property():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing a test for border-{}-box would have been nice.

@BYK BYK merged commit 40cbd39 into master Jul 26, 2016
@BYK BYK deleted the support-border-width branch July 26, 2016 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants