W3C home > Mailing lists > Public > www-style@w3.org > December 2018

Fall back to a different property:value pair if another property:value pair is not supported.

From: Philip Taylor <P.Taylor@Rhul.Ac.Uk>
Date: Tue, 11 Dec 2018 17:35:25 +0000
To: www-style@w3.org
Message-ID: <5cbca488-3ca5-f5ef-134e-27cc3a408396@Rhul.Ac.Uk>
Browser support for "width: fit-content" is good but not universal (albeit requiring vendor prefixes in some cases) and for those cases where support is completely lacking one can fall back to "display: table".  However, I do not wish to abuse the "display" property in this way if it is unnecessary so to do.  Is there any standards-compliant way of falling back on "display: table" IFF "width: <possible vendor prefix>fit-content" is unsupported (as in the case of, e.g., Internet Explorer) ?
Philip Taylor
Received on Tuesday, 11 December 2018 17:35:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:12 UTC