• 1
    Xaml = CSS >> 1 ;
  • 2
    I've always hated the shorthand order of css. left should be first imo. (yes, I know, Western bias)
    one could argue that it makes sense for top to be first but you gotta admit it feels dumb that left is the LAST property. Bottom should obviously be the last one!

    But what's even more dumb is to try and change that now de facto standard like xaml does
  • 0
    @jiraTicket I also find sense with current css shorthand when you think about it. It goes clockwise: Top right bottom left :)
  • 2
    @LicensedCrime That is due how CSS does completion.
    When you say:
    padding: 10px;

    This actually means you set only the top padding. CSS does pattern completion by repeating the 10px you've entered other 3 so you have 10px padding for all.

    When you say:
    padding: 10px 5px;

    You've set top and right. And CSS does pattern completion for bottom and left, by repeating 10px 5px you've entered.

    Same goes for margins. :)
Add Comment