Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Conversation

@helmutgranda
Copy link
Contributor

New branch to support corner cases for borders (associate properties). Specifically for request #502

Copy link
Contributor

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

These look great, just a few minor changes.

Also: I just merged #556, which removes the id="example_one" boilerplate from the HTML files. Would you mind removing these IDs from the PR?

<div id="output" class="output large hidden">

<section id="default-example" class="default-example">
<div id="example-element" class="transition-all">This is a box with bottom left rounded corner.</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Grammar nit: I think this should be "This is a box with a bottom left rounded corner." - here and in the other files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it!

width: 250px;
height: 250px;
display: flex;
text-align: center;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need text-align: center because you inherit it from https://github.com/mdn/interactive-examples/blob/master/css/editable-css.css#L50.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why you need a different CSS for these and for the main border-radius example. It seems like this one works a little better, so could border-radius use this (probably renamed from border-radius-corner to just border-radius?

Or am I missing something here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!

The reason why we need a different version is because border-radius uses a width of 80% while the corner cases use a fix with of 250px. Do you want to use 250px for all instead of 80% for the main case?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to use 80% for both cases, unless there's a reason I'm missing that we sholdn't use it for the single-corner cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean 80% for width and height? or 80% as it is on the main example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the way, do you know how to see this comments more prominent? It took me about 10 minutes to find this comment since it was buried in a review. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think 80% width and 80% height, probably. That seems to work well with both border-radius and the single-corner variants..

By the way, do you know how to see this comments more prominent? It took me about 10 minutes to find this comment since it was buried in a review. Thanks!

Sorry, I should probably have added this comment at the top level. GitHub hides comments on code when another commit has changed the code, which is kind of annoying.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wbamberg, sounds good! In that case I went ahead and removed the "corner" only stylesheet and updated the size per your request.

Copy link
Contributor

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

Thanks for these awesome examples @helmutgranda !

@wbamberg wbamberg merged commit 56918fd into mdn:master Feb 9, 2018
@helmutgranda helmutgranda deleted the add-border-radius-corners-css-example branch February 9, 2018 04:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants