Open printfn opened 1 month ago
You wrote two properties in a single one -ms-filter: progid: value;
. I don't think it is valid CSS.
I think it should be wrapped in quotes: https://learn.microsoft.com/en-us/previous-versions/ms530752(v=vs.85)
It doesn't look like quotes are required for IE 8 to parse the CSS. I did a quick test using browserstack:
<html>
<head>
<title>IE 8 Test</title>
<style>
div {
border: 2px solid red;
width: 256px;
height: 256px;
-ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.gravatar.com/avatar/74c04b6c96836f044ed927a5db4dc92b?s=128&d=identicon&r=PG', sizingMethod='scale');
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.gravatar.com/avatar/74c04b6c96836f044ed927a5db4dc92b?s=128&d=identicon&r=PG', sizingMethod='scale');
}
</style>
</head>
<body>
<div></div>
</body>
</html>
Given that IE can parse this CSS correctly I don't think Biome should error either. Linting against it is fine obviously, but I feel like it shouldn't fail to parse.
Just to add to this, prettier
does not error on this either, biome does:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#4d000000", endColorstr="#00000000", GradientType=1);
Environment information
What happened?
https://biomejs.dev/playground/?lintRules=all&files.style.css=LgBmAG8AbwAgAHsACgAgACAAIAAgAC0AbQBzAC0AZgBpAGwAdABlAHIAOgAgAHAAcgBvAGcAaQBkADoAIABEAFgASQBtAGEAZwBlAFQAcgBhAG4AcwBmAG8AcgBtAC4ATQBpAGMAcgBvAHMAbwBmAHQALgBBAGwAcABoAGEAKABPAHAAYQBjAGkAdAB5AD0ANAAwACkAOwAKACAAIAAgACAAZgBpAGwAdABlAHIAOgAgAGEAbABwAGgAYQAoAG8AcABhAGMAaQB0AHkAPQA0ADAAKQAKAH0A
Expected result
It should successfully parse the CSS.
Code of Conduct