Skip to content

Commit da767b8

Browse files
bug symfony#16964 CSS min-height and min-width should not be "auto" (aschempp)
This PR was merged into the 2.8 branch. Discussion ---------- CSS min-height and min-width should not be "auto" | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Setting `min-width` and `min-height` to `auto` does not work in Safari and IE. The `auto` property has been removed from the standard meanwhile (see https://developer.mozilla.org/en-US/docs/Web/CSS/min-height). Correct is to set a minimum of zero, which is actually "no minimum height". This is what the web profiler looks like before and after on latest Safari: ![bildschirmfoto 2015-12-11 um 11 02 31](https://cloud.githubusercontent.com/assets/1073273/11741083/f17357fc-9ff6-11e5-8b59-239b38d37b2a.png) ![bildschirmfoto 2015-12-11 um 11 02 25](https://cloud.githubusercontent.com/assets/1073273/11741089/f6fb6656-9ff6-11e5-946f-f6c9f936c17f.png) Commits ------- 107c44a CSS min-height and min-width should not be "auto"
2 parents 1c2029a + 107c44a commit da767b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ table tbody ul {
276276
}
277277

278278
.metrics-horizontal .metric {
279-
min-height: auto;
280-
min-width: auto;
279+
min-height: 0;
280+
min-width: 0;
281281
}
282282
.metrics-horizontal .metric .value,
283283
.metrics-horizontal .metric .label {

0 commit comments

Comments
 (0)