You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to make a shorthand descriptor for the flex property, but no matter how I order the properties, I can't get CSSPropertyWithDefaultValue to stop throwing an exception about not using a CSSPropertyFree expect for the last element.
My shorthand descriptor looks like this (again, I apologize, it is written in Kotlin instead of Java). I attempted to order the properties per the MDN entry on the flex property.
Is there a specific way I should order it to make it work as expected? Or is this kind of shorthand descriptor impossible?
The exception text looks like this:
The SubProperty [CSSPropertyWithDefaultValue@0x603e25c5: property=[CSSPropertyFree@0x60fce0ca: prop=FLEX_GROW]; defaultValue=0] may not use an unspecified CSSPropertyFree except for the last element!
java.lang.IllegalArgumentException: The SubProperty [CSSPropertyWithDefaultValue@0x603e25c5: property=[CSSPropertyFree@0x60fce0ca: prop=FLEX_GROW]; defaultValue=0] may not use an unspecified CSSPropertyFree except for the last element!
at com.helger.css.decl.shorthand.CSSShortHandDescriptor.<init>(CSSShortHandDescriptor.java:64)
at com.github.nhubbard.autoclave.shorthands.FlexShorthand.<init>(FlexShorthand.kt:9)
at com.github.nhubbard.autoclave.shorthands.FlexShorthandTest.flexShorthandTest(FlexShorthandTest.kt:50)
The text was updated successfully, but these errors were encountered:
@nhubbard there is nothing you can do at the moment - the key issue here is, that the properties are itself not properly typed.
So effectively flex-grow, flex-shrink and flex-basis are "free text" properties....
I am fixing this for 6.4.0 release
Hello again!
I've been trying to make a shorthand descriptor for the
flex
property, but no matter how I order the properties, I can't getCSSPropertyWithDefaultValue
to stop throwing an exception about not using aCSSPropertyFree
expect for the last element.My shorthand descriptor looks like this (again, I apologize, it is written in Kotlin instead of Java). I attempted to order the properties per the MDN entry on the
flex
property.Is there a specific way I should order it to make it work as expected? Or is this kind of shorthand descriptor impossible?
The exception text looks like this:
The text was updated successfully, but these errors were encountered: