Re: [csswg-drafts] [cssom] Serialization of a declaration block not idempotent in presence of logical properties. (#3244)

I think the spec is saying the same as your wording, so it shouldn't be preventing the serialization with `border-top`.
Basically, being between some longhands that match a certain condition is equivalent to being between the first and the last longhands that match the condition.

But I agree the spec is not particularly clear, I had to read it a few times to understand it. Your wording is not particularly clear to me either, what does "these declarations" refer to? This looks better to me:

> If there’s any declaration in `declaration block` in between the first and the last longhand in `current longhands` which is not in `current longhands`, and belongs to the same logical property group but has a different mapping logic as any of the longhands in `current longhands`, continue with the steps labeled `shorthand loop`.

Note that now it's clear that the "which" refers to "any declaration" and not to "first/last longhand in `current longhands`".
And no comma after "same logical property group", otherwise it's not clear that "as any of the longhands in `current longhands`" refers to both "same" and "different".

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


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

Received on Sunday, 23 October 2022 20:29:09 UTC