ultralight-ux / Ultralight

Lightweight, high-performance HTML renderer for game and app developers.
https://ultralig.ht
4.63k stars 196 forks source link

CSS property scale #481

Open jonatan-kruse opened 11 months ago

jonatan-kruse commented 11 months ago

I'm having issues with the css property scale when used in the way:

.someText {
    scale: 2 1;
}

It has no effect on the element that I want to scale even though it does in a "normal" browser.

barnabwhy commented 11 months ago

Individual transform properties are a relatively new CSS feature, it could be that the webkit version used just doesn't support it (https://caniuse.com/mdn-css_properties_scale)

jonatan-kruse commented 11 months ago

Is there an easy way to check the webkit version used then? Webkit has support for scale since 2021.

StoneCypher commented 6 months ago

The web does not support client detection that way. What you're looking for is CSS @supports

https://css-tricks.com/how-supports-works/