-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update syntax for "border-radius" and "box-shadow", added vendor prefixes for calc() #2367
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why opera here and nowhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question; I was respecting the opera reference in another line (
line 99 -o-border-radius: 5px;
); It's not consistent with other references toborder-radius
, but I erred on the side of caution. Lowest common denominator, I thought if the file supports vendor prefixes for the era of Opera 11.5 --when Opera standardized their css forborder radius
and dropped the need for the-o
prefix; at that time, the-o
prefix for transition was also required (until version 15) but not forbox-shadow
. Opera is now at version 38, but as mocha is so widely used, I didn't want to remove support, but ensure it.I had go to cast a wide net on the settings at autoprefixer for the Opera settings to show up, using
> .04%, last 30 versions
(Browsers with more than .04% share, plus back 30 versions). It's likely safe to remove the prefix considering the developer audience. Supporting the last 10 versions with browsers more than 1% share, it's now safe to drop most-moz
and-o
prefixes, but I didn't feel it was my place to make that choice.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that all went way over my head. I'm convinced!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first, I didn't know why the hell that one prefix was hanging out there either; I was probably as surprised as you that it wasn't my mistake.😂