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

> People are pretty happy with that syntax and it pretty much solves all the box-sizing use cases.

I had problems with that when I added a border to an image, it shrank the image and made it blurry. Also, it's an ugly hack. I prefer a content-box box-sizing by default, and only opt in to border-box when I really want it.

> I think adding a `box-mode: physical | relative;` property is best

I don't think this can't really work. The difference is that `box-sizing` only affects layout, not the cascade.

The logical longhands are different and independent properties from the physical ones. When you have a shorthand, you need to know to which longhands it expands in order to set their specified values. But at that time you don't know the computed value of `box-mode` yet!


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

Received on Monday, 29 October 2018 22:59:24 UTC