Skip to content

Commit 3ec0ae2

Browse files
committed
Don't output #rrggbbaa color syntax if not supported by targets
1 parent 1491e54 commit 3ec0ae2

File tree

8 files changed

+551
-412
lines changed

8 files changed

+551
-412
lines changed

build-prefixes.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ let cssFeatures = [
133133
'css-read-only-write',
134134
'css-autofill',
135135
'css-namespaces',
136-
'shadowdomv1'
136+
'shadowdomv1',
137+
'css-rrggbbaa'
137138
];
138139

139140
let compat = {};
@@ -253,15 +254,15 @@ impl Feature {
253254
`Feature::${enumify(name)} => {
254255
${Object.entries(browsers).map(([browser, min]) =>
255256
`if let Some(version) = browsers.${browser} {
256-
if version < ${min} {
257-
return false
257+
if version >= ${min} {
258+
return true
258259
}
259260
}`
260261
).join('\n ')}
261262
}`
262263
).join('\n ')}
263264
}
264-
true
265+
false
265266
}
266267
}
267268
`;

0 commit comments

Comments
 (0)