-
Notifications
You must be signed in to change notification settings - Fork 185
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
Microsoft CSS changes #156
Conversation
Changes to support Microsoft properties and pseudo-elements.
Removed spaces that preceded CRLF
Removed spaces that preceded CRLF
Removed extraneous space
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-content-zoom-snap-points": { | ||
"syntax": "snapInterval(<start zoomfactors>, <step zoomfactors>) | snapList(<list zoomfactors>)", |
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.
Type name can't contain a white spaces. Must be:
"syntax": "snapInterval(<start-zoomfactors>, <step-zoomfactors>) | snapList(<list-zoomfactors>)"
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-flow-from": { | ||
"syntax": "none | identifier [ , none | identifier ] *", |
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.
Multipliers must stick to a group:
"syntax": "none | identifier [ , none | identifier ]*"
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-flow-into": { | ||
"syntax": "none | identifier [ , none | identifier ] *", |
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.
Multipliers must stick to a group:
"syntax": "none | identifier [ , none | identifier ]*"
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-hyphenate-limit-chars": { | ||
"syntax": "auto | <integer> {1,3}", |
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.
Multipliers must stick to a group:
"syntax": "auto | <integer>{1,3}",
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-scroll-limit": { | ||
"syntax": "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> '<-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>", |
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.
Wrongly placed apostrophe: '<-ms-scroll-limit-x-max'>
-> <'-ms-scroll-limit-x-max'>
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-scroll-snap-points-x": { | ||
"syntax": "snapInterval(<start length>, <step length>) | snapList(<list lengths>)", |
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.
Type name can't contain a white spaces. Must be:
"syntax": "snapInterval(<start-length>, <step-length>) | snapList(<list-lengths>)"
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-scroll-snap-points-y": { | ||
"syntax": "snapInterval(<start length>, <step length>) | snapList(<list lengths>)", |
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.
Type name can't contain a white spaces. Must be:
"syntax": "snapInterval(<start-length>, <step-length>) | snapList(<list-lengths>)"
Great contribution! I leave a comments on syntaxes that can't be parsed according to CSS Values and Units Module Level 3 rules. But even if fix those mistakes (as I ded), there are several problem properties:
The problem is around
That's will solve the problem with undefined syntaxes. |
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-scroll-limit-x-max": { | ||
"syntax": "auto | <length> ", |
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.
Extra white space at the ending, should be removed.
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-scroll-limit-y-max": { | ||
"syntax": "auto | <length> ", |
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.
Extra white space at the ending, should be removed.
css/properties.json
Outdated
"status": "nonstandard" | ||
}, | ||
"-ms-filter": { | ||
"syntax": "filtertype1 (parameter1, parameter2,...) | filtertype2 (parameter1, parameter2,...)", |
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.
This syntax is incorrect, despite it likely can be parsed:
- function name should stick to parenthesis, otherwise it is a keyword and expression surrounded with parentheses
- function name should be defined explicitly
parameter1, parameter2
means two keywordsparameter1
andparameter2
separated with comma...
means 3 periods|
is a logicalor
So this syntax have no sense. Moreover, -ms-filter
requires that a value to be enclosed in single quotes or double quotes. So, that's just a string and syntax must be replaced for <string>
, i.e.
"syntax": "<string>"
Many thanks to @lahmatiy for his thorough review of my prior submission. His suggestions were very helpful to me. |
Many thanks to both of you @jameshkramer and @lahmatiy! I'm merging this. |
It's really impressive PR and will happy to see it merged. But I didn't review last changes and I see some issues here:
Also I didn't checked updates with CSSTree's syntax viewer yet. It can show problems with the connectivity of syntaxes. @Elchi3 I think it's too early to merge it and better to revert it, until all issues are sorted out. |
Thanks for your thorough review @lahmatiy and sorry for jumping on the merge button too early. I thought these additions look good and I would like @jameshkramer to be unblocked for creating the MDN pages (see https://developer.mozilla.org/en-US/dashboards/revisions?user=jameshkramer). Could we solve these issues in follow-up PRs? Otherwise I will revert this and we need to figure this out with @jameshkramer some more. |
@Elchi3 Thank you for merge reverting. However PR is still in Merged status. How to continue working on the PR review? Can you reopen it or new PR is needed? |
The revert PR is this #173 So, likely a new PR needs to be opened if we merge the revert. |
In this case new release of @jameshkramer Could you create a new PR to continue work on issues? |
Yes, I agree. I will try to help as well. Sorry again for merging this too early. |
I have been discussing the syntax work with @erikadoyle, and we have a proposal. We would like the -ms-filter page to be shorter and simpler for the benefit of the reader. Links would be provided to the MSDN pages that contain the details. Please look at the current version of the -ms-filter page to see the proposal: https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter Note that we use the "full form", per this MSDN page: https://msdn.microsoft.com/en-us/library/ms533035#Downlevel_Support Please let us know what you think. Thanks, |
Basically the idea is to unblock |
I think moving syntax description on MDN page is a good option. So we can remove @jameshkramer Could you open a new PR, so we can continue a review? |
@Elchi3 I see you close reverting PR w/o merge. Plans have changed? It's hard to fix issues without revert, since changes for a review can be found in that PR only. |
"groups": [ | ||
"Microsoft Extensions" | ||
], | ||
"initial": "false", |
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.
Should be one of: tb, rl, bt, lr
"groups": [ | ||
"Microsoft Extensions" | ||
], | ||
"initial": "false", |
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.
Should be none
or chained
"media": "interactive", | ||
"inherited": false, | ||
"animationType": "discrete", | ||
"percentages": "maxZoomFactor", |
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.
Should describe the what the percentage actually refers to, not a meaning.
"media": "interactive", | ||
"inherited": false, | ||
"animationType": "discrete", | ||
"percentages": "minZoomFactor", |
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.
Should describe the what the percentage actually refers to, not a meaning.
"groups": [ | ||
"Microsoft Extensions" | ||
], | ||
"initial": "false", |
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.
Should be one of none | proximity | mandatory
. I suppose none
should be here
"groups": [ | ||
"Microsoft Extensions" | ||
], | ||
"initial": "false", |
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.
Should be none
(msdn)
"media": "visual", | ||
"inherited": true, | ||
"animationType": "discrete", | ||
"percentages": "referToLineBox", |
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.
It's unclear what does it mean. A box has two dimensions (height and width), which one should be used with percentage?
"Microsoft Extensions" | ||
], | ||
"initial": "0", | ||
"appliesto": "exclusionElements", |
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.
I think we a definition (reference), what does it mean. Not sure we need introduce that
"Microsoft Extensions" | ||
], | ||
"initial": "text", | ||
"appliesto": "nonReplacedElements", |
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.
Unprefixed property user-select
applies to allElements
. I think this one should do the same.
"status": "nonstandard" | ||
}, | ||
"-ms-filter": { | ||
"syntax": "<ms-filter-specification>", |
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.
Should be <string>
Changes to support Microsoft properties and pseudo-elements.