1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
/*
* All classes here intentionally declare height/width/block-size
* twice. Just reveals if keyword is supported.
*
* According to the spec, for the sizing properties,
* height/min-height/max-height, and width/min-width/max-width,
* if specified for the inline axis, use the min-content/max-content inline
* size; otherwise behaves as the property’s initial value.
*
* The 'block-size' property (and its max-/min- properties) is just an alias
* for height (or width) and accepts the same values. Since it's not
* inline-axis, by definition, it always treats the 'min-content' and
* 'max-content' values as the initial value.
*
* https://drafts.csswg.org/css-sizing/#sizing-values
*
*/
.height-min-content {
height: 0px;
height: min-content;
}
.height-max-content {
height: 0px;
height: max-content;
}
.min-height-min-content {
min-height: 600px;
min-height: min-content;
}
.min-height-max-content {
min-height: 600px;
min-height: max-content;
}
.max-height-min-content {
max-height: 0px;
max-height: min-content;
}
.max-height-max-content {
max-height: 0px;
max-height: max-content;
}
.width-min-content {
width: 0px;
width: min-content;
}
.width-max-content {
width: 0px;
width: max-content;
}
.min-width-min-content {
min-width: 600px;
min-width: min-content;
}
.min-width-max-content {
min-width: 600px;
min-width: max-content;
}
.max-width-min-content {
max-width: 0px;
max-width: min-content;
}
.max-width-max-content {
max-width: 0px;
max-width: max-content;
}
.block-min-content {
block-size: 0px;
block-size: min-content;
}
.block-max-content {
block-size: 0px;
block-size: max-content;
}
.min-block-min-content {
min-block-size: 600px;
min-block-size: min-content;
}
.min-block-max-content {
min-block-size: 600px;
min-block-size: max-content;
}
.max-block-min-content {
max-block-size: 0px;
max-block-size: min-content;
}
.max-block-max-content {
max-block-size: 0px;
max-block-size: max-content;
}
|