Re: [csswg-drafts] [css-overflow-3] 'overflow' 2-value syntax is in wrong order

> Because all of those are legacy shorthands dating back before we started adding logical longhands.

`inset` is added in CSS Logical and corresponds to physical longhands.

> except for the shorthand-expansion-in-specified-style

Yes, that's what I don't think it's backwards compatible.

> this is just a general question about how shorthands with both physical and logical longhands should serialize

Shorthands only correspond to physical or logical longhands, not both.

For example, `element.style.margin` will be empty string if you set logical margin longhands but not the physical ones. Or if you first set the physical ones and then you override them with logical ones, then `element.style.margin` will serialize the physical ones even if they are not being used. And if you set physical ones but not logical ones, `element.style.marginBlock` will be empty string.

That's how it has been implemented in Firefox and Blink. (Well, right now Blink never serializes logical shorthands, I'm writing a patch right now).

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

Received on Wednesday, 15 August 2018 18:17:03 UTC