That should be corrected if anyone invents a time machine. :P
white-space: nowrapshould bewhite-space: no-wrapand line wrapping behavior should not have been added to
white-space
vertical-alignshould not apply to table cells. Instead the CSS3 alignment properties should exist in Level 1.vertical-align: middleshould betext-middlebecause it's not really in the middle.Percentage heights should be calculated against
fill-availablerather than being undefined in auto situations.Table layout should be sane.
Box-sizing should be
border-boxby default.background-sizewith one value should duplicate its value, not default the second one toauto.background-positionandborder-spacing(all 2-axis properties) should take *vertical* first, to match with the 4-direction properties likemargin.z-indexshould be calledz-orderordepthand should Just Work on all elements (like it does on flex items).word-wrap/overflow-wrapshould not exist. Instead,overflow-wrapshould be a keyword on 'white-space', likenowrap(no-wrap).The top and bottom margins of a box should never have been allowed to collapse together automatically as this is the root of all margin-collapsing evil.
Partial collapsing of margins instead of weird rules to handle min/max-heights?
Tables (and other non-blocks, e.g. flex containers) should form pseudo-stacking contexts.
The
currentcolorkeyword should have a dash,current-color.There should have been a predictable color naming system instead of arbitrary X11 names.
border-radiusshould have beencorner-radius.Absolutely-positioned replaced elements should stretch when opposite offset properties (e.g. left+right) are set, instead of being start-aligned.
The
hyphensproperty should be calledhyphenate. (It's calledhyphensbecause the XSL:FO people objected tohyphenate.)rgba()andhsla()should not exist,rgb()andhsl()should have gotten an optional fourth parameter instead (and the alpha value should have used the same format as R, G, and B or S and L).descendant combinator should have been
»and indirect sibling combinator should have been++, so there's some logical relationships among the selectors' ascii artthe
*-blend-modeproperties should've just been*-blendThe syntax of unicode ranges should have consistent with the rest of CSS, like
u0001-u00c8.font-familyshould have required the font name to be quoted (like all other values that come from “outside” CSS). The rules for handling unquoted font names make parsingfontstupid, as it requires afont-sizevalue for disambiguation.Flexbox should have been less crazy about flex-basis vs width/height. Perhaps: if width/height is
auto, use flex-basis; otherwise, stick with width/height as an inflexible size. (This also makes min/max width/height behavior fall out of the generic definition.):empty should have been :void, and :empty should select items that contain only white space
table-layout: fixed; width: autoshould result in a fill-available table with fixed-layout columns.'text-orientation' should have had
uprightas the initial value (given the latest changes to 'writing-mode').The @import rule is required to (a) always hit the network unless you specify cache headers, and (b) construct fresh CSSStyleSheet objects for every import, even if they're identical. It should have had more aggressive URL-based deduping and allowed sharing of stylesheet objects.
Selectors have terrible future-proofing. We should have split on top-level commas, and only ignored unknown/invalid segments, not the entire thing.