Re: [csswg-drafts] [css-backgrounds-4][css-values-4] Align logical values for <position> with the ones defined in CSS Logical Properties (#549)

I tend to agree with Tab that the 3-value-syntax should stay untouched. So I think the syntax for `background-position` could then be expressed as

```ebnf
<bg-position> = [
  <position>
|
  [ left | right ] <length-percentage>? &&
  [ top | bottom ] <length-percentage>?
]
```

or to make the 3-value-syntax more obvious as

```ebnf
<bg-position> = [
  <position>
|
  [ [ left | right ] <length-percentage> && [ top | bottom ] ] |
  [ [ left | right ] && [ top | bottom ] <length-percentage> ]
]
```

or even something like

```ebnf
<bg-position> = <position> | <three-value-position>
<three-value-position> = [
  [ [ left | right ] <length-percentage> && [ top | bottom ] ] |
  [ [ left | right ] && [ top | bottom ] <length-percentage> ]
]
```

Sebastian

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


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

Received on Monday, 31 July 2023 21:51:45 UTC