4 ms·
CSS already has to deal with conflicting values all over the place, for example: .foo { box-sizing: border-box; width: 10px; border
by ______-_-______ 5y ago
CSS already has to deal with conflicting values all over the place, for example:
.foo {
box-sizing: border-box;
width: 10px;
border 50px solid red;
}
What should the dimensions be?
I'm sure the spec writers thought about the conflict already and decided what takes precedence.
- c-smile 5y agoinner box dimensions (in terms of CSS box model) are well specified in that case.
- ______-_-______ 5y agoThat's my point. `aspect-ratio` also has a spec, so the dimensions in your example are also well-specified.
- c-smile 5y agoOf course it has spec. Just one more property in 200+ of them. That is no-brainer to add new property ... Problem is that each property introduced that way ads new dimension in compatibility matrix.