neopolitans / USSObjectModel

An Object Model built from the ground up for Unity Style Sheets, a CSS-like styling language for Unity's UIToolkit package.
MIT License
2 stars 0 forks source link

Using the Font Style rule will cause a Warning. #7

Open neopolitans opened 1 year ago

neopolitans commented 1 year ago

This error is known and is partially outside of the control of the developer* as of 2021.3.6f1 -> 2023.2

Error was caused by documentation inconsistency between Unity's USS Common Properties and Mozilla Developer Network's CSS font size pages. The .NET Library ExCSS caught the error (as seen in the image below) and provided a descriptor.

image

This cannot be addressed at this time for a few factors:

Referenced Documentation: https://docs.unity3d.com/2023.2/Documentation/Manual/UIE-USS-SupportedProperties.html https://developer.mozilla.org/en-US/docs/Web/CSS/font-size

* Out of control to an extent.

neopolitans commented 1 year ago

A temporary fix has been applied which provides an alternative constructor with a <length> parameter and marks the <number> based constructor as deprecated.