@siteimprove/alfa-predicate
Advanced tools
Changelog
0.104.1 (2025-07-30)
Changelog
0.104.0 (2025-07-28)
Changelog
0.103.3 (2025-05-16)
Rectangle#subtract
now limits the size of the result of subtracting. (#1820)Changelog
0.103.2 (2025-05-12)
@siteimprove/alfa-compatibility: Compatibility data in browser/data.ts
and feature/data.ts
has been updated. (#1807)
@siteimprove/alfa-painting-order: The painting order algorithm now doesn't distinguish between inline and block elements. This trades incorrect results for mixed inline and block parent-child elements with incorrect result for inline and block siblings. (#1817)
Changelog
Changelog
0.103.0 (2025-03-31)
@siteimprove/alfa-string: A String.hasHyphenationOpportunity
predicate has been added, detecting U+00AD SOFT HYPHEN. (#1784)
@siteimprove/alfa-style: A Style.hasSoftWrapOpportunity
predicate is now available. (#1784)
@siteimprove/alfa-string: String.hasSoftWrapOpportunity
is now more strict in what it accepts. (#1784)
@siteimprove/alfa-dom: Native.fromNode
can now handle document.adoptedStyleSheets
where length
property is missing. (#1786)
@siteimprove/alfa-rules: SIA-R83 is now better at detecting soft wrap opportunities in text nodes. (#1784)
Changelog
0.102.0 (2025-03-27)
withCrossOrigin
option of dom.Native.fromNode
has been renamed ensureAnonymousCrossOrigin
. (#1779)@siteimprove/alfa-dom: Native.fromNode
returned value now contains a logs
field, with an array of logs. (#1781)
@siteimprove/alfa-painting-order: PaintingOrder#getOrderIndex
and PaintingOrder#getElementsAbove
are now available. (#1761)
@siteimprove/alfa-rectangle: Rectangle#subtract
is now available. (#1761)
@siteimprove/alfa-rules: SIA-R111 and SIA-R113 now computes clickable regions more accurately when elements are clipped. (#1761)
@siteimprove/alfa-cascade: The user agent sheet now includes details
and summary
. (#1777)
@siteimprove/alfa-rules: SIA-R78 now ignores headings inside <summary>
elements of closed <details>
. (#1782)
Changelog
0.101.0 (2025-03-19)
Rectangle#toString
serialization is now available. (#1775)Changelog
0.100.1 (2025-03-18)
box
and device
of Text.of
now defaults to None
. (#1774)Changelog
0.100.0 (2025-03-17)
@siteimprove/alfa-dom: The hasBox
predicate has been moved from Element
to Node
. (#1768)
@siteimprove/alfa-style: The white-space
property is now handled as a shorthand. (#1762)
@siteimprove/alfa-tree: Tree.Node
now expects to know the kind of traversal flags used. (#1762)
@siteimprove/alfa-flags: new Flags()
now requires a kind
to be specified. (#1762)
@siteimprove/alfa-result: Result#forEach
and Result#forEachErr
methods are now available. (#1762)
@siteimprove/alfa-flags: A Flags.named
class factory is now available for flags sets where flags can be accessed by name. (#1762)
@siteimprove/alfa-dom: Text.of
now accepts Option<Rectangle>
and Option<Device>
. A rectangle can also be passed through the box
JSON property when using Text.fromText
. (#1768)
@siteimprove/alfa-flags: Flags#is
is now available, testing that a flags set exactly matches the provided list. (#1762)
@siteimprove/alfa-style: Legacy name alias properties are now supported. (#1762)
@siteimprove/alfa-style: Properties hyphens
, line-break
, overflow-wrap
, text-wrap
, text-wrap-mode
, text-wrap-style
, white-space-collapse
, white-space-trim
, wrap-after
, wrap-before
, wrap-inside
, word-break
, and word-wrap
are now supported. (#1762)
@siteimprove/alfa-test: A timeout can now be passed to vitest. (#1762)
Flag#has(0)
now returns false
on non-empty flags set. (#1762)