1.1.0 (commit log)
- Add 9 missing attributes to
Attrs.values(justifyItems,overflowAnchor, and 7 SVG attributes) - Deprecate
unary_-onResolutionas valid resolutions can't be negative - Do not emit unprefixed CSS declarations for features that only exist with vendor prefixes (eg.
box-reflect) - Emit post-render warnings for
@font-face - Fix
:/:ratio operator in DSL which inverted numerator and denominator (eg.4 :/: 3produced3/4instead of4/3) - Fix
.importantbreaking vendor prefixing on value-prefixed attributes (eg.cursor.zoomIn.important) - Fix
0.0.pxand-0.0.pxon the JVM to generate "0" - Fix
AttrCmp.conflictsfailing to find transitive/chained conflicts (eg. betweenmarginLeft,margin, andmarginRight) - Fix
CanIUse2.agentsForPlatformfailing to match mobile browser names (eg. "Firefox Mobile", "Chrome Mobile", "IE Mobile", "Opera Mini", "Opera Mobile") - Fix
CanIUse2value prefixing: prevent substring matches without word boundaries (eg. in URLs) from suppressing vendor prefixing, and support multi-line values - Fix
Cond.applyToStyle: update conditions on warnings, and merge colliding conditions usingCompose - Fix
fontLanguageOverridemissing from aliases - Fix
NaturalOrderingequating distinct strings with spaces or leading zeroes (which caused stylesheet conditions to collide and overwrite each other) - Fix
normalliteral missing from DSL andLiteralaliases (eg. forgap(10.px, normal)) - Fix
placeSelfdefining invalid CSS valuesleftAutoandrightNormal - Fix
prefixedregex matching substrings without word boundaries (eg.url(logo-o-2.png)) suppressing vendor prefixing - Fix
ScalatagsTextRendererHTML-escaping CSS inside<style>tags - Fix
StringRendererandCss.keyframesdefects:- Emit missing semicolons between multiple styles in a keyframe selector in
formatTiny - Merge duplicate keyframe selectors in
Css.keyframesinstead of overwriting earlier frames - Invoke
fmt.done()inStringRenderer.Raw - Quote font names containing spaces consistently in
Attrs.fontFamily(ff)and prevent double-quoting in@font-face
- Emit missing semicolons between multiple styles in a keyframe selector in
- Fix
styleF("name")not supporting custom domains - Fix
StyleLookup.booleanreturningSome(null)instead ofNonefor unpopulated boolean domains - Fix colour literals (eg.
c"#fff")- Accept hsl hue of 360
- Accept rgba with percentages
- Consistent error messages with empty strings and numbers greater than
Int.MaxValue
- Fix composing
addClassNames-only styles losing class names when composed into other styles, and avoid false duplicate classname warnings - Fix composite pseudo-class equality and ordering (eg.
&.hover.focus == &.focus.hover) - Fix CSS string escaping in
content.string(use 6-digit hex escapes, support surrogate pairs, and escape newlines/control characters) - Fix false conflicts between orthogonal CSS logical properties (eg.
blockSizeandinlineSize, ormarginBlockStartandmarginBlockEnd) - Fix invalid vendor value transforms on
textAlign,resize,float,clear, andcaptionSide, and vendor-prefixwidth.available - Fix media query composition: add
.orand.andonMedia.Query(deprecating&), and merge nested media queries withandinstead of, - Fix microseconds and nanoseconds being rendered as
0ms - Fix registration warnings dropped for styles inside
keyframes,unsafeChild,unsafeRoot, andStyleSheet.Standalone - Fix style composition (
Compose): prevent premature exact-match removal from masking conflicts, eliminate self-conflicts within operands, and preserve declaration order - Fix thread-safety in
Register.registerFontFace,internal.memo, andNameGen.nextShortPrefix - Fix wrong CanIUse subjects on
overscrollBehavior(usedoverflowAnchor) androwGap(usedmulticolumn) - In Scala.js, use
PlatformJsEnvinPlatform.envto detect browser platform instead of always usingEnv.empty - Multiple
background-clipvalues must be comma-separated, not space-separated - Only consider the last 10 versions of each browser when determining vendor prefixes
- Optimise Scala.js output size
- Parse
addClassName/addClassNamesinto distinctClassNames, fixingDOMExceptioninScalatagsJsDomon space-separated or empty class names - Reject invalid percentage values for
border,outline, andcolumnRule - Support modern
rgbandhslformats in colour literals (eg.rgb(255 0 0 / 0.5)) - The
ext-scalatagsmodule is now available for Scala 3 - Typos in CSS
interfaceshould beinterlace(in mediascan)sSmallshould bexSmall(x-small)attrStartsWithshould use^=instead of|=fontVariantionSettingsshould befontVariationSettings
- Update
caniusedata for CSS vendor-prefixing Update default prod settings to avoid generating class name
_adsas some ad-blockers replace itUpgrades
- Scala 2 -> 2.13.18
- Scala 3 -> 3.3.9
- ScalaJsDom -> 2.8.1
- ScalaJsReact -> 2.1.4
- Scalatags -> 0.13.1
- UnivEq -> 2.1.0