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

What if the scope of the request to opt into logical resolutions was file scoped? Then it couldn't leak out into other uses of margin (imports, 3rd party styles, etc) while still allowing current shorthand to upgrade. 

Here's a terrible example but hopefully it articulates the intent for us to talk and bikeshed about it?

```css
@logical;

p {
  margin: 1ex 1ch;  
}

/* 
p {
  block-start: 1ex; 
  inline-end: 1ch; 
  block-end: 1ex; 
  inline-start: 1ch; 
}
*/
```

**Open questions:**
1. do we have any file scoping mechanisms at the moment or is this asking for a lot of browser internal work?
2. is leaking only something I'm concerned about when thinking about options like 
    ```css
    html { 
      flow-mode: logical;
    }
    ```

I'd also love to see this thread spin up again! Share your thoughts 👍 

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

Received on Tuesday, 9 June 2020 17:04:31 UTC