[CSS syntax patches] Fix sameAs, handle legacyAliasOf links
#1763
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.
The
sameAslogic was almost correct but failed to report the syntax in the end.While reviewing differences with
mdn/datato update CSSTree, it also occurred to me that we never set the syntax of properties defined as "legacy name aliases", even though we could with the same (very slighty extended) patching logic. Done here too (it could be argued that this could be done by Reffy as post-processing, done here for the time being to reuse the logic).This would set the syntax of legacy properties:
-webkit-align-itemsto that ofalign-items-webkit-align-contentto that ofalign-content-webkit-align-selfto that ofalign-self-webkit-animation-nameto that ofanimation-name-webkit-animation-durationto that ofanimation-duration-webkit-animation-timing-functionto that ofanimation-timing-function-webkit-animation-iteration-countto that ofanimation-iteration-count-webkit-animation-directionto that ofanimation-direction-webkit-animation-play-stateto that ofanimation-play-state-webkit-animation-delayto that ofanimation-delay-webkit-animation-fill-modeto that ofanimation-fill-mode-webkit-animationto that ofanimation-webkit-backface-visibilityto that ofbackface-visibility-webkit-background-clipto that ofbackground-clip-webkit-background-originto that ofbackground-origin-webkit-background-sizeto that ofbackground-size-webkit-border-bottom-left-radiusto that ofborder-bottom-left-radius-webkit-border-bottom-right-radiusto that ofborder-bottom-right-radius-webkit-border-top-left-radiusto that ofborder-top-left-radius-webkit-border-top-right-radiusto that ofborder-top-right-radius-webkit-border-radiusto that ofborder-radius-webkit-box-shadowto that ofbox-shadow-webkit-box-sizingto that ofbox-sizing-webkit-flexto that offlex-webkit-flex-basisto that offlex-basis-webkit-flex-directionto that offlex-direction-webkit-flex-flowto that offlex-flow-webkit-flex-growto that offlex-grow-webkit-flex-shrinkto that offlex-shrink-webkit-flex-wrapto that offlex-wrap-webkit-filterto that offilter-webkit-justify-contentto that ofjustify-content-webkit-maskto that ofmask-webkit-mask-box-imageto that ofmask-border-webkit-mask-box-image-outsetto that ofmask-border-outset-webkit-mask-box-image-repeatto that ofmask-border-repeat-webkit-mask-box-image-sliceto that ofmask-border-slice-webkit-mask-box-image-sourceto that ofmask-border-source-webkit-mask-box-image-widthto that ofmask-border-width-webkit-mask-clipto that ofmask-clip-webkit-mask-compositeto that ofmask-composite-webkit-mask-imageto that ofmask-image-webkit-mask-originto that ofmask-origin-webkit-mask-positionto that ofmask-position-webkit-mask-repeatto that ofmask-repeat-webkit-mask-sizeto that ofmask-size-webkit-orderto that oforder-webkit-perspectiveto that ofperspective-webkit-perspective-originto that ofperspective-origin-webkit-transform-originto that oftransform-origin-webkit-transform-styleto that oftransform-style-webkit-transformto that oftransform-webkit-transition-delayto that oftransition-delay-webkit-transition-durationto that oftransition-duration-webkit-transition-propertyto that oftransition-property-webkit-transition-timing-functionto that oftransition-timing-function-webkit-transitionto that oftransition-webkit-text-size-adjustto that oftext-size-adjustgrid-row-gapto that ofrow-gapgrid-column-gapto that ofcolumn-gapgrid-gapto that ofgapfont-stretchto that offont-width