We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec767e commit e16092eCopy full SHA for e16092e
src/style_propetries/style_media.rs
@@ -300,9 +300,9 @@ impl StyleMedia {
300
},
301
MediaFeatureValue::Resolution(value) => {
302
let num = match value {
303
- lightningcss::values::resolution::Resolution::Dpi(val) => *val/96.0,
304
- lightningcss::values::resolution::Resolution::Dpcm(val) => *val/37.7953,
305
- lightningcss::values::resolution::Resolution::Dppx(val) => *val,
+ lightningcss::values::resolution::Resolution::Dpi(val) => *val,
+ lightningcss::values::resolution::Resolution::Dpcm(val) => *val * 96.0 / 37.7953,
+ lightningcss::values::resolution::Resolution::Dppx(val) => *val * 96.0,
306
};
307
return Some(MediaValueType::Float(num as f64));
308
0 commit comments