1.1.1 (commit log)

  • Add ::backdrop, ::marker, ::placeholder pseudo-elements (backdrop, marker, placeholder)
  • Add :any-link, :focus-visible, :focus-within, :placeholder-shown, :root pseudo-classes
  • Add :has(...), :is(...), :where(...) pseudo-classes, and multi-arg :not(...)
  • Add .important support to ToAV attributes (backgroundClip, borderRadius, quotes, textDecorationLine)
  • Add [attr|="..."] (attrDashMatch), [attr*="..."] (attrSubstring) attribute selectors and case-sensitivity flags (AttrCase.Insensitive / i, AttrCase.Sensitive / s)
  • Add animationFillMode.none
  • Add animationName.none
  • Add any-hover media feature (media.anyHover, media.anyHoverNone, media.anyHoverHover)
  • Add any-pointer media feature (media.anyPointer, media.anyPointerNone, media.anyPointerCoarse, media.anyPointerFine)
  • Add backgroundClip.text with CanIUse.backgroundClipText prefixing
  • Add FontFace font-display, multi-range unicode-range, and variable-font range descriptors (fontWeight, fontStretch, fontStyle.oblique)
  • Add fontFace, keyframe{,s} to StyleSheet.Standalone
  • Add fontFamily generic font families and fallback stack overloads
  • Add forced-colors media feature (media.forcedColors, media.forcedColorsNone, media.forcedColorsActive)
  • Add gridTemplateAreas.none
  • Add hover media feature (media.hover, media.hoverNone, media.hoverHover)
  • Add jumpStart, jumpEnd, jumpNone, jumpBoth step timing-function jump terms
  • Add media query range syntax (eg. media.width >= 500.px, media.width.between(400.px, 800.px))
  • Add overflow.clip
  • Add overflowX.clip
  • Add overflowY.clip
  • Add placeSelf single-keyword values and two-value chaining (eg. placeSelf.center.start)
  • Add pointer media feature (media.pointer, media.pointerNone, media.pointerCoarse, media.pointerFine)
  • Add prefers-color-scheme media feature (media.prefersColorSchemeLight, media.prefersColorSchemeDark)
  • Add prefers-contrast media feature (media.prefersContrast, media.prefersContrastNoPreference, media.prefersContrastMore, media.prefersContrastLess, media.prefersContrastCustom)
  • Add prefers-reduced-motion media feature (media.prefersReducedMotion, media.prefersReducedMotionNoPreference, media.prefersReducedMotionReduce)
  • Add revert and revertLayer CSS keywords to all typed attributes
  • Add textAlign.justifyAll
  • Add textIndent(len, eachLine, hanging) overload
  • Add new CSS properties:
    • accentColor
    • appearance
    • aspectRatio
    • backdropFilter
    • colorScheme
    • contain
    • container
    • containerName
    • containerType
    • inset
    • insetBlock
    • insetBlockEnd
    • insetBlockStart
    • insetInline
    • insetInlineEnd
    • insetInlineStart
    • marginBlock
    • marginInline
    • maskClip
    • maskComposite
    • maskImage
    • maskMode
    • maskOrigin
    • maskPosition
    • maskRepeat
    • maskSize
    • paddingBlock
    • paddingInline
    • placeContent
    • placeItems
    • printColorAdjust
    • rotate
    • scale
    • textWrap
    • translate
  • Add typed DSLs for flexBasis, overflowWrap, svgFill, svgFloodColor, textStrokeColor, and textStrokeWidth
  • Add viewport units (vi, vb, sv*, lv*, dv*), container query units (cqw, cqh, cqi, cqb, cqmin, cqmax), fr, and angle units (deg, grad, rad, turn)
  • Add whiteSpace.breakSpaces
  • Deprecate boxSizing.paddingBox (removed from CSS Box Sizing specification)
  • Deprecate Env.Media — it is unused
  • Deprecate gridAutoPosition (removed from CSS Grid specification)
  • Deprecate offsetBlockStart, offsetBlockEnd, offsetInlineStart, offsetInlineEnd in favour of insetBlock* / insetInline*
  • Deprecate PlatformJs — replace js.eval of embedded platform.js with direct user-agent detection in PlatformJsEnv. This is now the default Env detection method on JS.
  • Deprecate textAlign.startEnd (removed from CSS Text specification)
  • Fix -webkit- prefixes not being emitted due to agent collision
  • Fix :nth-child support for whitespace, case-insensitivity, and of <selector>
  • Fix alignContent.spaceEvenly missing CanIUse.justifyContentSpaceEvenly transform
  • Fix backgroundBlendMode missing CanIUse.backgroundblendmode transform
  • Fix backgroundImage / background dropping combined prefixes when mixing gradient and image-set functions
  • Fix backgroundOrigin and backgroundSize missing CanIUse.backgroundImgOpts transform
  • Fix backgroundRepeat missing CanIUse.backgroundRepeatRoundSpace transform
  • Fix CanIUse2.PrefixApply.keywords crashing/corrupting on $/\ and rewriting keywords inside url(...) or quoted strings
  • Fix columnCount accepting floats instead of only integers
  • Fix Compose dropping overriding values when they appear inside an existing fallback value list
  • Fix Compose warning order being non-deterministic when composing styles with >4 conditions
  • Fix Cond.applyToStyle non-deterministic property ordering when styles have >4 conditions
  • Fix cursor.grab and cursor.grabbing prefixing to use CanIUse.css3CursorsGrab
  • Fix Double formatting inconsistencies between JVM and Scala.js
  • Fix fontVariantNumeric missing CanIUse.fontVariantNumeric transform
  • Fix imageOrientation missing CanIUse.imageOrientation transform
  • Fix justifyContent.spaceEvenly missing CanIUse.justifyContentSpaceEvenly transform
  • Fix keyframe(className) ignoring the specified className
  • Fix keyframes crashing when its val name contains whitespace (eg. backticked identifiers)
  • Fix keyframes flattening pseudo-selectors, media queries, and unsafe* rules unconditionally into @keyframes stops instead of ignoring them with a warning
  • Fix MacroName.Use, Register.registerF2, and NameGen.numbered potentially generating invalid CSS class identifiers
  • Fix Media.Query.and silently dropping incompatible media types, mis-negating Not(...) conjunctions, and reordering features
  • Fix NameGen.short prefix validation and NameGen.Alphabet guards for empty/negative inputs
  • Fix outlineStyle allowing invalid hidden keyword
  • Fix overflow missing CanIUse.overflow transform
  • Fix overflowX and overflowY missing CanIUse.overflow transform
  • Fix position.sticky missing CanIUse.sticky transform
  • Fix Pseudo.AttrSelector CSS escaping
  • Fix Pseudo.modSelector attaching pseudo-classes/elements only to the last selector in comma-separated selector lists
  • Fix Register.applyMacroName overwriting explicit class names and ignoring empty styles
  • Fix Register.css potentially reading a torn snapshot across separate locks
  • Fix Register.registerF2 overwriting explicit class names, overriding addClassNames-only branches, and skipping uniqueness checks
  • Fix Register.registerFontFace crashing on multi-word fontFamily names
  • Fix Register.registerS failing to reserve class names for empty styles
  • Fix Register auto-generated class names colliding with existing manual names
  • Fix Register exposing it's now-private mutable state
  • Fix rowGap missing CanIUse.flexboxGap transform
  • Fix ScalatagsTextRenderer failing to escape </style inside <style> tags
  • Fix StyleA.+ duplicating class names
  • Fix styleF and StyleSheet class name generation (sanitising suffixes, empty manual names, addClassNames-only branches, and class name hints)
  • Fix StyleSheetRegistry (GlobalRegistry) callback ordering/re-entrancy, deduplication, and add registerListener, unregister, clear, and clearListeners
  • Fix a thread-safety bug in internal memoisation
  • Fix a thread-safety race between macro-naming and style registration
  • Fix colour literals (c"...") to accept case-insensitive none/deg
  • Fix default prod settings so that naming conflicts don't occur with more than 52 stylesheets
  • Fix extra prefixes being emitted when a specific agent is detected/specified
  • Fix prod defaults including an unnecessary space in @font-face CSS
  • Fix Scala 3 macro-generated class names stripping literal $ characters
  • Harden addToDocument{,OnRegistration} to handle no <head> tag existing
  • Improve CanIUse2.agentsForPlatform matching resulting in more accurate vendor prefixing on JS
  • Optimise Css.style and Compose intermediate collection allocations
  • Optimise Dsl.style and DslBase.DslCond allocations
  • Optimise Register class-name uniqueness checks from O(N) to O(1)
  • Optimise StyleS.dataSorted to compute Cond.toString once per condition and skip sorting for ≤1 condition
  • Optimise memory usage of attributes
  • Optimise prefix generation for both speed and garbage collection
  • Optimise Scala.js output size
  • Support grad, rad, turn angle units in modern hsl colour literals (c"...")
  • Support image-set prefixing on background and backgroundImage
  • Support 2-arg overflow(x, y)
  • Support decimal values in modern hsl colour literals (c"...")
  • Support decimal values in modern rgb colour literals (c"...")
  • Support fractional values on animationIterationCount
  • Support multiple Platforms in Env, allowing you to generate CSS for multiple specific platforms
  • Support multiple values on animationDirection
  • Support multiple values on animationFillMode
  • Support multiple values on animationIterationCount
  • Support multiple values on animationName
  • Support multiple values on animationPlayState
  • Support multiple values on animationTimingFunction
  • Support multiple values on transitionTimingFunction
  • Support reading the dev/prod setting from env var SCALACSS_MODE

1.1.0 (commit log)

  • Add 9 missing attributes to Attrs.values (justifyItems, overflowAnchor, and 7 SVG attributes)
  • Deprecate unary_- on Resolution as 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 :/: 3 produced 3/4 instead of 4/3)
  • Fix .important breaking vendor prefixing on value-prefixed attributes (eg. cursor.zoomIn.important)
  • Fix 0.0.px and -0.0.px on the JVM to generate "0"
  • Fix AttrCmp.conflicts failing to find transitive/chained conflicts (eg. between marginLeft, margin, and marginRight)
  • Fix CanIUse2.agentsForPlatform failing to match mobile browser names (eg. "Firefox Mobile", "Chrome Mobile", "IE Mobile", "Opera Mini", "Opera Mobile")
  • Fix CanIUse2 value 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 using Compose
  • Fix fontLanguageOverride missing from aliases
  • Fix NaturalOrdering equating distinct strings with spaces or leading zeroes (which caused stylesheet conditions to collide and overwrite each other)
  • Fix normal literal missing from DSL and Literal aliases (eg. for gap(10.px, normal))
  • Fix placeSelf defining invalid CSS values leftAuto and rightNormal
  • Fix prefixed regex matching substrings without word boundaries (eg. url(logo-o-2.png)) suppressing vendor prefixing
  • Fix ScalatagsTextRenderer HTML-escaping CSS inside <style> tags
  • Fix StringRenderer and Css.keyframes defects:
    • Emit missing semicolons between multiple styles in a keyframe selector in formatTiny
    • Merge duplicate keyframe selectors in Css.keyframes instead of overwriting earlier frames
    • Invoke fmt.done() in StringRenderer.Raw
    • Quote font names containing spaces consistently in Attrs.fontFamily(ff) and prevent double-quoting in @font-face
  • Fix styleF("name") not supporting custom domains
  • Fix StyleLookup.boolean returning Some(null) instead of None for 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. blockSize and inlineSize, or marginBlockStart and marginBlockEnd)
  • Fix invalid vendor value transforms on textAlign, resize, float, clear, and captionSide, and vendor-prefix width.available
  • Fix media query composition: add .or and .and on Media.Query (deprecating &), and merge nested media queries with and instead of ,
  • Fix microseconds and nanoseconds being rendered as 0ms
  • Fix registration warnings dropped for styles inside keyframes, unsafeChild, unsafeRoot, and StyleSheet.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, and NameGen.nextShortPrefix
  • Fix wrong CanIUse subjects on overscrollBehavior (used overflowAnchor) and rowGap (used multicolumn)
  • In Scala.js, use PlatformJsEnv in Platform.env to detect browser platform instead of always using Env.empty
  • Multiple background-clip values 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/addClassNames into distinct ClassNames, fixing DOMException in ScalatagsJsDom on space-separated or empty class names
  • Reject invalid percentage values for border, outline, and columnRule
  • Support modern rgb and hsl formats in colour literals (eg. rgb(255 0 0 / 0.5))
  • The ext-scalatags module is now available for Scala 3
  • Typos in CSS
    • interface should be interlace (in media scan)
    • sSmall should be xSmall (x-small)
    • attrStartsWith should use ^= instead of |=
    • fontVariantionSettings should be fontVariationSettings
  • Update caniuse data for CSS vendor-prefixing
  • Update default prod settings to avoid generating class name _ads as some ad-blockers replace it

  • Upgrades

    • 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

results matching ""

    No results matching ""