Re: [csswg-drafts] [css-logical] Flow-relative syntax for `margin`-like shorthands (#1282)

> Goal: make primarily flow-relative stylesheets as easy and pleasant to author as stylesheets using primarily physical coordinates.
> 
> The first important question to consider is whether or not the CSSWG can adopt this goal.

FWIW it's got my vote.

I agree that specialized versions of properties and values are a stopgap and there needs to be a more general switch. However, how would that switch work? Would it only apply to shorthands? Would it change the meaning of words like `left` and `right`? If so, how can one use physical keywords within such a block, if needed? What would it affect exactly?

Also, I think names like `@mode` or `!logical` are way too generic. `@mode` especially could be setting any mode, and if it's a global switch there's not much advantage to terseness, so the clarity of `@coordinate-mode` or something similarly specific would be preferable.
I'm also not a fan of !keywords that don't make sense for every property. I see !keywords as a global syntax feature, so IMO they should be reserved for things that work globally.

Agree on the reasoning behind making this lexically scoped. Note that Nesting allows us to have lexically scoped things that apply to part of the document, we don't necessarily need a special mode block.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1282#issuecomment-952894591 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 27 October 2021 12:51:42 UTC