From 189a465c6be444eaeaf1696a743390ec332a55cc Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Thu, 17 Dec 2020 13:58:46 +0100 Subject: [PATCH] Added `fit-content` to `width` property patch --- CHANGELOG.md | 3 ++- data/patch.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d36d974..ad75bbc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ ## next - Fixed matching on CSS wide keywords for at-rule's prelude and descriptors +- Added `fit-content` to `width` property patch as browsers are supported it as a keyword (nonstandard), but spec defines it as a function -## 1.1.2 +## 1.1.2 (November 26, 2020) - Rolled back to use spread syntax in object literals since it not supported by nodejs < 8.3 (#145) diff --git a/data/patch.json b/data/patch.json index 7a79050c..6b91136e 100644 --- a/data/patch.json +++ b/data/patch.json @@ -295,6 +295,10 @@ "comment": "fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width", "syntax": "none | | min-content | max-content | fit-content() | <-non-standard-width>" }, + "width": { + "comment": "per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)", + "syntax": "| fit-content | -moz-fit-content | -webkit-fit-content" + }, "min-width": { "comment": "extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width", "syntax": "auto | | min-content | max-content | fit-content() | <-non-standard-width>"