Re: [csswg-drafts] [css-anchor-position] position-area specified vs. computed value is weird (#12759)

In WPT there are separate position-area-parsing.html and position-area-computed.html tests.

In the off chance that it helps in this conversation, below is my pseudo-code-ish description of what we have to do to make those WPT tests pass. (The terms "physical", "logical", "self-logical", "inferred" and "self-inferred" refer to each of the five top-level groups [in the grammar](https://drafts.csswg.org/css-anchor-position-1/#position-area-syntax), in order.)

parsing test passes with:
```
if physical, logical or self-logical
  if either is span-all
    remove one span-all
  else
    make canonical order

if keywords same
  remove second keyword
```

computed test then passes with:
```
if inferred or self-inferred
  if either is span-all
    remove span-all, ALSO converting inferred to logical
else if logical or self-logical
  if have two keywords
    convert to inferred pair (may result in repeated keyword)

if keywords same
  remove second keyword
```

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


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

Received on Wednesday, 10 September 2025 07:26:14 UTC