Examples Test results README

Test results

From the build of commit ea2c3f6 (version 1.8.4 in package.json), run in GitHub Actions. Every push to main is tested before the examples site is published. Lighthouse runs alongside, and its results are added here when it finishes, about half an hour later.

Summary

Lighthouse

Each example on the examples site is audited as its own page, 3 times, with Lighthouse 12.6.1; the table shows the medians. The budgets every page must meet:

Lighthouse medians by example page (58 of 58 within budget)

Lighthouse medians by example page (58 of 58 within budget)
Example Performance Accessibility Best practices Layout shift Blocking time Result
Full page 98 100 100 0.000 6 ms Pass
Pre-footer slot 98 100 100 0.015 3 ms Pass
Theming with tokens and parts 98 100 100 0.000 4 ms Pass
Light DOM styled by host CSS 98 100 100 0.000 4 ms Pass
Dark mode 98 100 100 0.000 14 ms Pass
Buttons and forms 98 100 100 0.000 5 ms Pass
Back to top 98 100 100 0.000 8 ms Pass
Vendor header 98 100 100 0.000 16 ms Pass
Site navigation 98 100 100 0.000 2 ms Pass
Site name 98 100 100 0.000 6 ms Pass
Main navigation 98 100 100 0.000 3 ms Pass
Full header, shadow DOM 98 100 100 0.000 3 ms Pass
Full header, no-shadow-dom 98 100 100 0.000 5 ms Pass
Vendor header, shadow DOM 98 100 100 0.000 0 ms Pass
Vendor header, no-shadow-dom 98 100 100 0.000 0 ms Pass
Library alerts 98 100 100 0.000 1 ms Pass
Breadcrumbs 98 100 100 0.000 12 ms Pass
Breadcrumbs from JavaScript 98 100 100 0.000 1 ms Pass
Back to the search 98 100 100 0.000 30 ms Pass
Collection cards 98 100 100 0.000 11 ms Pass
Photo card 98 100 100 0.000 20 ms Pass
Previous and next 98 100 100 0.000 7 ms Pass
Numbered pages 98 100 100 0.000 8 ms Pass
Tabs 98 100 100 0.000 0 ms Pass
Person cards 98 100 100 0.000 0 ms Pass
Story card 98 100 100 0.000 17 ms Pass
Load more 98 100 100 0.000 15 ms Pass
Load more, unknown total 98 100 100 0.000 7 ms Pass
Year rail, sort and suggestions 98 100 100 0.000 0 ms Pass
Contents sidebar 98 100 100 0.000 15 ms Pass
Contents from headings 98 100 100 0.000 0 ms Pass
Record metadata 98 100 100 0.000 12 ms Pass
Photo grid 98 100 100 0.000 1 ms Pass
Photo grid badges 98 100 100 0.000 4 ms Pass
Page images 98 100 100 0.000 12 ms Pass
Image regions 98 100 100 0.000 10 ms Pass
Image versions 98 100 100 0.000 13 ms Pass
Map: places on Grounds 98 100 96 0.000 13 ms Pass
Search facets 98 100 100 0.000 1 ms Pass
Search results (bento-box) 98 100 100 0.001 19 ms Pass
Static-site search (Pagefind) 98 100 100 0.000 9 ms Pass
Results toolbar & badges 98 100 100 0.000 13 ms Pass
Results list 98 100 100 0.000 1 ms Pass
Date histogram 98 100 100 0.000 26 ms Pass
Date histogram: decades over a long span 98 100 100 0.000 49 ms Pass
Combobox: person and subject pickers 98 100 100 0.000 1 ms Pass
Filter drawer: search and filters 98 100 100 0.000 1 ms Pass
uvalib-filter, shadow DOM 98 100 100 0.000 21 ms Pass
uvalib-filter, no-shadow-dom 98 100 100 0.000 1 ms Pass
uvalib-date-range, shadow DOM 98 100 100 0.000 11 ms Pass
uvalib-date-range, no-shadow-dom 98 100 100 0.000 21 ms Pass
uvalib-date-histogram, shadow DOM 98 100 100 0.000 23 ms Pass
uvalib-date-histogram, no-shadow-dom 98 100 100 0.000 20 ms Pass
Today's hours 98 100 100 0.016 0 ms Pass
Weekly hours 98 100 100 0.044 20 ms Pass
Library events 98 100 100 0.000 0 ms Pass
Analytics events 98 100 100 0.000 18 ms Pass
Dark mode (dark stored) 98 100 100 0.000 2 ms Pass

Component tests (browser)

Every component in shadow and light DOM: behaviour, keyboard use, axe-core accessibility in light and dark mode, 320px reflow, forced colours and analytics. Network services are stubbed.

web-test-runner (Chromium): 2,748 tests in 90 files, 2,748 passed, 0 failed. Pass

test/analytics-catalogue.test.ts — 63 passed (5.0 s)
  • passed: analytics catalogue › site-header (shadow) › utility links by label, the logo, the Menu opening; main-nav links only once
  • passed: analytics catalogue › site-header (shadow) › a site's own links by their label
  • passed: analytics catalogue › site-header (shadow) › the site name, as site-name-click
  • passed: analytics catalogue › site-page skip link (shadow) › reported once, as site-header skip-link
  • passed: analytics catalogue › site-main-nav (shadow) › a link in a group: `Group > Link`
  • passed: analytics catalogue › site-main-nav (shadow) › a top-level link: its label alone
  • passed: analytics catalogue › site-footer (shadow) › Column: Link; phone, email and social by kind; not the pre-footer
  • passed: analytics catalogue › uvalib-breadcrumbs (shadow) › the level, never the label or URL
  • passed: analytics catalogue › uvalib-card (shadow) › the place in the grid, or single; never the title or URL
  • passed: analytics catalogue › uvalib-pager (shadow) › next and previous, with no page number, label or URL
  • passed: analytics catalogue › uvalib-pager (shadow) › a numbered page, never the template
  • passed: analytics catalogue › uvalib-contents (shadow) › the level and the toggle, never the label or URL
  • passed: analytics catalogue › uvalib-metadata (shadow) › copy-citation only, never the citation; downloads are left to Matomo
  • passed: analytics catalogue › uvalib-metadata (shadow) › show-all / show-fewer with the row’s place, never its label or values
  • passed: analytics catalogue › uvalib-lightbox (shadow) › open, next, previous and full-size by position, never the URL or caption; nothing on render
  • passed: analytics catalogue › uvalib-lightbox (shadow) › a viewer restored from the URL reports nothing
  • passed: analytics catalogue › uvalib-lightbox (shadow) › compare: the mode and the version place, never its label or URL; not on open or restore
  • passed: analytics catalogue › uvalib-filter (shadow) › facet and scope changes with 1/0, see more and less; not on a restored value
  • passed: analytics catalogue › uvalib-date-range (shadow) › one event per settled change (debounced), none when it ends where it started
  • passed: analytics catalogue › uvalib-tabs (shadow) › a click reports the tab label, capped, and nothing on render
  • passed: analytics catalogue › uvalib-combobox (shadow) › choosing reports the label and position, clearing the label; never the text
  • passed: analytics catalogue › uvalib-image-regions (shadow) › an outline click reports the list label and the number, never the region label
  • passed: analytics catalogue › uvalib-map (shadow) › choosing a marker reports the label and position, a zoom button the level; never a place
  • passed: analytics catalogue › uvalib-map (shadow) › choosing a group of places reports expand with how many; never a place
  • passed: analytics catalogue › uvalib-filter-drawer (shadow) › open and close by the visitor, with the drawer label; never what is typed
  • passed: analytics catalogue › uvalib-back-to-top (shadow) › a click reports the fixed verb only
  • passed: analytics catalogue › uvalib-pager load-more (shadow) › Load more reports the next page and not the label
  • passed: analytics catalogue › site-header (light) › utility links by label, the logo, the Menu opening; main-nav links only once
  • passed: analytics catalogue › site-header (light) › a site's own links by their label
  • passed: analytics catalogue › site-header (light) › the site name, as site-name-click
  • passed: analytics catalogue › site-page skip link (light) › reported once, as site-header skip-link
  • passed: analytics catalogue › site-main-nav (light) › a link in a group: `Group > Link`
  • passed: analytics catalogue › site-main-nav (light) › a top-level link: its label alone
  • passed: analytics catalogue › site-footer (light) › Column: Link; phone, email and social by kind; not the pre-footer
  • passed: analytics catalogue › uvalib-breadcrumbs (light) › the level, never the label or URL
  • passed: analytics catalogue › uvalib-card (light) › the place in the grid, or single; never the title or URL
  • passed: analytics catalogue › uvalib-pager (light) › next and previous, with no page number, label or URL
  • passed: analytics catalogue › uvalib-pager (light) › a numbered page, never the template
  • passed: analytics catalogue › uvalib-contents (light) › the level and the toggle, never the label or URL
  • passed: analytics catalogue › uvalib-metadata (light) › copy-citation only, never the citation; downloads are left to Matomo
  • passed: analytics catalogue › uvalib-metadata (light) › show-all / show-fewer with the row’s place, never its label or values
  • passed: analytics catalogue › uvalib-lightbox (light) › open, next, previous and full-size by position, never the URL or caption; nothing on render
  • passed: analytics catalogue › uvalib-lightbox (light) › a viewer restored from the URL reports nothing
  • passed: analytics catalogue › uvalib-lightbox (light) › compare: the mode and the version place, never its label or URL; not on open or restore
  • passed: analytics catalogue › uvalib-filter (light) › facet and scope changes with 1/0, see more and less; not on a restored value
  • passed: analytics catalogue › uvalib-date-range (light) › one event per settled change (debounced), none when it ends where it started
  • passed: analytics catalogue › uvalib-tabs (light) › a click reports the tab label, capped, and nothing on render
  • passed: analytics catalogue › uvalib-combobox (light) › choosing reports the label and position, clearing the label; never the text
  • passed: analytics catalogue › uvalib-image-regions (light) › an outline click reports the list label and the number, never the region label
  • passed: analytics catalogue › uvalib-map (light) › choosing a marker reports the label and position, a zoom button the level; never a place
  • passed: analytics catalogue › uvalib-map (light) › choosing a group of places reports expand with how many; never a place
  • passed: analytics catalogue › uvalib-filter-drawer (light) › open and close by the visitor, with the drawer label; never what is typed
  • passed: analytics catalogue › uvalib-back-to-top (light) › a click reports the fixed verb only
  • passed: analytics catalogue › uvalib-pager load-more (light) › Load more reports the next page and not the label
  • passed: analytics catalogue › events-section › event-click: the category or all, and the position (shadow)
  • passed: analytics catalogue › events-section › event-click: the category or all, and the position (light)
  • passed: analytics catalogue › events-section › error: once per element, however many retries fail
  • passed: analytics catalogue › hours › site-hours-section: See all hours (shadow)
  • passed: analytics catalogue › hours › library-weekly-hours: week-change next and previous (shadow)
  • passed: analytics catalogue › hours › site-hours-section: See all hours (light)
  • passed: analytics catalogue › hours › library-weekly-hours: week-change next and previous (light)
  • passed: analytics catalogue › hours › error: hours-load once per element
  • passed: analytics catalogue › bento-box › error once per section, retry by section; no event for the failed reload
test/analytics-components.test.ts — 16 passed (1.4 s)
  • passed: analytics from the components › site-main-nav: a menu opening (not closing) with its label
  • passed: analytics from the components › bento-box (shadow) › one site search per section, with its total, once per load
  • passed: analytics from the components › bento-box (shadow) › nothing found counts 0; an error is not a search
  • passed: analytics from the components › bento-box (shadow) › result and see-all clicks: section and 1-based position, no titles or URLs
  • passed: analytics from the components › bento-box (light) › one site search per section, with its total, once per load
  • passed: analytics from the components › bento-box (light) › nothing found counts 0; an error is not a search
  • passed: analytics from the components › bento-box (light) › result and see-all clicks: section and 1-based position, no titles or URLs
  • passed: analytics from the components › site-header colour scheme › the visitor's choices, not the initial value
  • passed: analytics from the components › site-page matomo-id (shadow) › without it: no analytics element and nothing loaded
  • passed: analytics from the components › site-page matomo-id (shadow) › adds one <site-analytics> for the id, outside <main>, and the page stays clean
  • passed: analytics from the components › site-page matomo-id (shadow) › with an analytics element already on the page, still one page view
  • passed: analytics from the components › site-page matomo-id (light) › without it: no analytics element and nothing loaded
  • passed: analytics from the components › site-page matomo-id (light) › adds one <site-analytics> for the id, outside <main>, and the page stays clean
  • passed: analytics from the components › site-page matomo-id (light) › with an analytics element already on the page, still one page view
  • passed: analytics from the components › bufferAnalytics (site-page while the analytics code loads) › keeps events nobody forwards, and fires them again on flush
  • passed: analytics from the components › bufferAnalytics (site-page while the analytics code loads) › keeps nothing while an element forwards, and drop() forgets
test/base-preupgrade.test.ts — 11 passed (5.0 s)
  • passed: base.css before <site-page> is defined › keeps the heading margin inside, stays invisible, and shows after two seconds
  • passed: base.css before <site-page> is defined › shows the element as soon as it is defined
  • passed: base.css before <uvalib-chip-group> is defined › is hidden, keeps each row its upgraded height, and shows after two seconds
  • passed: base.css before <uvalib-chip-group> is defined › shows the raw children after two seconds when the script never loads
  • passed: base.css before <uvalib-combobox> is defined › holds the label and field, keeps a fallback input usable, and nothing moves on upgrade
  • passed: base.css before <uvalib-image-regions> is defined › lays the image and list out as the upgraded element does
  • passed: base.css before <uvalib-map> is defined › holds the instructions and the map height above the list, and the list stays put
  • passed: base.css before <uvalib-filter-drawer> is defined › on a phone hides the filters, holds the 44px button, and nothing moves on upgrade
  • passed: base.css before <uvalib-filter-drawer> is defined › on a wide screen shows the filters as written
  • passed: base.css before <uvalib-metadata> is defined › holds the upgraded height, so nothing below moves, at 1000px
  • passed: base.css before <uvalib-metadata> is defined › holds the upgraded height, so nothing below moves, at 375px
test/base.test.ts — 19 passed (31 ms)
  • passed: rewriteHost › rewrites :host and :host(...)
  • passed: rewriteHost › handles nested parentheses
  • passed: rewriteHost › trims whitespace inside :host( )
  • passed: rewriteHost › leaves :host-context( unrewritten
  • passed: installLightDomStyles › flattens nested groups and native sheets, returns true only once
  • passed: installLightDomStyles › prefixes comma lists and grouping rules, layers the result
  • passed: installLightDomStyles › scope:false leaves selectors alone but still layers by default
  • passed: installLightDomStyles › layer:false installs the sheet unlayered
  • passed: installLightDomStyles › adopts into a same-origin iframe document, exactly once
  • passed: installLightDomStyles › does not record the tag when installation throws
  • passed: UvalibElement › renders into an open shadow root by default
  • passed: UvalibElement › light mode renders into the element and installs one sheet for many instances
  • passed: UvalibElement › scopes light styles to the element and lets host CSS win
  • passed: UvalibElement › styles a light-mode element inside an open shadow root
  • passed: UvalibElement › no-style in light mode installs no sheet
  • passed: UvalibElement › no-style in shadow mode adopts no styles
  • passed: UvalibElement › re-appending a light-DOM element does not duplicate content or sheets
  • passed: UvalibElement › toggling no-shadow-dom after first render leaves the render root unchanged
  • passed: define › is a no-op for an already-defined tag
test/bento-box-page.test.ts — 10 passed (3.1 s)
  • passed: bento-box in a page › light, shadow: passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › light, light DOM: passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › light, light DOM no-style (Drupal): passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › light, shadow: styled colours come from the role tokens and pass AA
  • passed: bento-box in a page › light, light DOM: styled colours come from the role tokens and pass AA
  • passed: bento-box in a page › dark, shadow: passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › dark, light DOM: passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › dark, light DOM no-style (Drupal): passes axe at every impact level, loaded and failing
  • passed: bento-box in a page › dark, shadow: styled colours come from the role tokens and pass AA
  • passed: bento-box in a page › dark, light DOM: styled colours come from the role tokens and pass AA
test/bento-box-tz.test.ts (timezone-tokyo) — 3 passed (61 ms)
  • passed: bento-box dates in Asia/Tokyo › runs in a zone far from UTC
  • passed: bento-box dates in Asia/Tokyo › formats bare years, months and full dates without shifting them
  • passed: bento-box dates in Asia/Tokyo › shows the catalog dates as Virgo sends them
test/bento-box-tz.test.ts (timezone) — 3 passed (67 ms)
  • passed: bento-box dates in America/New_York › runs in a zone far from UTC
  • passed: bento-box dates in America/New_York › formats bare years, months and full dates without shifting them
  • passed: bento-box dates in America/New_York › shows the catalog dates as Virgo sends them
test/bento-box.test.ts — 46 passed (5.6 s)
  • passed: bento-box › exposes the shared endpoints as a static accessor that writes through
  • passed: bento-box › defining the tags again is a no-op
  • passed: bento-box › query flow › with no query shows only the search bar and intro, and fetches nothing
  • passed: bento-box › query flow › reads ?q= from the URL, which wins over the query attribute
  • passed: bento-box › query flow › reads the old ?query= too, and the attribute when the URL has neither
  • passed: bento-box › query flow › pushes ?q= on submit (encoded) and restores the query on Back
  • passed: bento-box › query flow › drops ?query= when it pushes ?q=, and an empty search clears the results
  • passed: bento-box › query flow › listens for popstate with addEventListener, and stops when disconnected
  • passed: bento-box › query flow › a slower answer for an older query never wins
  • passed: bento-box › query flow › text typed while results load is kept when they settle
  • passed: bento-box › query flow › a box moved mid-load loads again instead of showing an error
  • passed: bento-box › query flow › fetches the guest token once for the whole page
  • passed: bento-box › attributes › boxes takes a comma list or JSON, in that order
  • passed: bento-box › attributes › has the old defaults and passes limit and no-result-describe to the sections
  • passed: bento-box › attributes › headings: h2 then h3 under the page h1, or as heading-level says
  • passed: bento-box › shadow › renders the DOM and classes the Drupal theme styles
  • passed: bento-box › shadow › passes axe at every impact level: loaded, empty and failing
  • passed: bento-box › shadow › keeps the structural CSS (block hosts, hidden placeholders, [hidden], one-cell message)
  • passed: bento-box › shadow no-style › renders the DOM and classes the Drupal theme styles
  • passed: bento-box › shadow no-style › passes axe at every impact level: loaded, empty and failing
  • passed: bento-box › shadow no-style › keeps the structural CSS (block hosts, hidden placeholders, [hidden], one-cell message)
  • passed: bento-box › light no-style › renders the DOM and classes the Drupal theme styles
  • passed: bento-box › light no-style › passes axe at every impact level: loaded, empty and failing
  • passed: bento-box › light no-style › keeps the structural CSS (block hosts, hidden placeholders, [hidden], one-cell message)
  • passed: bento-box › light › renders the DOM and classes the Drupal theme styles
  • passed: bento-box › light › passes axe at every impact level: loaded, empty and failing
  • passed: bento-box › light › keeps the structural CSS (block hosts, hidden placeholders, [hidden], one-cell message)
  • passed: bento-box › sections › catalog: one entry per group, noting editions, limit results
  • passed: bento-box › sections › articles: the sign-in record keeps its link, with a neutral title
  • passed: bento-box › sections › "See all" names its section and keeps the count
  • passed: bento-box › sections › renders <script>, onerror and javascript: from the sources as text only
  • passed: bento-box › states › starts loading; state is read-only
  • passed: bento-box › states › while loading: limit invisible placeholders, aria-busy, and no "No results found."
  • passed: bento-box › states › collapses when fewer results than limit come back
  • passed: bento-box › states › empty: says so, keeps one entry height, and links to the source
  • passed: bento-box › states › error: a calm message and Retry, which keeps focus (shadow)
  • passed: bento-box › states › error: a calm message and Retry, which keeps focus (no-shadow-dom no-style)
  • passed: bento-box › states › keeps Retry, disabled, while retrying, and focus on it when the retry fails
  • passed: bento-box › states › a hung source times out into the error state
  • passed: bento-box › layout stability › placeholders hold the loaded height (styled shadow, 2 columns)
  • passed: bento-box › layout stability › placeholders hold the loaded height (styled shadow, 1 column)
  • passed: bento-box › layout stability › placeholders hold the loaded height (styled light)
  • passed: bento-box › layout stability › placeholders hold the loaded height (Drupal light no-style, 2 columns)
  • passed: bento-box › layout stability › placeholders hold the loaded height (Drupal light no-style, 1 column)
  • passed: bento-box › layout stability › a one-line title sits right above its author, with the height kept behind
  • passed: bento-box › layout stability › Drupal: the theme rules reach the sections and the grid has two columns
test/bento-data.test.ts — 22 passed (190 ms)
  • passed: bento data › textRuns merges adjacent runs and collapses whitespace
  • passed: bento data › reads window.uvalibBentoEndpoints at the first fetch
  • passed: bento data › fetchJson › takes a RequestInit and stops at once when its signal aborts
  • passed: bento data › fetchJson › throws an HttpError and retries a status only when retryStatus allows
  • passed: bento data › Virgo › groups: the first record of each group, with its edition count
  • passed: bento data › Virgo › articles: the sign-in record keeps its link with a neutral title; pub_type is the format
  • passed: bento data › Virgo › truncates authors after five and skips records without a title or id
  • passed: bento data › Virgo › formats published dates as calendar dates
  • passed: bento data › Virgo › sends the bento search body with a Bearer token, rows = limit
  • passed: bento data › Virgo › fetches the guest token once for every search on the page
  • passed: bento data › Virgo › refetches the token once after a 401
  • passed: bento data › Virgo › a 401 with a fresh token fails without looping
  • passed: bento data › Virgo › caches identical searches and forgets failures
  • passed: bento data › Virgo › aborts the shared fetch once every caller has aborted
  • passed: bento data › Virgo › see-all URLs encode the query
  • passed: bento data › Virgo › braces in the query cannot close or open a keyword clause
  • passed: bento data › LibGuides › reduces the proxy HTML to plain text and URLs
  • passed: bento data › LibGuides › drops javascript: links and keeps markup as text
  • passed: bento data › LibGuides › asks the us-east-1 proxy with q encoded, and slices to limit
  • passed: bento data › website › reduces JSON:API results to titles, https links and marked excerpts
  • passed: bento data › website › keeps hostile titles and excerpts as text; people fall back to their job title
  • passed: bento data › website › queries the index with the types group, encoded
test/cdn-page-only.test.ts — 2 passed (38 ms)
  • passed: CDN site-page entry on its own › registers and renders site-header (shadow mode)
  • passed: CDN site-page entry on its own › registers and renders site-header (light mode)
test/cdn-page.test.ts — 2 passed (156 ms)
  • passed: CDN build in a page › loads site-page with a header and fetches each chunk once
  • passed: CDN build in a page › tolerates a CDN copy loading after an npm copy and keeps the first definition
test/color-scheme-dark.test.ts — 15 passed (2.8 s)
  • passed: dark mode colours › shadow: every component uses the dark palette when Dark is chosen
  • passed: dark mode colours › shadow: System with the OS dark gives the same palette
  • passed: dark mode colours › shadow: Light (opted in) keeps the light colours
  • passed: dark mode colours › light: every component uses the dark palette when Dark is chosen
  • passed: dark mode colours › light: System with the OS dark gives the same palette
  • passed: dark mode colours › light: Light (opted in) keeps the light colours
  • passed: dark mode colours › dark alert colours: <site-alerts> reads the --uva-color-alert-* role tokens
  • passed: dark mode accessibility (axe, every impact level) › shadow, light, 1280px, alerts shown
  • passed: dark mode accessibility (axe, every impact level) › shadow, light, 390px, alerts shown, Menu open
  • passed: dark mode accessibility (axe, every impact level) › shadow, dark, 1280px, alerts shown
  • passed: dark mode accessibility (axe, every impact level) › shadow, dark, 390px, alerts shown, Menu open
  • passed: dark mode accessibility (axe, every impact level) › light, light, 1280px, alerts shown
  • passed: dark mode accessibility (axe, every impact level) › light, light, 390px, alerts shown, Menu open
  • passed: dark mode accessibility (axe, every impact level) › light, dark, 1280px, alerts shown
  • passed: dark mode accessibility (axe, every impact level) › light, dark, 390px, alerts shown, Menu open
test/color-scheme-light.test.ts — 8 passed (735 ms)
  • passed: light mode is unchanged without the color-scheme switch › shadow › every component matches main's colours (the two fixed borders reach 3:1)
  • passed: light mode is unchanged without the color-scheme switch › shadow › stays light with the OS in dark mode and the host page declaring light dark
  • passed: light mode is unchanged without the color-scheme switch › light › every component matches main's colours (the two fixed borders reach 3:1)
  • passed: light mode is unchanged without the color-scheme switch › light › stays light with the OS in dark mode and the host page declaring light dark
  • passed: the site's own content keeps the page's colour scheme without the switch › shadow: <site-page> content and its pre-footer band
  • passed: the site's own content keeps the page's colour scheme without the switch › shadow: <site-style> content
  • passed: the site's own content keeps the page's colour scheme without the switch › light: <site-page> content and its pre-footer band
  • passed: the site's own content keeps the page's colour scheme without the switch › light: <site-style> content
test/color-scheme.test.ts — 75 passed (1.4 s)
  • passed: dark mode (color-scheme-switch) › shadow: switching on and off at runtime keeps the header alert in place
  • passed: dark mode (color-scheme-switch) › light: switching on and off at runtime keeps the header alert in place
  • passed: dark mode (color-scheme-switch) › off by default › shadow: no control, no attribute, even with the OS dark
  • passed: dark mode (color-scheme-switch) › off by default › shadow: inert: no storage read, no media query, no storage listener
  • passed: dark mode (color-scheme-switch) › off by default › light: no control, no attribute, even with the OS dark
  • passed: dark mode (color-scheme-switch) › off by default › light: inert: no storage read, no media query, no storage listener
  • passed: dark mode (color-scheme-switch) › off by default › an inert header starts following once another component turns dark mode on
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off matches the normalised snapshot
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › shadow, default
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › shadow, no-main-nav
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › shadow, site links
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › shadow, vendor
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › light, default
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › light, no-main-nav
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › light, site links
  • passed: dark mode (color-scheme-switch) › off by default › the header markup with the switch off is byte-identical to main (raw) › light, vendor
  • passed: dark mode (color-scheme-switch) › without light-dark() support › shows no control, sets no attribute and stays light
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › defaults to System, which follows the OS preference live
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › Light and Dark override the OS, are stored, and System removes the key
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › keeps a stored choice when the OS preference comes to match it
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › restores the stored choice on the next page load
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › follows a change made in another tab (storage event)
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › still works for the page when storage throws
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › is a native radio group with a "Theme" legend, unique names, and arrow keys
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › two light-DOM pages never share radio names or popover ids
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › wide screens: at the end of the utility row, on the same line, targets >= 24px
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › does not overflow the header at 993px
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › does not overflow the header at 1100px
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › phones: last in the Menu popover, full width, legend visible, with a rule
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › no-main-nav: the popover becomes a container holding the list and the control
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › vendor variant: after the inline nav, no overflow at 1280px
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › vendor variant: after the inline nav, no overflow at 390px
  • passed: dark mode (color-scheme-switch) › opt-in (shadow) › swaps the logo to the reversed one in dark mode and back, keeping its size
  • passed: dark mode (color-scheme-switch) › opt-in (light) › defaults to System, which follows the OS preference live
  • passed: dark mode (color-scheme-switch) › opt-in (light) › Light and Dark override the OS, are stored, and System removes the key
  • passed: dark mode (color-scheme-switch) › opt-in (light) › keeps a stored choice when the OS preference comes to match it
  • passed: dark mode (color-scheme-switch) › opt-in (light) › restores the stored choice on the next page load
  • passed: dark mode (color-scheme-switch) › opt-in (light) › follows a change made in another tab (storage event)
  • passed: dark mode (color-scheme-switch) › opt-in (light) › still works for the page when storage throws
  • passed: dark mode (color-scheme-switch) › opt-in (light) › is a native radio group with a "Theme" legend, unique names, and arrow keys
  • passed: dark mode (color-scheme-switch) › opt-in (light) › two light-DOM pages never share radio names or popover ids
  • passed: dark mode (color-scheme-switch) › opt-in (light) › wide screens: at the end of the utility row, on the same line, targets >= 24px
  • passed: dark mode (color-scheme-switch) › opt-in (light) › does not overflow the header at 993px
  • passed: dark mode (color-scheme-switch) › opt-in (light) › does not overflow the header at 1100px
  • passed: dark mode (color-scheme-switch) › opt-in (light) › phones: last in the Menu popover, full width, legend visible, with a rule
  • passed: dark mode (color-scheme-switch) › opt-in (light) › no-main-nav: the popover becomes a container holding the list and the control
  • passed: dark mode (color-scheme-switch) › opt-in (light) › vendor variant: after the inline nav, no overflow at 1280px
  • passed: dark mode (color-scheme-switch) › opt-in (light) › vendor variant: after the inline nav, no overflow at 390px
  • passed: dark mode (color-scheme-switch) › opt-in (light) › swaps the logo to the reversed one in dark mode and back, keeping its size
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, 1280px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, 1000px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, 993px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, no-main-nav, 1280px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, no-main-nav, 1000px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › shadow, no-main-nav, 993px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, 1280px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, 1000px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, 993px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, no-main-nav, 1280px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, no-main-nav, 1000px
  • passed: dark mode (color-scheme-switch) › long site links: the control stays at the end of the utility row › light, no-main-nav, 993px
  • passed: dark mode (color-scheme-switch) › the "System" hint always names the OS preference › shadow: with Light chosen and the OS dark it reads "(currently dark)", live
  • passed: dark mode (color-scheme-switch) › the "System" hint always names the OS preference › light: with Light chosen and the OS dark it reads "(currently dark)", live
  • passed: dark mode (color-scheme-switch) › a stray data-uva-color-scheme (the snippet on a page without the switch) › shadow: <site-page> without the switch removes it; the page stays light
  • passed: dark mode (color-scheme-switch) › a stray data-uva-color-scheme (the snippet on a page without the switch) › shadow: a standalone <site-header> without the switch removes it too
  • passed: dark mode (color-scheme-switch) › a stray data-uva-color-scheme (the snippet on a page without the switch) › light: <site-page> without the switch removes it; the page stays light
  • passed: dark mode (color-scheme-switch) › a stray data-uva-color-scheme (the snippet on a page without the switch) › light: a standalone <site-header> without the switch removes it too
  • passed: dark mode (color-scheme-switch) › several components on one page › a header without the switch follows a dark root: never the navy logo
  • passed: dark mode (color-scheme-switch) › several components on one page › turning one owner off keeps the attribute; the last one off removes it
  • passed: dark mode (color-scheme-switch) › several components on one page › disconnecting the last owning <site-page> releases and removes the attribute
  • passed: dark mode (color-scheme-switch) › forced colors (a contrast theme repaints the header) › picks the logo from the OS theme, not the stored choice
  • passed: dark mode (color-scheme-switch) › standalone <site-header color-scheme-switch> › shadow: sets the attribute, installs the rules and renders the control
  • passed: dark mode (color-scheme-switch) › standalone <site-header color-scheme-switch> › light: sets the attribute, installs the rules and renders the control
  • passed: dark mode (color-scheme-switch) › standalone <site-header color-scheme-switch> › removing the attribute turns dark mode off again
  • passed: dark mode (color-scheme-switch) › standalone <site-header color-scheme-switch> › no-style: still sets the attribute and color-scheme on <html> for the host CSS
test/controls-components.test.ts — 2 passed (2.1 s)
  • passed: base.css and the components' own buttons (light DOM) › excludes every tag that renders a .uvalib-button
  • passed: base.css and the components' own buttons (light DOM) › a host .uvalib-button is styled, the components’ buttons are not
test/controls.test.ts — 20 passed (1.5 s)
  • passed: base.css buttons and forms › the search form wraps at 320px with no horizontal scroll
  • passed: base.css buttons and forms › light › primary is the library's blue-alt button, at least 44px tall
  • passed: base.css buttons and forms › light › secondary is an outline, subtle a pale blue fill, both readable
  • passed: base.css buttons and forms › light › sizes: small keeps a 32px target, large is bigger
  • passed: base.css buttons and forms › light › the focus ring is the library orange, 3:1 against the page
  • passed: base.css buttons and forms › light › a toggle shows its state by a ticked box, not colour alone
  • passed: base.css buttons and forms › light › disabled buttons and fields are readable and not clickable-looking
  • passed: base.css buttons and forms › light › leaves the components' own .uvalib-button alone (light DOM)
  • passed: base.css buttons and forms › light › the search form keeps label, field and button in a row
  • passed: base.css buttons and forms › light › hover and active change every enabled variant
  • passed: base.css buttons and forms › light › a pressed toggle is filled with a tick, whatever its variant
  • passed: base.css buttons and forms › light › disabled buttons and links ignore the pointer: no hover or active change
  • passed: base.css buttons and forms › light › has no axe violations
  • passed: base.css buttons and forms › dark › uses the role tokens: light blue with dark text, readable on the dark surface
  • passed: base.css buttons and forms › dark › has no axe violations
  • passed: base.css buttons and forms › dark with base.css alone (no tokens.css) › carries the role tokens it needs, so text and controls stay readable
  • passed: base.css buttons and forms › dark with base.css alone (no tokens.css) › has no axe violations
  • passed: base.css buttons and forms › forced colors › keeps every outline, and shows a pressed toggle in Highlight
  • passed: base.css buttons and forms › forced colors › hover and active stay visible for every variant
  • passed: base.css buttons and forms › forced colors › disabled buttons and links are GrayText
test/custom-states.test.ts — 10 passed (664 ms)
  • passed: custom states helper › is a no-op without internals or states, and where the name is refused
  • passed: custom states helper › a page stylesheet can style a state, which a page cannot set
  • passed: custom states (shadow) › uvalib-combobox: open, invalid and loading follow the field
  • passed: custom states (shadow) › uvalib-filter-drawer: modal below the breakpoint, open with the panel
  • passed: custom states (shadow) › uvalib-lightbox: open while the viewer is
  • passed: custom states (shadow) › uvalib-tag-list: expanded after Show all, not after Show fewer
  • passed: custom states (no-shadow-dom) › uvalib-combobox: open, invalid and loading follow the field
  • passed: custom states (no-shadow-dom) › uvalib-filter-drawer: modal below the breakpoint, open with the panel
  • passed: custom states (no-shadow-dom) › uvalib-lightbox: open while the viewer is
  • passed: custom states (no-shadow-dom) › uvalib-tag-list: expanded after Show all, not after Show fewer
test/events-data.test.ts — 23 passed (170 ms)
  • passed: events data › eventsUrl › asks LibCal 1.0 for 30 days of calendar 4299, ten more than the limit
  • passed: events data › eventsUrl › caps the fetch at 100 and needs at least one event
  • passed: events data › eventsUrl › adds the category, encoded
  • passed: events data › eventsUrl › uses event_search with an encodeURIComponent search for a query
  • passed: events data › eventsUrl › never sends a parameter twice, even when an override already has it
  • passed: events data › eventsUrl › keeps an override URL whole when it has a second ?
  • passed: events data › eventsUrl › reads window.uvalibEventsEndpoints at the first fetch
  • passed: events data › parseEvents › keeps only the title, public URL, start, end and all-day flag
  • passed: events data › parseEvents › skips malformed events instead of failing the list
  • passed: events data › parseEvents › returns nothing for a response without an events array
  • passed: events data › upcoming › drops events that have ended, keeps running ones, sorts by start, then limits
  • passed: events data › upcoming › keeps an event ending right now out
  • passed: events data › eventWhen (America/New_York) › gives the date column and the time line
  • passed: events data › eventWhen (America/New_York) › uses the New York date for an evening event that is already tomorrow in UTC
  • passed: events data › eventWhen (America/New_York) › says EDT for an event in daylight saving time
  • passed: events data › eventWhen (America/New_York) › says "All day" for an all-day event
  • passed: events data › eventWhen (America/New_York) › gives a multi-day event its start date and a time range with the end date
  • passed: events data › eventWhen (America/New_York) › uses plain spaces (no narrow no-break spaces from Intl)
  • passed: events data › loadEvents › parses the LibCal response
  • passed: events data › loadEvents › shares one fetch between identical requests
  • passed: events data › loadEvents › fetches again once the cached answer is older than maxAge
  • passed: events data › loadEvents › does not cache a failure
  • passed: events data › loadEvents › retries a failed fetch
test/events-section-page.test.ts — 10 passed (2.4 s)
  • passed: events-section in a page › light, shadow: passes axe at every impact level, loaded and failing
  • passed: events-section in a page › light, light DOM: passes axe at every impact level, loaded and failing
  • passed: events-section in a page › light, light DOM no-style (Drupal): passes axe at every impact level, loaded and failing
  • passed: events-section in a page › light, shadow: styled colours come from the role tokens and pass AA
  • passed: events-section in a page › light, light DOM: styled colours come from the role tokens and pass AA
  • passed: events-section in a page › dark, shadow: passes axe at every impact level, loaded and failing
  • passed: events-section in a page › dark, light DOM: passes axe at every impact level, loaded and failing
  • passed: events-section in a page › dark, light DOM no-style (Drupal): passes axe at every impact level, loaded and failing
  • passed: events-section in a page › dark, shadow: styled colours come from the role tokens and pass AA
  • passed: events-section in a page › dark, light DOM: styled colours come from the role tokens and pass AA
test/events-section-tz.test.ts (timezone-tokyo) — 7 passed (368 ms)
  • passed: events-section in Asia/Tokyo › runs in New York or Tokyo
  • passed: events-section in Asia/Tokyo › shows a morning event on its New York day (already the evening in Tokyo)
  • passed: events-section in Asia/Tokyo › late evening in New York (next day in UTC and Tokyo): ended events go, the next day shows
  • passed: events-section in Asia/Tokyo › an evening event stays on its New York date though it is the next day in UTC
  • passed: events-section in Asia/Tokyo › an all-day event says "All day" on its New York date
  • passed: events-section in Asia/Tokyo › a multi-day event shows its start date and a range with the end date
  • passed: events-section in Asia/Tokyo › an event after clocks go forward says EDT
test/events-section-tz.test.ts (timezone) — 7 passed (453 ms)
  • passed: events-section in America/New_York › runs in New York or Tokyo
  • passed: events-section in America/New_York › shows a morning event on its New York day (already the evening in Tokyo)
  • passed: events-section in America/New_York › late evening in New York (next day in UTC and Tokyo): ended events go, the next day shows
  • passed: events-section in America/New_York › an evening event stays on its New York date though it is the next day in UTC
  • passed: events-section in America/New_York › an all-day event says "All day" on its New York date
  • passed: events-section in America/New_York › a multi-day event shows its start date and a range with the end date
  • passed: events-section in America/New_York › an event after clocks go forward says EDT
test/events-section.test.ts — 58 passed (5.1 s)
  • passed: events-section › scopes the light structural CSS to the tag
  • passed: events-section › uses h3 titles by default and honours heading-level 1 to 6
  • passed: events-section › hides events that have ended, then applies limit
  • passed: events-section › shows at most limit events and fetches ten more
  • passed: events-section › filters by category
  • passed: events-section › searches with query, encoded
  • passed: events-section › shares one fetch between two elements asking for the same events
  • passed: events-section › ignores a stale response when the attributes change mid-fetch
  • passed: events-section › formats all-day, multi-day, evening and EDT events in New York time
  • passed: events-section › exposes the shared endpoints as a static accessor that writes through
  • passed: events-section › defining the tag again is a no-op
  • passed: events-section › shadow › renders the DOM and classes the Drupal theme styles
  • passed: events-section › shadow › passes axe
  • passed: events-section › shadow › keeps the structural CSS (host block, clamp, hidden placeholders, [hidden])
  • passed: events-section › shadow no-style › renders the DOM and classes the Drupal theme styles
  • passed: events-section › shadow no-style › passes axe
  • passed: events-section › shadow no-style › keeps the structural CSS (host block, clamp, hidden placeholders, [hidden])
  • passed: events-section › light no-style › renders the DOM and classes the Drupal theme styles
  • passed: events-section › light no-style › passes axe
  • passed: events-section › light no-style › keeps the structural CSS (host block, clamp, hidden placeholders, [hidden])
  • passed: events-section › light › renders the DOM and classes the Drupal theme styles
  • passed: events-section › light › passes axe
  • passed: events-section › light › keeps the structural CSS (host block, clamp, hidden placeholders, [hidden])
  • passed: events-section › heading level from the page › is one below the nearest heading before it
  • passed: events-section › heading level from the page › uses role="heading" with aria-level and caps at 6
  • passed: events-section › heading level from the page › defaults to h3 with no heading before it, and skips hidden headings
  • passed: events-section › heading level from the page › does not nest under another component's titles (light DOM)
  • passed: events-section › heading level from the page › an explicit heading-level wins
  • passed: events-section › titles › clamps to three lines and keeps the whole title in the DOM
  • passed: events-section › titles › cuts at max-title-length for sighted users only, keeping the full title for AT
  • passed: events-section › titles › does not cut a title of exactly max-title-length characters
  • passed: events-section › titles › shows & and other text as text
  • passed: events-section › states › starts in the loading state; state is read-only
  • passed: events-section › states › says "Loading events…" and draws limit invisible placeholder cards while loading
  • passed: events-section › states › collapses when fewer events than limit come back
  • passed: events-section › states › says "No upcoming events." and keeps one card row when there are none
  • passed: events-section › states › says when every event has ended (empty)
  • passed: events-section › states › offers Retry when events cannot be loaded, keeping one card row (shadow)
  • passed: events-section › states › offers Retry when events cannot be loaded, keeping one card row (no-shadow-dom no-style)
  • passed: events-section › states › keeps the Retry button, disabled, while retrying, and keeps focus on it when the retry fails
  • passed: events-section › states › moves focus to the status line when a retry finds no events
  • passed: events-section › states › retries quietly on an interval after an error
  • passed: events-section › states › refetches quietly once its events are an hour old, keeping the cards on screen
  • passed: events-section › states › stops retrying when disconnected
  • passed: events-section › states › shows the error when a fetch times out
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow, narrow)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow, 4 columns)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow, narrowest 4 columns)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow, 2 columns)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (styled shadow, narrowest 2 columns)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (Drupal light no-style, 1 column)
  • passed: events-section › layout stability › keeps its height when the events replace the placeholders (Drupal light no-style, 4 columns)
  • passed: events-section › layout stability › keeps the Drupal card geometry whatever heading-level is (1 column)
  • passed: events-section › layout stability › keeps the Drupal card geometry whatever heading-level is (4 columns)
  • passed: events-section › layout stability › reserves --events-section-min-height only while it first loads
  • passed: events-section › forced colors › shadow: cards keep a visible border, readable text and a focus ring
  • passed: events-section › forced colors › light: cards keep a visible border, readable text and a focus ring
test/font-fallback.test.ts — 6 passed (34 ms)
  • passed: <site-page> installs the Franklin Gothic fallback › adds the four fallback faces to the document with its global styles
  • passed: the Franklin Gothic fallback face › is 94.52% of its system font's width at normal 400
  • passed: the Franklin Gothic fallback face › is 95.99% of its system font's width at normal 500
  • passed: the Franklin Gothic fallback face › is 91.32% of its system font's width at normal 700
  • passed: the Franklin Gothic fallback face › is 95.06% of its system font's width at italic 400
  • passed: the Franklin Gothic fallback face › has Franklin Gothic’s line height (1.205em) and no line gap
test/hidden-host.test.ts — 39 passed (4.8 s)
  • passed: hidden hides every component host › the manifest lists the components
  • passed: hidden hides every component host › <articles-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <bento-box hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <catalog-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <libguides-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <website-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <events-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <library-hours-setup hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <library-weekly-hours hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-alerts hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-analytics hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-footer hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-header hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-hours-section hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-main-nav hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-page hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <site-style hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-analytics hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-back-to-top hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-breadcrumbs hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-card hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-card-grid hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-chip-group hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-combobox hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-contents hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-date-histogram hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-date-range hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-filter hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-filter-drawer hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-image-regions hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-lightbox hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-map hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-metadata hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-pagefind-search hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-pager hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-photo-grid hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-results-count hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-tabs hidden> in shadow and light DOM, with and without no-style
  • passed: hidden hides every component host › <uvalib-tag-list hidden> in shadow and light DOM, with and without no-style
test/hidden.test.ts — 4 passed (55 ms)
  • passed: hidden hides base.css classes (issue #7) › lists every class whose rules set display
  • passed: hidden hides base.css classes (issue #7) › every listed class is hidden by hidden, on a div and on a button, link and input
  • passed: hidden hides base.css classes (issue #7) › pre-upgrade rules: an undefined element with hidden is hidden
  • passed: hidden hides base.css classes (issue #7) › is scoped: base.css does not hide other [hidden] content a host page shows
test/index-no-define.test.ts — 1 passed (54 ms)
  • passed: index › exports the component classes without defining any element
test/library-hours-data.test.ts — 22 passed (386 ms)
  • passed: library hours data › dates › gives today in America/New_York, whatever the browser zone
  • passed: library hours data › dates › adds days across months, years and DST changes
  • passed: library hours data › dates › starts weeks on Sunday
  • passed: library hours data › dates › formats ISO dates without a time-zone shift
  • passed: library hours data › hours text › drops :00 and keeps other minutes
  • passed: library hours data › hours text › formats a day: ranges, 24 hours, status text and nothing
  • passed: library hours data › libraries › parses the JSON:API fields the components use
  • passed: library hours data › libraries › drops entity links that are not nodes, and keeps absolute URLs
  • passed: library hours data › libraries › sorts by priority placement (missing last), then title
  • passed: library hours data › libraries › fetches the library list once however many callers
  • passed: library hours data › libraries › retries a bounded number of times, then rejects and lets a later call retry
  • passed: library hours data › endpoints › reads window.uvalibHoursEndpoints at the first fetch
  • passed: library hours data › endpoints › caches by URL, so a later change applies to the next load
  • passed: library hours data › endpoints › ignores unknown keys and non-string values
  • passed: library hours data › timeouts › times out each hung attempt, counts it as a retry, and does not cache the failure
  • passed: library hours data › LibCal hours › requests the ids and range, keyed by calendar id
  • passed: library hours data › LibCal hours › shares identical requests and refetches only when older than maxAge
  • passed: library hours data › LibCal hours › resolves to an empty map without a request when there are no ids
  • passed: library hours data › LibCal hours › rejects after the retries when LibCal fails
  • passed: library hours data › sanitizeHoursHtml › keeps the allowlist: a[href], p, br, strong, em
  • passed: library hours data › sanitizeHoursHtml › drops scripts, handlers, styles and unsafe URLs; unwraps other elements
  • passed: library hours data › sanitizeHoursHtml › keeps relative, mailto and tel links
test/library-hours-setup.test.ts — 9 passed (855 ms)
  • passed: library-hours-setup › registers library-weekly-hours
  • passed: library-hours-setup › replaces each placeholder, copying attributes except type and moving the children
  • passed: library-hours-setup › makes one JSON:API request for six instances
  • passed: library-hours-setup › passes axe as Drupal uses it (light DOM, no-style)
  • passed: library-hours-setup › does nothing until connected
  • passed: library-hours-setup › upgrades placeholders added later, and stops once disconnected
  • passed: library-hours-setup › upgrades each placeholder once, even with two setup elements
  • passed: library-hours-setup › works within its own root node (a shadow root), not the whole document
  • passed: library-hours-setup › upgraded tables take their level from each library's heading, as on /hours
test/library-hours-tz.test.ts (timezone-tokyo) — 13 passed (738 ms)
  • passed: library hours in Asia/Tokyo › runs in New York or Tokyo
  • passed: library hours in Asia/Tokyo › 23:30 on a Saturday in New York (Sunday in UTC and Tokyo) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › 23:30 on a Saturday in New York (Sunday in UTC and Tokyo) › site-hours-section shows the New York date and its hours
  • passed: library hours in Asia/Tokyo › a Saturday evening (19:00, already Sunday in UTC) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › a Saturday evening (19:00, already Sunday in UTC) › site-hours-section shows the New York date and its hours
  • passed: library hours in Asia/Tokyo › the Sunday clocks go back (00:30 EDT, before the change) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › the Sunday clocks go back (00:30 EDT, before the change) › site-hours-section shows the New York date and its hours
  • passed: library hours in Asia/Tokyo › the Saturday ending the week clocks went back (23:30 EST) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › the Saturday ending the week clocks went back (23:30 EST) › site-hours-section shows the New York date and its hours
  • passed: library hours in Asia/Tokyo › the Sunday clocks go forward (03:30 EDT, just after the change) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › the Sunday clocks go forward (03:30 EDT, just after the change) › site-hours-section shows the New York date and its hours
  • passed: library hours in Asia/Tokyo › the Saturday before clocks go forward (23:30 EST) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in Asia/Tokyo › the Saturday before clocks go forward (23:30 EST) › site-hours-section shows the New York date and its hours
test/library-hours-tz.test.ts (timezone) — 13 passed (781 ms)
  • passed: library hours in America/New_York › runs in New York or Tokyo
  • passed: library hours in America/New_York › 23:30 on a Saturday in New York (Sunday in UTC and Tokyo) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › 23:30 on a Saturday in New York (Sunday in UTC and Tokyo) › site-hours-section shows the New York date and its hours
  • passed: library hours in America/New_York › a Saturday evening (19:00, already Sunday in UTC) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › a Saturday evening (19:00, already Sunday in UTC) › site-hours-section shows the New York date and its hours
  • passed: library hours in America/New_York › the Sunday clocks go back (00:30 EDT, before the change) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › the Sunday clocks go back (00:30 EDT, before the change) › site-hours-section shows the New York date and its hours
  • passed: library hours in America/New_York › the Saturday ending the week clocks went back (23:30 EST) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › the Saturday ending the week clocks went back (23:30 EST) › site-hours-section shows the New York date and its hours
  • passed: library hours in America/New_York › the Sunday clocks go forward (03:30 EDT, just after the change) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › the Sunday clocks go forward (03:30 EDT, just after the change) › site-hours-section shows the New York date and its hours
  • passed: library hours in America/New_York › the Saturday before clocks go forward (23:30 EST) › library-weekly-hours shows the New York week with today marked
  • passed: library hours in America/New_York › the Saturday before clocks go forward (23:30 EST) › site-hours-section shows the New York date and its hours
test/library-weekly-hours.test.ts — 42 passed (4.4 s)
  • passed: library-weekly-hours › scopes the light structural CSS to the tag
  • passed: library-weekly-hours › hides the building row with hide-building-hours (Harrison shares its calendar)
  • passed: library-weekly-hours › pages weeks with the buttons, reflects week-count and announces the week
  • passed: library-weekly-hours › renders 24 Hours
  • passed: library-weekly-hours › renders days with several ranges
  • passed: library-weekly-hours › renders holiday closures
  • passed: library-weekly-hours › honours heading-level and the old headinglevelstart attribute
  • passed: library-weekly-hours › shows a polite loading status while fetching, with the table header already laid out
  • passed: library-weekly-hours › keeps the week header and offers Retry when data is unavailable (hours-fail.test)
  • passed: library-weekly-hours › keeps the week header and offers Retry when data is unavailable (hours-empty.test)
  • passed: library-weekly-hours › recovers from an error with Retry and announces the result
  • passed: library-weekly-hours › recovers from an error on the refresh interval, without announcing
  • passed: library-weekly-hours › recovers from an error on the date check for other weeks too
  • passed: library-weekly-hours › keeps the previous rows (aria-busy) while the next week loads, and announces only the result
  • passed: library-weekly-hours › does not announce a week-count set from script
  • passed: library-weekly-hours › ignores a stale response that arrives after a newer request
  • passed: library-weekly-hours › shows the error when a fetch times out
  • passed: library-weekly-hours › shows a Building hours placeholder row before the library list arrives
  • passed: library-weekly-hours › holds the final table height with placeholder rows while the hours load
  • passed: library-weekly-hours › reserves --library-weekly-hours-min-height only during its first load
  • passed: library-weekly-hours › describes each week button by its own week heading
  • passed: library-weekly-hours › exposes the shared endpoints as a static accessor that writes through
  • passed: library-weekly-hours › refreshes the current week every refresh-every ms, and stops when disconnected
  • passed: library-weekly-hours › does not refresh other weeks on the interval
  • passed: library-weekly-hours › moves to the new week when the New York date rolls over
  • passed: library-weekly-hours › renders nothing without a library slug
  • passed: library-weekly-hours › starts in the loading state
  • passed: library-weekly-hours › shadow › renders the live DOM structure for a week
  • passed: library-weekly-hours › shadow › passes axe
  • passed: library-weekly-hours › shadow › keeps the structural CSS (host block, flex header, [hidden])
  • passed: library-weekly-hours › shadow no-style › renders the live DOM structure for a week
  • passed: library-weekly-hours › shadow no-style › passes axe
  • passed: library-weekly-hours › shadow no-style › keeps the structural CSS (host block, flex header, [hidden])
  • passed: library-weekly-hours › light no-style › renders the live DOM structure for a week
  • passed: library-weekly-hours › light no-style › passes axe
  • passed: library-weekly-hours › light no-style › keeps the structural CSS (host block, flex header, [hidden])
  • passed: library-weekly-hours › light › renders the live DOM structure for a week
  • passed: library-weekly-hours › light › passes axe
  • passed: library-weekly-hours › light › keeps the structural CSS (host block, flex header, [hidden])
  • passed: library-weekly-hours › heading level from the page › is one below the library's heading, and keeps the heading-h2 class
  • passed: library-weekly-hours › heading level from the page › each table follows its own library heading, not the table before it
  • passed: library-weekly-hours › heading level from the page › stays level 2 with no heading before it, and an explicit level sets both
test/link.test.ts — 4 passed (1 ms)
  • passed: siteLink › joins with exactly one slash
  • passed: siteLink › returns absolute paths unchanged
  • passed: siteLink › leaves other schemes and protocol-relative urls unchanged
  • passed: siteLink › still joins relative paths that merely look like a scheme prefix
test/message-classes.test.ts — 19 passed (414 ms)
  • passed: base.css .uvalib-message › matches <site-alerts> list alerts: the alert colours and a thick start border
  • passed: base.css .uvalib-message › is inline content size: no outer margins on its first and last child, text at body size
  • passed: base.css .uvalib-message › severity is in the text, not colour alone
  • passed: base.css .uvalib-message › wraps its text pretty (no one-word last line), never balanced in its box
  • passed: base.css .uvalib-message › reflows at 320px with no horizontal scroll
  • passed: base.css .uvalib-message › forced colors: every message keeps a visible border, thicker at the start
  • passed: base.css .uvalib-message › the link focus ring follows the text colour
  • passed: base.css .uvalib-message › light › text and links reach 7:1 (AAA) on every kind
  • passed: base.css .uvalib-message › light › each kind has its own colours, and notice is info
  • passed: base.css .uvalib-message › light › has no axe violations
  • passed: base.css .uvalib-message › dark › text and links reach 7:1 (AAA) on every kind
  • passed: base.css .uvalib-message › dark › each kind has its own colours, and notice is info
  • passed: base.css .uvalib-message › dark › has no axe violations
  • passed: base.css .uvalib-message › light, base.css alone › text and links reach 7:1 (AAA) on every kind
  • passed: base.css .uvalib-message › light, base.css alone › each kind has its own colours, and notice is info
  • passed: base.css .uvalib-message › light, base.css alone › has no axe violations
  • passed: base.css .uvalib-message › dark, base.css alone › text and links reach 7:1 (AAA) on every kind
  • passed: base.css .uvalib-message › dark, base.css alone › each kind has its own colours, and notice is info
  • passed: base.css .uvalib-message › dark, base.css alone › has no axe violations
test/pagefind.test.ts — 25 passed (17.9 s)
  • passed: pagefind.css with the stock Pagefind UI › looks like the library search: field, filters, titles, marks, tags, Load more
  • passed: pagefind.css with the stock Pagefind UI › has one gap left that needs script: the field's missing label
  • passed: pagefind.css with the stock Pagefind UI › hides the empty Clear button from the tab order and screen readers
  • passed: pagefind.css with the stock Pagefind UI › shows a 3px library-orange focus ring on the field, filters, links and buttons
  • passed: pagefind.css with the stock Pagefind UI › is readable in dark mode (pagefind.css carries the role tokens it reads)
  • passed: pagefind.css with the stock Pagefind UI › keeps its controls visible in forced colors
  • passed: pagefind.css with the stock Pagefind UI › reflows at 320px with no sideways scrolling
  • passed: pagefind.css with the stock Pagefind UI › keeps its text when spaced out (WCAG 1.4.12): no fixed heights clip it
  • passed: <uvalib-pagefind-search> › labels the field visibly and announces the settled result count
  • passed: <uvalib-pagefind-search> › reads ?q= when it starts and writes the settled query back
  • passed: <uvalib-pagefind-search> › leaves the URL alone with query-param=""
  • passed: <uvalib-pagefind-search> › keeps focus in the field after Clear and Escape
  • passed: <uvalib-pagefind-search> › moves focus to the first new result after Load more results
  • passed: <uvalib-pagefind-search> › reports the settled search once, and filter changes
  • passed: <uvalib-pagefind-search> › adds the trailing slash bundle paths need, here and in merge-index
  • passed: <uvalib-pagefind-search> › loads a real bundle from a bundle-path without its slash
  • passed: <uvalib-pagefind-search> › keeps its own container, and ignores JSON of the wrong shape
  • passed: <uvalib-pagefind-search> › destroys Pagefind when removed, and starts afresh when inserted again
  • passed: <uvalib-pagefind-search> › works again with the real UI after being removed and inserted
  • passed: <uvalib-pagefind-search> › holds the height of the label and field before Pagefind draws them
  • passed: <uvalib-pagefind-search> › lets Escape leave an empty field
  • passed: <uvalib-pagefind-search> › reports a cleared search, and follows Back and Forward through ?q=
  • passed: <uvalib-pagefind-search> › settles only once the results have loaded
  • passed: <uvalib-pagefind-search> › reads the count from the message, whatever digits the query holds
  • passed: <uvalib-pagefind-search> › says so, and reports it, when Pagefind cannot be loaded
test/presets.test.ts — 155 passed (60.4 s)
  • passed: playground presets › has the presets from the spec, in order
  • passed: playground presets › lists every example once, grouped by component in menu order
  • passed: playground presets › example ids are URL fragments that cannot be read as a #files= share link
  • passed: playground presets › examples cover each header variant in shadow and no-shadow-dom modes
  • passed: playground presets › main-navigation shows the default main nav and a slot="main-nav" override
  • passed: playground presets › breadcrumbs sits between the header and main; the JS example re-renders from items
  • passed: playground presets › date-histogram-decades: a decade sets the date range, Clear clears the chart, and the page passes axe
  • passed: playground presets › combobox: choosing a person and a subject fills the form, and the page passes axe
  • passed: playground presets › filter-drawer: a sidebar at 1000px, a modal panel at 400px; filters and the count work, axe passes (1000px)
  • passed: playground presets › filter-drawer: a sidebar at 1000px, a modal panel at 400px; filters and the count work, axe passes (400px)
  • passed: playground presets › back-to-top: shown after scrolling, back to the h1, and axe passes
  • passed: playground presets › places-map: Leaflet from the (stubbed) CDN draws the markers, linked to the list, and the page passes axe at 1000px
  • passed: playground presets › places-map: Leaflet from the (stubbed) CDN draws the markers, linked to the list, and the page passes axe at 400px
  • passed: playground presets › chip-groups: picking a year fires change, and the page passes axe
  • passed: playground presets › contents-sidebar and record-metadata render, follow the hash and pass axe
  • passed: playground presets › record-metadata: the long Participants list shows 8 and a Show all 34 button
  • passed: playground presets › chip-groups: the sort toggle has a description that describes its radio group
  • passed: playground presets › contents-headings builds the contents from the report headings; breadcrumbs-search renders
  • passed: playground presets › a photo grid inside a lightbox opens the viewer, and page links do too
  • passed: playground presets › image versions: the viewer compares the two versions over the photo
  • passed: playground presets › image regions: outlines over the photo, the list beside it, the page’s buttons, and the viewer
  • passed: playground presets › withCdnBase replaces every {{CDN}} token and leaves the original untouched
  • passed: playground presets › analytics logs the components' events, with no analytics element and nothing sent
  • passed: playground presets › results-toolbar filters, counts, shows the empty state and loading, and passes axe
  • passed: playground presets › results-list hides rows that do not match, marks the word, and passes axe
  • passed: playground presets › pagefind-search searches the demo index and passes axe
  • passed: playground presets › todays-hours loads the published library-list snapshot and shows hours
  • passed: playground presets › weekly-hours loads the published library-list snapshot and shows hours
  • passed: playground presets › dark-mode › opts in, and runs the anti-flash snippet in <head> next to tokens.css and base.css
  • passed: playground presets › dark-mode › the README documents the same snippet
  • passed: playground presets › dark-mode › the snippet sets data-uva-color-scheme="system" for a stored null
  • passed: playground presets › dark-mode › the snippet sets data-uva-color-scheme="dark" for a stored dark
  • passed: playground presets › dark-mode › the snippet sets data-uva-color-scheme="light" for a stored light
  • passed: playground presets › dark-mode › the snippet sets data-uva-color-scheme="system" for a stored bogus
  • passed: playground presets › dark-mode › the snippet does nothing without light-dark() support
  • passed: playground presets › dark-mode › renders the Theme control and the dark palette for a stored Dark
  • passed: playground presets › events › reserves the loaded cards' height before the script runs (390px)
  • passed: playground presets › events › reserves the loaded cards' height before the script runs (900px)
  • passed: playground presets › events › reserves the loaded cards' height before the script runs (1400px)
  • passed: playground presets › search-results › reserves the loaded results' height before the script runs (390px)
  • passed: playground presets › search-results › reserves the loaded results' height before the script runs (1280px)
  • passed: playground presets › full-page › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › full-page › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › pre-footer › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › pre-footer › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › theming › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › theming › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › light-dom-host-css › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › light-dom-host-css › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › dark-mode › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › dark-mode › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › buttons-forms › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › buttons-forms › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › back-to-top › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › back-to-top › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › vendor-header › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › vendor-header › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › site-navigation › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › site-navigation › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › site-name › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › site-name › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › main-navigation › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › main-navigation › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › header-full-shadow › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › header-full-shadow › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › header-full-light › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › header-full-light › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › header-vendor-shadow › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › header-vendor-shadow › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › header-vendor-light › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › header-vendor-light › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › alerts › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › alerts › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › breadcrumbs › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › breadcrumbs › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › breadcrumbs-standalone › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › breadcrumbs-standalone › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › breadcrumbs-search › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › breadcrumbs-search › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › collection-cards › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › collection-cards › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › photo-card › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › photo-card › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › section-pager › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › section-pager › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › numbered-pager › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › numbered-pager › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › tabs › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › tabs › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › person-cards › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › person-cards › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › story-card › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › story-card › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › load-more › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › load-more › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › load-more-unknown-total › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › load-more-unknown-total › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › chip-groups › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › chip-groups › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › contents-sidebar › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › contents-sidebar › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › contents-headings › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › contents-headings › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › record-metadata › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › record-metadata › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › photo-grid › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › photo-grid › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › photo-grid-badges › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › photo-grid-badges › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › page-images › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › page-images › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › image-regions › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › image-regions › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › image-versions › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › image-versions › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › places-map › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › places-map › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › search-facets › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › search-facets › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › search-results › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › search-results › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › pagefind-search › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › pagefind-search › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › results-toolbar › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › results-toolbar › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › results-list › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › results-list › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › date-histogram › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › date-histogram › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › date-histogram-decades › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › date-histogram-decades › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › combobox › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › combobox › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › filter-drawer › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › filter-drawer › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-filter-shadow › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-filter-shadow › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-filter-light › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-filter-light › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-date-range-shadow › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-date-range-shadow › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-date-range-light › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-date-range-light › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-date-histogram-shadow › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-date-histogram-shadow › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › uvalib-date-histogram-light › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › uvalib-date-histogram-light › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › todays-hours › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › todays-hours › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › weekly-hours › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › weekly-hours › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › events › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › events › renders against dist-cdn with defined components, one main and no errors
  • passed: playground presets › analytics › loads components through {{CDN}} and never from the internal CDN
  • passed: playground presets › analytics › renders against dist-cdn with defined components, one main and no errors
test/result-list.test.ts — 22 passed (1.1 s)
  • passed: base.css .uvalib-result-list › is a plain list: no bullets, one link per row plus named actions
  • passed: base.css .uvalib-result-list › wide: the actions sit at the end of the row, beside the title
  • passed: base.css .uvalib-result-list › phones: the actions wrap below the text, and nothing scrolls sideways at 320px
  • passed: base.css .uvalib-result-list › follows its own width: in a 250px sidebar of a wide page the actions wrap below
  • passed: base.css .uvalib-result-list › follows its own width: a list wider than a narrow page keeps its actions at the end
  • passed: base.css .uvalib-result-list › a heading title is balanced and the snippet wraps pretty; a title that is the link is not balanced
  • passed: base.css .uvalib-result-list › rows skip rendering off screen (content-visibility) with a steady placeholder size
  • passed: base.css .uvalib-result-list › renders thousands of rows: off-screen rows stay in the DOM, reachable and findable
  • passed: base.css .uvalib-result-list › forced colors: the highlight is drawn in system Highlight colours, still bold
  • passed: base.css .uvalib-result-list › a mark outside a snippet is left to the page
  • passed: base.css .uvalib-result-list › light › a highlighted term is bold and at least AA (here AAA) on its highlight
  • passed: base.css .uvalib-result-list › light › title, meta and snippet text pass AA on the page
  • passed: base.css .uvalib-result-list › light › has no axe violations
  • passed: base.css .uvalib-result-list › dark › a highlighted term is bold and at least AA (here AAA) on its highlight
  • passed: base.css .uvalib-result-list › dark › title, meta and snippet text pass AA on the page
  • passed: base.css .uvalib-result-list › dark › has no axe violations
  • passed: base.css .uvalib-result-list › light, base.css alone › a highlighted term is bold and at least AA (here AAA) on its highlight
  • passed: base.css .uvalib-result-list › light, base.css alone › title, meta and snippet text pass AA on the page
  • passed: base.css .uvalib-result-list › light, base.css alone › has no axe violations
  • passed: base.css .uvalib-result-list › dark, base.css alone › a highlighted term is bold and at least AA (here AAA) on its highlight
  • passed: base.css .uvalib-result-list › dark, base.css alone › title, meta and snippet text pass AA on the page
  • passed: base.css .uvalib-result-list › dark, base.css alone › has no axe violations
test/results-classes.test.ts — 25 passed (551 ms)
  • passed: base.css badges, toolbar, empty state and skeletons › the category badge is the uvalib-card chip: same colours, shape and size
  • passed: base.css badges, toolbar, empty state and skeletons › status badges differ by more than colour: each has its own word, and a decorative icon
  • passed: base.css badges, toolbar, empty state and skeletons › the toolbar puts the controls in one row and the summary at the end
  • passed: base.css badges, toolbar, empty state and skeletons › at 28em a search form and a growing field stack full width too
  • passed: base.css badges, toolbar, empty state and skeletons › hidden hides every class, though each sets display
  • passed: base.css badges, toolbar, empty state and skeletons › the toolbar stacks at 320px with no horizontal scroll
  • passed: base.css badges, toolbar, empty state and skeletons › the toolbar follows its own width: in a 250px sidebar of a wide page it stacks
  • passed: base.css badges, toolbar, empty state and skeletons › the toolbar follows its own width: wider than a narrow page, it stays a row
  • passed: base.css badges, toolbar, empty state and skeletons › the empty state heading is balanced and its sentence wraps pretty; badges are not balanced
  • passed: base.css badges, toolbar, empty state and skeletons › the empty state centres a heading, a sentence and an action
  • passed: base.css badges, toolbar, empty state and skeletons › skeletons reserve their height: a 3:2 box, and a text line as tall as a line of text
  • passed: base.css badges, toolbar, empty state and skeletons › reduced motion: no shimmer
  • passed: base.css badges, toolbar, empty state and skeletons › forced colors: badges and skeletons keep a visible border
  • passed: base.css badges, toolbar, empty state and skeletons › light › every badge has a text label at AA or better; status badges reach AAA
  • passed: base.css badges, toolbar, empty state and skeletons › light › a count badge on media is AAA over a white or a black image
  • passed: base.css badges, toolbar, empty state and skeletons › light › has no axe violations
  • passed: base.css badges, toolbar, empty state and skeletons › dark › every badge has a text label at AA or better; status badges reach AAA
  • passed: base.css badges, toolbar, empty state and skeletons › dark › a count badge on media is AAA over a white or a black image
  • passed: base.css badges, toolbar, empty state and skeletons › dark › has no axe violations
  • passed: base.css badges, toolbar, empty state and skeletons › light, base.css alone › every badge has a text label at AA or better; status badges reach AAA
  • passed: base.css badges, toolbar, empty state and skeletons › light, base.css alone › a count badge on media is AAA over a white or a black image
  • passed: base.css badges, toolbar, empty state and skeletons › light, base.css alone › has no axe violations
  • passed: base.css badges, toolbar, empty state and skeletons › dark, base.css alone › every badge has a text label at AA or better; status badges reach AAA
  • passed: base.css badges, toolbar, empty state and skeletons › dark, base.css alone › a count badge on media is AAA over a white or a black image
  • passed: base.css badges, toolbar, empty state and skeletons › dark, base.css alone › has no axe violations
test/search-tracker.test.ts — 12 passed (749 ms)
  • passed: createSearchTracker › is exported from base.js and analytics.js
  • passed: createSearchTracker › typed: sends once the query has stayed the same for the debounce
  • passed: createSearchTracker › defaults to a 1 s debounce
  • passed: createSearchTracker › settled: sends at once, and drops a typed search still waiting
  • passed: createSearchTracker › a count of 0 is sent; an unknown or invalid count is left out
  • passed: createSearchTracker › never twice in a row for the same key (Enter again, a re-render)
  • passed: createSearchTracker › restored: a search from the URL or Back/Forward is not sent, nor the same one again
  • passed: createSearchTracker › cancel (a clear or an error) drops the waiting search; reset makes the same one count
  • passed: createSearchTracker › an empty query is never sent, and typing one cancels the waiting search
  • passed: createSearchTracker › reports from `element`, so a no-analytics ancestor silences it
  • passed: createSearchTracker › follows the page opt-out
  • passed: createSearchTracker › sends the query only as the site-search keyword, never as an event
test/share.test.ts — 13 passed (314 ms)
  • passed: share link encoding › round-trips ascii content
  • passed: share link encoding › round-trips non-ASCII content
  • passed: share link encoding › round-trips 50 KB file content
  • passed: share link encoding › rejects links that are not playground projects › a hash longer than 256 KB, before decoding it
  • passed: share link encoding › rejects links that are not playground projects › a high-ratio payload that inflates past 2 MB
  • passed: share link encoding › rejects links that are not playground projects › valid base64url that is not deflate data
  • passed: share link encoding › rejects links that are not playground projects › text that is not base64url
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of an array
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of an empty object
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of no index.html
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of a non-string content
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of a null file
  • passed: share link encoding › rejects links that are not playground projects › well-formed deflate of not JSON
test/site-alerts.test.ts — 53 passed (4.0 s)
  • passed: site-alerts (shadow) › renders the banner, the list and the regional alerts by default
  • passed: site-alerts (shadow) › lists the most severe first, with severity in text, not colour alone
  • passed: site-alerts (shadow) › show picks the parts
  • passed: site-alerts (shadow) › titles are h2 by default; heading-level sets the level
  • passed: site-alerts (shadow) › critical alerts have no dismiss button; others are named for their alert
  • passed: site-alerts (shadow) › dismiss calls dismiss(uuid) and moves focus to the next alert, never <body>
  • passed: site-alerts (shadow) › with no alert left, focus goes to <main>
  • passed: site-alerts (shadow) › shows Information alerts until closed here, though the headless element counts them seen
  • passed: site-alerts (shadow) › hides a Warning the headless element has as seen; keeps Critical alerts
  • passed: site-alerts (shadow) › follows a close in another tab (storage event)
  • passed: site-alerts (shadow) › forgets closed alerts that are no longer in the data
  • passed: site-alerts (shadow) › a <site-alerts> moved in the page keeps the same shared headless element
  • passed: site-alerts (shadow) › re-renders on update events and fires site-alerts-change with the count
  • passed: site-alerts (shadow) › a status change (offline) renders nothing new
  • passed: site-alerts (shadow) › inserts the body HTML (links kept)
  • passed: site-alerts (shadow) › no-style keeps the severity text visually hidden and the icons sized
  • passed: site-alerts (shadow) › at 320px nothing overflows and the dismiss button clears the text
  • passed: site-alerts (shadow) › forced colors: every alert keeps a system-colour border
  • passed: site-alerts (light) › renders the banner, the list and the regional alerts by default
  • passed: site-alerts (light) › lists the most severe first, with severity in text, not colour alone
  • passed: site-alerts (light) › show picks the parts
  • passed: site-alerts (light) › titles are h2 by default; heading-level sets the level
  • passed: site-alerts (light) › critical alerts have no dismiss button; others are named for their alert
  • passed: site-alerts (light) › dismiss calls dismiss(uuid) and moves focus to the next alert, never <body>
  • passed: site-alerts (light) › with no alert left, focus goes to <main>
  • passed: site-alerts (light) › shows Information alerts until closed here, though the headless element counts them seen
  • passed: site-alerts (light) › hides a Warning the headless element has as seen; keeps Critical alerts
  • passed: site-alerts (light) › follows a close in another tab (storage event)
  • passed: site-alerts (light) › forgets closed alerts that are no longer in the data
  • passed: site-alerts (light) › a <site-alerts> moved in the page keeps the same shared headless element
  • passed: site-alerts (light) › re-renders on update events and fires site-alerts-change with the count
  • passed: site-alerts (light) › a status change (offline) renders nothing new
  • passed: site-alerts (light) › inserts the body HTML (links kept)
  • passed: site-alerts (light) › no-style keeps the severity text visually hidden and the icons sized
  • passed: site-alerts (light) › at 320px nothing overflows and the dismiss button clears the text
  • passed: site-alerts (light) › forced colors: every alert keeps a system-colour border
  • passed: site-alerts shared headless element › one <uvalib-alerts headless> feeds every <site-alerts>, and goes with the last
  • passed: site-alerts shared headless element › a different storage-key or base gets its own element
  • passed: site-alerts shared headless element › dismissing in one element updates the others
  • passed: site-alerts shared headless element › warns once for an invalid alerts-env and uses production
  • passed: site-alerts body sanitizing › uses setHTML() with the allowlist where the browser has it
  • passed: site-alerts script load failure › warns once, renders nothing and leaves the page alone
  • passed: site-alerts accessibility › shadow, light: no axe violations at any impact; text AAA
  • passed: site-alerts accessibility › shadow, dark: no axe violations at any impact; text AAA
  • passed: site-alerts accessibility › light, light: no axe violations at any impact; text AAA
  • passed: site-alerts accessibility › light, dark: no axe violations at any impact; text AAA
  • passed: site-alerts analytics › one content impression per alert shown, never twice across elements or re-renders
  • passed: site-alerts analytics › only alerts an element actually shows are reported
  • passed: site-alerts analytics › dismiss sends one event; no impression or event for the dismissed alert after that
  • passed: site-alerts analytics › a link click in an alert body: link-click with the alert, never the URL
  • passed: site-alerts analytics › opted out (no-analytics): alerts are shown, nothing is reported
  • passed: site-alerts analytics › opted out (page): alerts are shown, nothing is reported
  • passed: site-alerts analytics › names are capped at 100 characters
test/site-analytics-downloads.test.ts — 13 passed (326 ms)
  • passed: <site-analytics downloads="event"> › site-analytics: no Matomo link tracking or download extensions; the page view as before
  • passed: <site-analytics downloads="event"> › uvalib-analytics: no Matomo link tracking or download extensions; the page view as before
  • passed: <site-analytics downloads="event"> › a click on a download sends [download, <extension>], never a URL or file name
  • passed: <site-analytics downloads="event"> › a middle click counts too; a right-button auxclick does not
  • passed: <site-analytics downloads="event"> › outlinks are still sent (trackLink), as Matomo link tracking would
  • passed: <site-analytics downloads="event"> › matomo_ignore and no-analytics links send nothing
  • passed: <site-analytics downloads="event"> › data-uvalib-track on a download link sends its own event as well
  • passed: <site-analytics downloads="event"> › a download link in shadow DOM counts; a shadow outlink is not sent (Matomo never saw it)
  • passed: <site-analytics downloads="event"> › with spa: download events, and no outlinks (link tracking stays off, as before)
  • passed: <site-analytics downloads="event"> › default (no downloads attribute): unchanged, Matomo tracks the links itself
  • passed: <site-analytics downloads="event"> › Do Not Track: nothing at all
  • passed: <site-analytics downloads="event"> › <site-page matomo-downloads="event"> passes it on (shadow)
  • passed: <site-analytics downloads="event"> › <site-page matomo-downloads="event"> passes it on (light)
test/site-analytics-v2.test.ts — 21 passed (717 ms)
  • passed: analytics opt-out › allowed by default: every helper fires
  • passed: analytics opt-out › <html data-uvalib-analytics="off">: nothing fired
  • passed: analytics opt-out › no-analytics on the element or an ancestor, across shadow hosts
  • passed: analytics opt-out › doNotTrack: no matomo.js, no page view, nothing fired or forwarded
  • passed: analytics opt-out › globalPrivacyControl: no matomo.js, no page view, nothing fired or forwarded
  • passed: analytics opt-out › doNotTrack other than "1" and globalPrivacyControl false do not opt out
  • passed: analytics opt-out › the page opt-out: no matomo.js, no page view, nothing forwarded
  • passed: analytics opt-out › no-analytics around a hand-fired event: not forwarded
  • passed: analytics opt-out › names are cut to 100 characters; trackError reports each kind once per element
  • passed: data-uvalib-track › light DOM: the nearest tagged element sends its event; value is a number
  • passed: data-uvalib-track › shadow DOM: a tagged element inside a shadow root, and a tagged host
  • passed: data-uvalib-track › a click whose propagation a component stops is still seen
  • passed: data-uvalib-track › one event per click with two analytics elements; opt-outs apply
  • passed: data-uvalib-track › without an analytics element nothing is fired
  • passed: spa="auto" page views › a view on load, then one per route change with the title and the previous URL
  • passed: spa="auto" page views › no view for the same URL again, or for replaceState
  • passed: spa="auto" page views › a privacy signal turned on mid-session stops automatic and hand-fired views
  • passed: spa="auto" page views › a page view fired from inside a no-analytics subtree is not recorded
  • passed: spa="auto" page views › pushState is wrapped once, however many elements (or copies) listen
  • passed: spa="auto" page views › bare spa: no views on load or on route changes; a removed element stops
  • passed: spa="auto" page views › Do Not Track: no views on route changes either
test/site-analytics.test.ts — 19 passed (167 ms)
  • passed: findMatomoId › matches by url prefix
  • passed: findMatomoId › falls back to the matomoDefault site
  • passed: <uvalib-analytics> / <site-analytics> › registers uvalib-analytics as a subclass of the same element
  • passed: <uvalib-analytics> / <site-analytics> › legacy Drupal markup: the queue in order, one script, one page view
  • passed: <uvalib-analytics> / <site-analytics> › matomourl and variables: dimensions before the page view
  • passed: <uvalib-analytics> / <site-analytics> › without matomoid uses the site the page URL belongs to
  • passed: <uvalib-analytics> / <site-analytics> › forwards both event families, detail.track, and unknown counts as false
  • passed: <uvalib-analytics> / <site-analytics> › forwards content impressions and interactions (both families)
  • passed: <uvalib-analytics> / <site-analytics> › two elements: each content impression is forwarded once
  • passed: <uvalib-analytics> / <site-analytics> › queues events fired before matomo.js loads (even before the first render)
  • passed: <uvalib-analytics> / <site-analytics> › spa: no page view on load; pageview events set the title and referrer
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › two elements: one script, one page view, each event once
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › the next element takes over when the forwarding one is removed
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › a removed and re-appended element still forwards
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › a Matomo snippet already on the page: nothing loaded or recorded again
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › a matomo.js script already on the page: no second script or page view
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › another copy of the library (shared state) already tracks: this one stands by
  • passed: <uvalib-analytics> / <site-analytics> › one tracker per page › removed listeners: a disconnected element forwards nothing
  • passed: <uvalib-analytics> / <site-analytics> › mixins › UvalibAnalyticsMixin fires uvalib-analytics-*, SiteAnalyticsMixin site-analytics-*
test/site-footer.test.ts — 25 passed (484 ms)
  • passed: site-footer (shadow) › builds absolute links from root-link-domain
  • passed: site-footer (shadow) › links tel, mailto, social and FDLP correctly
  • passed: site-footer (shadow) › shows the current address and live year
  • passed: site-footer (shadow) › restores the old social icon size, FDLP logo width and italic address
  • passed: site-footer (shadow) › centres each column content within its 300px block at 1280
  • passed: site-footer (shadow) › hides .footer--pre without pre-footer content
  • passed: site-footer (shadow) › shows .footer--pre with pre-footer content
  • passed: site-footer (shadow) › counts only flattened assigned content (shadow) so a forwarded empty slot stays hidden
  • passed: site-footer (shadow) › moves/shows a late-appended pre-footer child
  • passed: site-footer (shadow) › has only h2 headings, no skipped levels
  • passed: site-footer (shadow) › has no axe violations with pre-footer content
  • passed: site-footer (shadow) › has no axe violations without pre-footer content
  • passed: site-footer (light) › builds absolute links from root-link-domain
  • passed: site-footer (light) › links tel, mailto, social and FDLP correctly
  • passed: site-footer (light) › shows the current address and live year
  • passed: site-footer (light) › restores the old social icon size, FDLP logo width and italic address
  • passed: site-footer (light) › centres each column content within its 300px block at 1280
  • passed: site-footer (light) › hides .footer--pre without pre-footer content
  • passed: site-footer (light) › shows .footer--pre with pre-footer content
  • passed: site-footer (light) › counts only flattened assigned content (shadow) so a forwarded empty slot stays hidden
  • passed: site-footer (light) › moves/shows a late-appended pre-footer child
  • passed: site-footer (light) › has only h2 headings, no skipped levels
  • passed: site-footer (light) › has no axe violations with pre-footer content
  • passed: site-footer (light) › has no axe violations without pre-footer content
  • passed: site-footer ids › two light-mode footers produce no duplicate ids
test/site-header-alerts.test.ts — 19 passed (679 ms)
  • passed: site-header alerts slot (shadow) › a standalone header renders no alerts of its own
  • passed: site-header alerts slot (shadow) › puts a slot="alerts" child inside <header>, before the logo
  • passed: site-header alerts slot (shadow) › lays the alerts out full-bleed above the logo row at 1280px
  • passed: site-header alerts slot (shadow) › lays the alerts out full-bleed above the logo row at 768px
  • passed: site-header alerts slot (shadow) › lays the alerts out full-bleed above the logo row at 390px
  • passed: site-header geometry without alert content (shadow) › keeps main's single logo row: full header at 320px
  • passed: site-header geometry without alert content (shadow) › keeps main's single logo row: vendor header at 360px
  • passed: site-header geometry without alert content (shadow) › keeps main's single logo row: six site links at 1000px
  • passed: site-header geometry without alert content (shadow) › keeps an open Menu popover out of flow
  • passed: site-header geometry without alert content (shadow) › keeps a slotted skip link out of flow
  • passed: site-header alerts slot (light) › a standalone header renders no alerts of its own
  • passed: site-header alerts slot (light) › puts a slot="alerts" child inside <header>, before the logo
  • passed: site-header alerts slot (light) › lays the alerts out full-bleed above the logo row at 1280px
  • passed: site-header alerts slot (light) › lays the alerts out full-bleed above the logo row at 768px
  • passed: site-header alerts slot (light) › lays the alerts out full-bleed above the logo row at 390px
  • passed: site-header geometry without alert content (light) › keeps main's single logo row: full header at 320px
  • passed: site-header geometry without alert content (light) › keeps main's single logo row: vendor header at 360px
  • passed: site-header geometry without alert content (light) › keeps main's single logo row: six site links at 1000px
  • passed: site-header geometry without alert content (light) › keeps an open Menu popover out of flow
test/site-header-double-define.test.ts — 1 passed (53 ms)
  • passed: site-header with another build of site-main-nav already defined › warns once
test/site-header-main-nav.test.ts — 66 passed (6.8 s)
  • passed: site-header main navigation (shadow) › renders the main nav as a row inside <header>, and an accordion in the Menu popover
  • passed: site-header main navigation (shadow) › forwards root-link-domain, main-nav-label and main-nav-src
  • passed: site-header main navigation (shadow) › fires one site-main-nav-error from the header when main-nav-src fails
  • passed: site-header main navigation (shadow) › no-main-nav renders exactly the header main renders today
  • passed: site-header main navigation (shadow) › turning no-main-nav on and off later removes and restores it
  • passed: site-header main navigation (shadow) › the vendor variant has no main nav
  • passed: site-header main navigation (shadow) › forwards slot="main-nav" markup to both instances, live, and keeps the source hidden
  • passed: site-header main navigation (shadow) › warns once about invalid slot="main-nav" entries
  • passed: site-header main navigation (shadow) › has no axe violations at any impact at 1280px, closed
  • passed: site-header main navigation (shadow) › has no axe violations at any impact at 1280px, open
  • passed: site-header main navigation (shadow) › has no axe violations at any impact at 390px, closed
  • passed: site-header main navigation (shadow) › has no axe violations at any impact at 390px, open
  • passed: site-header main navigation (shadow) › Menu popover at 390px › shows the main nav accordion first, then the utility links
  • passed: site-header main navigation (shadow) › Menu popover at 390px › shows site links after the main nav
  • passed: site-header main navigation (shadow) › Menu popover at 390px › a click on a link in the popover closes it; a modified click keeps it open
  • passed: site-header main navigation (shadow) › Menu popover at 390px › Escape closes an open accordion group before the popover
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 1280px
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 1000px
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 993px
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 992px
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 768px
  • passed: site-header main navigation (shadow) › geometry › keeps the logo row on one line at 390px
  • passed: site-header main navigation (shadow) › geometry › puts the main nav row under the logo row, full-bleed, at 1280px
  • passed: site-header main navigation (shadow) › geometry › puts the main nav row under the logo row, full-bleed, at 1000px
  • passed: site-header main navigation (shadow) › geometry › puts the main nav row under the logo row, full-bleed, at 993px
  • passed: site-header main navigation (shadow) › geometry › keeps the header exactly as tall as with no-main-nav at 992px
  • passed: site-header main navigation (shadow) › geometry › keeps the header exactly as tall as with no-main-nav at 768px
  • passed: site-header main navigation (shadow) › geometry › keeps the header exactly as tall as with no-main-nav at 390px
  • passed: site-header main navigation (shadow) › geometry › adds the main nav row (0.5rem gap, 53.5px) to the header height at 1280px
  • passed: site-header main navigation (shadow) › geometry › floats an open panel over the content without growing the header
  • passed: site-header main navigation (light) › renders the main nav as a row inside <header>, and an accordion in the Menu popover
  • passed: site-header main navigation (light) › forwards root-link-domain, main-nav-label and main-nav-src
  • passed: site-header main navigation (light) › fires one site-main-nav-error from the header when main-nav-src fails
  • passed: site-header main navigation (light) › no-main-nav renders exactly the header main renders today
  • passed: site-header main navigation (light) › turning no-main-nav on and off later removes and restores it
  • passed: site-header main navigation (light) › the vendor variant has no main nav
  • passed: site-header main navigation (light) › forwards slot="main-nav" markup to both instances, live, and keeps the source hidden
  • passed: site-header main navigation (light) › warns once about invalid slot="main-nav" entries
  • passed: site-header main navigation (light) › has no axe violations at any impact at 1280px, closed
  • passed: site-header main navigation (light) › has no axe violations at any impact at 1280px, open
  • passed: site-header main navigation (light) › has no axe violations at any impact at 390px, closed
  • passed: site-header main navigation (light) › has no axe violations at any impact at 390px, open
  • passed: site-header main navigation (light) › Menu popover at 390px › shows the main nav accordion first, then the utility links
  • passed: site-header main navigation (light) › Menu popover at 390px › shows site links after the main nav
  • passed: site-header main navigation (light) › Menu popover at 390px › a click on a link in the popover closes it; a modified click keeps it open
  • passed: site-header main navigation (light) › Menu popover at 390px › Escape closes an open accordion group before the popover
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 1280px
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 1000px
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 993px
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 992px
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 768px
  • passed: site-header main navigation (light) › geometry › keeps the logo row on one line at 390px
  • passed: site-header main navigation (light) › geometry › puts the main nav row under the logo row, full-bleed, at 1280px
  • passed: site-header main navigation (light) › geometry › puts the main nav row under the logo row, full-bleed, at 1000px
  • passed: site-header main navigation (light) › geometry › puts the main nav row under the logo row, full-bleed, at 993px
  • passed: site-header main navigation (light) › geometry › keeps the header exactly as tall as with no-main-nav at 992px
  • passed: site-header main navigation (light) › geometry › keeps the header exactly as tall as with no-main-nav at 768px
  • passed: site-header main navigation (light) › geometry › keeps the header exactly as tall as with no-main-nav at 390px
  • passed: site-header main navigation (light) › geometry › adds the main nav row (0.5rem gap, 53.5px) to the header height at 1280px
  • passed: site-header main navigation (light) › geometry › floats an open panel over the content without growing the header
  • passed: site-header no-main-nav: raw markup identical to main › shadow, default links
  • passed: site-header no-main-nav: raw markup identical to main › shadow, site links
  • passed: site-header no-main-nav: raw markup identical to main › shadow, vendor
  • passed: site-header no-main-nav: raw markup identical to main › light, default links
  • passed: site-header no-main-nav: raw markup identical to main › light, site links
  • passed: site-header no-main-nav: raw markup identical to main › light, vendor
test/site-header-site-name.test.ts — 43 passed (1.7 s)
  • passed: site-header site-name (shadow) › links the name to the site home (default /) and keeps the logo on the library
  • passed: site-header site-name (shadow) › uses site-name-href, and renders nothing for an empty name
  • passed: site-header site-name (shadow) › vendor variant shows it too
  • passed: site-header site-name (shadow) › reports ['site-header', 'site-name-click'], never the URL
  • passed: site-header site-name (shadow) › keeps the header height and the nav inside it at 1280px
  • passed: site-header site-name (shadow) › keeps the header height and the nav inside it at 1200px
  • passed: site-header site-name (shadow) › keeps the header height and the nav inside it at 1199px
  • passed: site-header site-name (shadow) › keeps the header height and the nav inside it at 993px
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 993px with color-scheme-switch
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 1100px with color-scheme-switch
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 1199px with color-scheme-switch
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 993px with 6 site links
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 1100px with 6 site links
  • passed: site-header site-name (shadow) › never overflows or wraps the links at 1199px with 6 site links
  • passed: site-header site-name (shadow) › stacks only while crowded, following the width
  • passed: site-header site-name (shadow) › wraps under the logo at 320px with no horizontal scroll (full)
  • passed: site-header site-name (shadow) › wraps under the logo at 320px with no horizontal scroll (vendor)
  • passed: site-header site-name (shadow) › has no axe violations, wide and narrow
  • passed: site-page site-name (shadow) › forwards site-name and site-name-href to its header
  • passed: site-page site-name (shadow) › has no page axe violations in light mode
  • passed: site-page site-name (shadow) › has no page axe violations in dark mode
  • passed: site-header site-name (light) › links the name to the site home (default /) and keeps the logo on the library
  • passed: site-header site-name (light) › uses site-name-href, and renders nothing for an empty name
  • passed: site-header site-name (light) › vendor variant shows it too
  • passed: site-header site-name (light) › reports ['site-header', 'site-name-click'], never the URL
  • passed: site-header site-name (light) › keeps the header height and the nav inside it at 1280px
  • passed: site-header site-name (light) › keeps the header height and the nav inside it at 1200px
  • passed: site-header site-name (light) › keeps the header height and the nav inside it at 1199px
  • passed: site-header site-name (light) › keeps the header height and the nav inside it at 993px
  • passed: site-header site-name (light) › never overflows or wraps the links at 993px with color-scheme-switch
  • passed: site-header site-name (light) › never overflows or wraps the links at 1100px with color-scheme-switch
  • passed: site-header site-name (light) › never overflows or wraps the links at 1199px with color-scheme-switch
  • passed: site-header site-name (light) › never overflows or wraps the links at 993px with 6 site links
  • passed: site-header site-name (light) › never overflows or wraps the links at 1100px with 6 site links
  • passed: site-header site-name (light) › never overflows or wraps the links at 1199px with 6 site links
  • passed: site-header site-name (light) › stacks only while crowded, following the width
  • passed: site-header site-name (light) › wraps under the logo at 320px with no horizontal scroll (full)
  • passed: site-header site-name (light) › wraps under the logo at 320px with no horizontal scroll (vendor)
  • passed: site-header site-name (light) › has no axe violations, wide and narrow
  • passed: site-page site-name (light) › forwards site-name and site-name-href to its header
  • passed: site-page site-name (light) › has no page axe violations in light mode
  • passed: site-page site-name (light) › has no page axe violations in dark mode
  • passed: site-header site-name (light) on and off › keeps the moved alerts and the site links when the template changes
test/site-header.test.ts — 38 passed (453 ms)
  • passed: site-header (shadow) › builds links from root-link-domain
  • passed: site-header (shadow) › uses no ARIA menu roles
  • passed: site-header (shadow) › full variant has 6 utility links and a menu toggle
  • passed: site-header (shadow) › vendor variant has only Ask a Librarian and no toggle
  • passed: site-header (shadow) › toggle opens and closes the popover
  • passed: site-header (shadow) › anchors the popover only inside @supports, keeping a fixed fallback
  • passed: site-header (shadow) › has no axe violations
  • passed: site-header (shadow) › old look › utility links use the old teal-blue (--uva-blue-alt-dark #005679)
  • passed: site-header (shadow) › old look › logo renders at 225x51
  • passed: site-header (shadow) › old look › logo and nav sit at the old vertical offset
  • passed: site-header (shadow) › at 390x844 › keeps the vendor link visible and inside the viewport
  • passed: site-header (shadow) › at 390x844 › logo renders at 225x51
  • passed: site-header (shadow) › at 390x844 › full variant shows the toggle and hides the inline nav
  • passed: site-header (shadow) › at 390x844 › opens the popover inside the viewport, below the toggle
  • passed: site-header (shadow) › at 390x844 › has no axe violations with the Menu popover open
  • passed: site-header (shadow) › layout › toggle sits at the right edge at 390x844
  • passed: site-header (shadow) › layout › nav and logo hug the edges at 1280x900
  • passed: site-header (light) › builds links from root-link-domain
  • passed: site-header (light) › uses no ARIA menu roles
  • passed: site-header (light) › full variant has 6 utility links and a menu toggle
  • passed: site-header (light) › vendor variant has only Ask a Librarian and no toggle
  • passed: site-header (light) › toggle opens and closes the popover
  • passed: site-header (light) › anchors the popover only inside @supports, keeping a fixed fallback
  • passed: site-header (light) › has no axe violations
  • passed: site-header (light) › old look › utility links use the old teal-blue (--uva-blue-alt-dark #005679)
  • passed: site-header (light) › old look › logo renders at 225x51
  • passed: site-header (light) › old look › logo and nav sit at the old vertical offset
  • passed: site-header (light) › at 390x844 › keeps the vendor link visible and inside the viewport
  • passed: site-header (light) › at 390x844 › logo renders at 225x51
  • passed: site-header (light) › at 390x844 › full variant shows the toggle and hides the inline nav
  • passed: site-header (light) › at 390x844 › opens the popover inside the viewport, below the toggle
  • passed: site-header (light) › at 390x844 › has no axe violations with the Menu popover open
  • passed: site-header (light) › layout › toggle sits at the right edge at 390x844
  • passed: site-header (light) › layout › nav and logo hug the edges at 1280x900
  • passed: site-header component styles stay layered (light) › an unlayered host rule of lower specificity beats a component rule
  • passed: site-header component styles stay layered (light) › installs the component sheet inside @layer uvalib
  • passed: standalone site-header (shadow) › renders no skip link
  • passed: site-header ids › gives light-DOM instances distinct popover ids
test/site-hours-section.test.ts — 32 passed (2.4 s)
  • passed: site-hours-section › lists every library without limited, with site links, sanitised hours information and a calm fallback
  • passed: site-hours-section › filters by place-type, reactively
  • passed: site-hours-section › makes one LibCal request for today
  • passed: site-hours-section › fires got-library-hours and got-libraries (bubbling, composed)
  • passed: site-hours-section › keeps --site-hours-list-min-height for the list only while loading
  • passed: site-hours-section › shows a polite loading status
  • passed: site-hours-section › shows a calm message when data is unavailable (hours-fail.test)
  • passed: site-hours-section › shows a calm message when data is unavailable (hours-empty.test)
  • passed: site-hours-section › exposes the shared endpoints on the element class for repointing
  • passed: site-hours-section › marks libraries with a calendar unavailable when LibCal fails
  • passed: site-hours-section › refreshes when the New York date rolls over
  • passed: site-hours-section › keeps showing the old date and hours until the new day’s hours arrive
  • passed: site-hours-section › recovers from an error on the date check, without announcing
  • passed: site-hours-section › shows the error when a fetch times out
  • passed: site-hours-section › gives each library its own copy of identical hours information
  • passed: site-hours-section › links Drupal entity:node site links as /node/N
  • passed: site-hours-section › starts in the loading state, read-only
  • passed: site-hours-section › shadow › renders the live DOM structure with today’s hours
  • passed: site-hours-section › shadow › passes axe
  • passed: site-hours-section › shadow no-style › renders the live DOM structure with today’s hours
  • passed: site-hours-section › shadow no-style › passes axe
  • passed: site-hours-section › light no-style › renders the live DOM structure with today’s hours
  • passed: site-hours-section › light no-style › passes axe
  • passed: site-hours-section › light › renders the live DOM structure with today’s hours
  • passed: site-hours-section › light › passes axe
  • passed: site-hours-section › heading-level › heading-level="2" renders the heading as h2
  • passed: site-hours-section › heading-level › heading-level="6" renders the heading as h6
  • passed: site-hours-section › heading-level › heading-level="1" renders the heading as h2
  • passed: site-hours-section › heading-level › heading-level="9" renders the heading as h6
  • passed: site-hours-section › heading-level › heading-level="x" renders the heading as h3
  • passed: site-hours-section › heading-level › fits under the page h1 with heading-level="2" (shadow)
  • passed: site-hours-section › heading-level › fits under the page h1 with heading-level="2" (no-shadow-dom)
test/site-links.test.ts — 49 passed (3.1 s)
  • passed: site-header site links (shadow) › renders exactly the site links, in order, in the inline nav and the popover
  • passed: site-header site links (shadow) › copies target, rel and hreflang, and only when present
  • passed: site-header site links (shadow) › resolves site links as written, not against root-link-domain
  • passed: site-header site links (shadow) › labels both navs "Site" by default
  • passed: site-header site links (shadow) › labels both navs from site-links-label
  • passed: site-header site links (shadow) › keeps the source anchors out of view
  • passed: site-header site links (shadow) › without site links, the header markup is unchanged and the six library links show
  • passed: site-header site links (shadow) › a site-links-label alone changes nothing
  • passed: site-header site links (shadow) › updates both lists when links are added, removed or changed
  • passed: site-header site links (shadow) › falls back to the library links when the last site link is removed
  • passed: site-header site links (shadow) › picks up site links added to a header that had none
  • passed: site-header site links (shadow) › the vendor variant ignores site links
  • passed: site-header site links (shadow) › ignores site links with empty or whitespace-only text, warning once
  • passed: site-header site links (shadow) › ignores site-links children that are not <a href>, warning once
  • passed: site-header site links (shadow) › has no axe violations with site links
  • passed: site-header site links (shadow) › current page › marks aria-current="page" with more than colour
  • passed: site-header site links (shadow) › current page › styles aria-current in the popover too
  • passed: site-page site links (shadow) › forwards the site links and site-links-label to its header
  • passed: site-page site links (shadow) › defaults the label to "Site" and sets no attribute
  • passed: site-page site links (shadow) › without site links, the header keeps the library links
  • passed: site-page site links (shadow) › the forwarded slot flattens to the page’s anchors
  • passed: site-page site links (shadow) › routes site links added later to the header, not into main
  • passed: site-page site links (shadow) › picks up site links added to a page that had none
  • passed: site-page site links (shadow) › a vendor page ignores site links
  • passed: site-page site links (shadow) › has no axe violations, including landmark rules, on a full page with site links
  • passed: site-header site links (light) › renders exactly the site links, in order, in the inline nav and the popover
  • passed: site-header site links (light) › copies target, rel and hreflang, and only when present
  • passed: site-header site links (light) › resolves site links as written, not against root-link-domain
  • passed: site-header site links (light) › labels both navs "Site" by default
  • passed: site-header site links (light) › labels both navs from site-links-label
  • passed: site-header site links (light) › keeps the source anchors out of view
  • passed: site-header site links (light) › without site links, the header markup is unchanged and the six library links show
  • passed: site-header site links (light) › a site-links-label alone changes nothing
  • passed: site-header site links (light) › updates both lists when links are added, removed or changed
  • passed: site-header site links (light) › falls back to the library links when the last site link is removed
  • passed: site-header site links (light) › picks up site links added to a header that had none
  • passed: site-header site links (light) › the vendor variant ignores site links
  • passed: site-header site links (light) › ignores site links with empty or whitespace-only text, warning once
  • passed: site-header site links (light) › ignores site-links children that are not <a href>, warning once
  • passed: site-header site links (light) › has no axe violations with site links
  • passed: site-header site links (light) › current page › marks aria-current="page" with more than colour
  • passed: site-header site links (light) › current page › styles aria-current in the popover too
  • passed: site-page site links (light) › forwards the site links and site-links-label to its header
  • passed: site-page site links (light) › defaults the label to "Site" and sets no attribute
  • passed: site-page site links (light) › without site links, the header keeps the library links
  • passed: site-page site links (light) › routes site links added later to the header, not into main
  • passed: site-page site links (light) › picks up site links added to a page that had none
  • passed: site-page site links (light) › a vendor page ignores site links
  • passed: site-page site links (light) › has no axe violations, including landmark rules, on a full page with site links
test/site-main-nav-focus.test.ts — 7 passed (1.1 s)
  • passed: site-main-nav focus rings (shadow) › keeps 3:1 against the background on a closed toggle, an expanded toggle and a panel link
  • passed: site-main-nav focus rings (shadow) › keeps the ring inside the control (outline-offset -4px)
  • passed: site-main-nav focus rings (light) › keeps 3:1 against the background on a closed toggle, an expanded toggle and a panel link
  • passed: site-main-nav focus rings (light) › keeps the ring inside the control (outline-offset -4px)
  • passed: site-main-nav focus rings inside a light-mode site-page › match shadow mode although the page installs the unlayered accessibility sheet
  • passed: site-main-nav in forced colors (shadow) › gives the open panel an edge and the expanded button a visible outline
  • passed: site-main-nav in forced colors (light) › gives the open panel an edge and the expanded button a visible outline
test/site-main-nav-state.test.ts — 26 passed (5.7 s)
  • passed: site-main-nav state (shadow) › still closes on an outside press after being moved while open
  • passed: site-main-nav state (shadow) › closes the open group when .items changes
  • passed: site-main-nav state (shadow) › closes the open group when the slotted markup changes
  • passed: site-main-nav state (shadow) › keeps the newest items-src when it changes mid-fetch
  • passed: site-main-nav state (shadow) › current page in a single-page app › follows history.pushState (Navigation API currententrychange)
  • passed: site-main-nav state (shadow) › current page in a single-page app › follows popstate and hashchange
  • passed: site-main-nav state (shadow) › current page in a single-page app › an explicit current wins over the location
  • passed: site-main-nav state (shadow) › current page in a single-page app › stops listening when disconnected
  • passed: site-main-nav state (shadow) › current page in a single-page app › hash routes (#<route> links) › keeps fragment-only hrefs on this page, not joined to root-link-domain
  • passed: site-main-nav state (shadow) › current page in a single-page app › hash routes (#<route> links) › marks the link whose hash the page has, following pushState
  • passed: site-main-nav state (shadow) › current page in a single-page app › hash routes (#<route> links) › marks nothing for a hash none of the links has
  • passed: site-main-nav state (shadow) › current page in a single-page app › hash routes (#<route> links) › marks the first link while the page has no hash
  • passed: site-main-nav state (shadow) › current page in a single-page app › hash routes (#<route> links) › a click on a link closes the open group; a modified click keeps it open
  • passed: site-main-nav state (light) › still closes on an outside press after being moved while open
  • passed: site-main-nav state (light) › closes the open group when .items changes
  • passed: site-main-nav state (light) › closes the open group when the slotted markup changes
  • passed: site-main-nav state (light) › keeps the newest items-src when it changes mid-fetch
  • passed: site-main-nav state (light) › current page in a single-page app › follows history.pushState (Navigation API currententrychange)
  • passed: site-main-nav state (light) › current page in a single-page app › follows popstate and hashchange
  • passed: site-main-nav state (light) › current page in a single-page app › an explicit current wins over the location
  • passed: site-main-nav state (light) › current page in a single-page app › stops listening when disconnected
  • passed: site-main-nav state (light) › current page in a single-page app › hash routes (#<route> links) › keeps fragment-only hrefs on this page, not joined to root-link-domain
  • passed: site-main-nav state (light) › current page in a single-page app › hash routes (#<route> links) › marks the link whose hash the page has, following pushState
  • passed: site-main-nav state (light) › current page in a single-page app › hash routes (#<route> links) › marks nothing for a hash none of the links has
  • passed: site-main-nav state (light) › current page in a single-page app › hash routes (#<route> links) › marks the first link while the page has no hash
  • passed: site-main-nav state (light) › current page in a single-page app › hash routes (#<route> links) › a click on a link closes the open group; a modified click keeps it open
test/site-main-nav.test.ts — 74 passed (6.7 s)
  • passed: site-main-nav (shadow) › renders the bundled snapshot: four groups with their links
  • passed: site-main-nav (shadow) › is one navigation landmark named "Main", or from label
  • passed: site-main-nav (shadow) › uses the disclosure pattern: buttons controlling hidden lists, no ARIA menus
  • passed: site-main-nav (shadow) › gives each instance its own ids
  • passed: site-main-nav (shadow) › a click toggles a group, and only one is open at a time
  • passed: site-main-nav (shadow) › Enter toggles a group
  • passed: site-main-nav (shadow) › Space toggles a group
  • passed: site-main-nav (shadow) › Escape closes the panel and returns focus to its button
  • passed: site-main-nav (shadow) › closes when focus leaves the nav
  • passed: site-main-nav (shadow) › closes on a pointerdown outside the nav, not inside it
  • passed: site-main-nav (shadow) › arrow keys, Home and End move between the top-level buttons
  • passed: site-main-nav (shadow) › ArrowDown on an open button enters its panel; arrows, Home and End move inside
  • passed: site-main-nav (shadow) › joins relative hrefs to root-link-domain and keeps absolute ones
  • passed: site-main-nav (shadow) › lays the accordion out in flow, with the same disclosure buttons
  • passed: site-main-nav (shadow) › lays the bar out with the live look
  • passed: site-main-nav (shadow) › has no axe violations at any impact at 1280px, closed
  • passed: site-main-nav (shadow) › has no axe violations at any impact at 1280px, open
  • passed: site-main-nav (shadow) › has no axe violations at any impact at 390px, closed
  • passed: site-main-nav (shadow) › has no axe violations at any impact at 390px, open
  • passed: site-main-nav (shadow) › current page › marks the matching link and its group button, ignoring query, hash and a trailing slash
  • passed: site-main-nav (shadow) › current page › shows the group marker as bold with a thick underline, not colour alone
  • passed: site-main-nav (shadow) › current page › matches on host and path: another host or path marks nothing
  • passed: site-main-nav (shadow) › current page › treats www. and the bare host as the same site
  • passed: site-main-nav (shadow) › current page › marks one link when two differ only by hash: the one with the same hash, else the one without
  • passed: site-main-nav (shadow) › current page › defaults to the page location
  • passed: site-main-nav (shadow) › slot="main-nav" markup › replaces the snapshot, and the source stays hidden
  • passed: site-main-nav (shadow) › slot="main-nav" markup › skips invalid children with one warning
  • passed: site-main-nav (shadow) › slot="main-nav" markup › follows live changes to the markup
  • passed: site-main-nav (shadow) › slot="main-nav" markup › is read when added after the first render
  • passed: site-main-nav (shadow) › .items › replaces the snapshot
  • passed: site-main-nav (shadow) › .items › flattens deeper levels into their group, with one warning
  • passed: site-main-nav (shadow) › .items › loses to slotted markup
  • passed: site-main-nav (shadow) › items-src › loads the items from a URL
  • passed: site-main-nav (shadow) › items-src › loses to .items
  • passed: site-main-nav (shadow) › items-src › falls back to the snapshot and fires site-main-nav-error after a failed fetch
  • passed: site-main-nav (shadow) › items-src › falls back to the snapshot and fires site-main-nav-error after a response with no valid entries
  • passed: site-main-nav (shadow) › items-src › times out a hung fetch
  • passed: site-main-nav (light) › renders the bundled snapshot: four groups with their links
  • passed: site-main-nav (light) › is one navigation landmark named "Main", or from label
  • passed: site-main-nav (light) › uses the disclosure pattern: buttons controlling hidden lists, no ARIA menus
  • passed: site-main-nav (light) › gives each instance its own ids
  • passed: site-main-nav (light) › a click toggles a group, and only one is open at a time
  • passed: site-main-nav (light) › Enter toggles a group
  • passed: site-main-nav (light) › Space toggles a group
  • passed: site-main-nav (light) › Escape closes the panel and returns focus to its button
  • passed: site-main-nav (light) › closes when focus leaves the nav
  • passed: site-main-nav (light) › closes on a pointerdown outside the nav, not inside it
  • passed: site-main-nav (light) › arrow keys, Home and End move between the top-level buttons
  • passed: site-main-nav (light) › ArrowDown on an open button enters its panel; arrows, Home and End move inside
  • passed: site-main-nav (light) › joins relative hrefs to root-link-domain and keeps absolute ones
  • passed: site-main-nav (light) › lays the accordion out in flow, with the same disclosure buttons
  • passed: site-main-nav (light) › lays the bar out with the live look
  • passed: site-main-nav (light) › has no axe violations at any impact at 1280px, closed
  • passed: site-main-nav (light) › has no axe violations at any impact at 1280px, open
  • passed: site-main-nav (light) › has no axe violations at any impact at 390px, closed
  • passed: site-main-nav (light) › has no axe violations at any impact at 390px, open
  • passed: site-main-nav (light) › current page › marks the matching link and its group button, ignoring query, hash and a trailing slash
  • passed: site-main-nav (light) › current page › shows the group marker as bold with a thick underline, not colour alone
  • passed: site-main-nav (light) › current page › matches on host and path: another host or path marks nothing
  • passed: site-main-nav (light) › current page › treats www. and the bare host as the same site
  • passed: site-main-nav (light) › current page › marks one link when two differ only by hash: the one with the same hash, else the one without
  • passed: site-main-nav (light) › current page › defaults to the page location
  • passed: site-main-nav (light) › slot="main-nav" markup › replaces the snapshot, and the source stays hidden
  • passed: site-main-nav (light) › slot="main-nav" markup › skips invalid children with one warning
  • passed: site-main-nav (light) › slot="main-nav" markup › follows live changes to the markup
  • passed: site-main-nav (light) › slot="main-nav" markup › is read when added after the first render
  • passed: site-main-nav (light) › .items › replaces the snapshot
  • passed: site-main-nav (light) › .items › flattens deeper levels into their group, with one warning
  • passed: site-main-nav (light) › .items › loses to slotted markup
  • passed: site-main-nav (light) › items-src › loads the items from a URL
  • passed: site-main-nav (light) › items-src › loses to .items
  • passed: site-main-nav (light) › items-src › falls back to the snapshot and fires site-main-nav-error after a failed fetch
  • passed: site-main-nav (light) › items-src › falls back to the snapshot and fires site-main-nav-error after a response with no valid entries
  • passed: site-main-nav (light) › items-src › times out a hung fetch
test/site-page-alerts.test.ts — 66 passed (7.4 s)
  • passed: site-page alerts (shadow) › renders header, list and regional alerts from production by default
  • passed: site-page alerts (shadow) › places the header alert in <header>, the list band before <main>, regional first in <main>
  • passed: site-page alerts (shadow) › keeps the alerts first in <main> when content is added later
  • passed: site-page alerts (shadow) › uses staging with alerts-env="staging"
  • passed: site-page alerts (shadow) › accepts alerts-env="production" explicitly
  • passed: site-page alerts (shadow) › stacks banner, logo row, main nav row and alerts band at 1280px
  • passed: site-page alerts (shadow) › alerts-src overrides the base URL and wins over alerts-env
  • passed: site-page alerts (shadow) › warns once for an invalid alerts-env and falls back to production
  • passed: site-page alerts (shadow) › renders no alert elements with no-alerts
  • passed: site-page alerts (shadow) › adds and removes the alert elements when no-alerts toggles
  • passed: site-page alerts (shadow) › updates src on the existing elements when alerts-env or alerts-src change
  • passed: site-page alerts (shadow) › does not duplicate alerts when removed and re-appended
  • passed: site-page alerts (shadow) › gives the vendor header variant the same alerts
  • passed: site-page alerts (shadow) › has no axe violations on a full page with alerts present
  • passed: site-page alerts (shadow) › has no axe violations, including landmark rules, with no alerts to show
  • passed: site-page alerts (shadow) › list band visibility › is hidden before the first update and while the list is empty
  • passed: site-page alerts (shadow) › list band visibility › shows with list alerts and hides again when they go
  • passed: site-page alerts (shadow) › list band visibility › ignores update events from the header and regional alerts
  • passed: site-page alerts (shadow) › list band visibility › starts hidden again after no-alerts is toggled off and on
  • passed: site-page alerts (shadow) › list band visibility › is a region named "Library alerts"
  • passed: site-page alerts (shadow) › full-bleed geometry › at 1280px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (shadow) › full-bleed geometry › at 768px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (shadow) › full-bleed geometry › at 390px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (shadow) › full-bleed geometry › without list alerts the band takes no space and main follows the header
  • passed: site-page alerts (light) › renders header, list and regional alerts from production by default
  • passed: site-page alerts (light) › places the header alert in <header>, the list band before <main>, regional first in <main>
  • passed: site-page alerts (light) › keeps the alerts first in <main> when content is added later
  • passed: site-page alerts (light) › uses staging with alerts-env="staging"
  • passed: site-page alerts (light) › accepts alerts-env="production" explicitly
  • passed: site-page alerts (light) › stacks banner, logo row, main nav row and alerts band at 1280px
  • passed: site-page alerts (light) › alerts-src overrides the base URL and wins over alerts-env
  • passed: site-page alerts (light) › warns once for an invalid alerts-env and falls back to production
  • passed: site-page alerts (light) › renders no alert elements with no-alerts
  • passed: site-page alerts (light) › adds and removes the alert elements when no-alerts toggles
  • passed: site-page alerts (light) › updates src on the existing elements when alerts-env or alerts-src change
  • passed: site-page alerts (light) › does not duplicate alerts when removed and re-appended
  • passed: site-page alerts (light) › gives the vendor header variant the same alerts
  • passed: site-page alerts (light) › has no axe violations on a full page with alerts present
  • passed: site-page alerts (light) › has no axe violations, including landmark rules, with no alerts to show
  • passed: site-page alerts (light) › list band visibility › is hidden before the first update and while the list is empty
  • passed: site-page alerts (light) › list band visibility › shows with list alerts and hides again when they go
  • passed: site-page alerts (light) › list band visibility › ignores update events from the header and regional alerts
  • passed: site-page alerts (light) › list band visibility › starts hidden again after no-alerts is toggled off and on
  • passed: site-page alerts (light) › list band visibility › is a region named "Library alerts"
  • passed: site-page alerts (light) › full-bleed geometry › at 1280px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (light) › full-bleed geometry › at 768px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (light) › full-bleed geometry › at 390px: banner flush with the header box, band flush with the page
  • passed: site-page alerts (light) › full-bleed geometry › without list alerts the band takes no space and main follows the header
  • passed: header snapshot normalizer › drops only one empty header alert right after <header>
  • passed: alerts test interception › routes the hosts of both alerts CDNs
  • passed: site-page alerts script loading › injects one module script for production into <head>
  • passed: site-page alerts script loading › loads the staging script with alerts-env="staging"
  • passed: site-page alerts script loading › loads from alerts-src when given
  • passed: site-page alerts script loading › injects exactly once across two site-pages and a reconnect
  • passed: site-page alerts script loading › does not inject while the script is still loading for an earlier page
  • passed: site-page alerts script loading › skips injection when <uvalib-alerts> is already defined
  • passed: site-page alerts script loading › skips injection when a script with that src is already present
  • passed: site-page alerts script loading › loads no script and renders no alerts with no-alerts, until it is removed
  • passed: site-page alerts script loading › warns once when the script fails to load and leaves the page working
  • passed: site-page alerts script loading › does not re-request a failed URL, but loads a corrected one
  • passed: site-page alerts script loading › a page added after a failed load can load the component
  • passed: site-page alerts script loading › normalises alerts-src: absolute, trailing slash, no query or hash
  • passed: site-page alerts script loading › resolves a relative alerts-src against the document base URL
  • passed: site-page alerts script loading › skips injection when the page has its own build of the component that hasn't run yet
  • passed: site-page alerts script loading › warns once for an invalid alerts-env, then loads production
  • passed: site-page alerts script loading › a standalone site-header loads nothing
test/site-page-breadcrumbs.test.ts — 18 passed (1.9 s)
  • passed: site-page breadcrumbs (shadow) › places the trail after the header and alert list band, before <main>
  • passed: site-page breadcrumbs (shadow) › places it right after the header with no-alerts
  • passed: site-page breadcrumbs (shadow) › places a trail added later, and keeps it there when alerts are turned on
  • passed: site-page breadcrumbs (shadow) › an empty or hidden trail takes no space
  • passed: site-page breadcrumbs (shadow) › a content node given slot="breadcrumbs" later moves out of <main>
  • passed: site-page breadcrumbs (shadow) › renders nothing for breadcrumbs without the slot
  • passed: site-page breadcrumbs (shadow) › light: passes axe; links, separator, current page and focus ring contrast
  • passed: site-page breadcrumbs (shadow) › dark: passes axe; links, separator, current page and focus ring contrast
  • passed: site-page breadcrumbs (shadow) › wraps at 320px with no horizontal scroll
  • passed: site-page breadcrumbs (light) › places the trail after the header and alert list band, before <main>
  • passed: site-page breadcrumbs (light) › places it right after the header with no-alerts
  • passed: site-page breadcrumbs (light) › places a trail added later, and keeps it there when alerts are turned on
  • passed: site-page breadcrumbs (light) › an empty or hidden trail takes no space
  • passed: site-page breadcrumbs (light) › a content node given slot="breadcrumbs" later moves out of <main>
  • passed: site-page breadcrumbs (light) › renders nothing for breadcrumbs without the slot
  • passed: site-page breadcrumbs (light) › light: passes axe; links, separator, current page and focus ring contrast
  • passed: site-page breadcrumbs (light) › dark: passes axe; links, separator, current page and focus ring contrast
  • passed: site-page breadcrumbs (light) › wraps at 320px with no horizontal scroll
test/site-page-main-nav.test.ts — 20 passed (2.9 s)
  • passed: site-page main navigation (shadow) › shows the main nav by default
  • passed: site-page main navigation (shadow) › forwards no-main-nav: the header is exactly the one from before the main nav
  • passed: site-page main navigation (shadow) › forwards main-nav-label and main-nav-src
  • passed: site-page main navigation (shadow) › a vendor page has no main nav
  • passed: site-page main navigation (shadow) › forwards slot="main-nav" markup to the header, not into main
  • passed: site-page main navigation (shadow) › routes slot="main-nav" markup added later to the header
  • passed: site-page main navigation (shadow) › a full page has no axe violations at any impact at 1280px, closed
  • passed: site-page main navigation (shadow) › a full page has no axe violations at any impact at 1280px, open
  • passed: site-page main navigation (shadow) › a full page has no axe violations at any impact at 390px, closed
  • passed: site-page main navigation (shadow) › a full page has no axe violations at any impact at 390px, open
  • passed: site-page main navigation (light) › shows the main nav by default
  • passed: site-page main navigation (light) › forwards no-main-nav: the header is exactly the one from before the main nav
  • passed: site-page main navigation (light) › forwards main-nav-label and main-nav-src
  • passed: site-page main navigation (light) › a vendor page has no main nav
  • passed: site-page main navigation (light) › forwards slot="main-nav" markup to the header, not into main
  • passed: site-page main navigation (light) › routes slot="main-nav" markup added later to the header
  • passed: site-page main navigation (light) › a full page has no axe violations at any impact at 1280px, closed
  • passed: site-page main navigation (light) › a full page has no axe violations at any impact at 1280px, open
  • passed: site-page main navigation (light) › a full page has no axe violations at any impact at 390px, closed
  • passed: site-page main navigation (light) › a full page has no axe violations at any impact at 390px, open
test/site-page-print.test.ts — 14 passed (352 ms)
  • passed: site-page print (shadow) › on screen, nothing changes
  • passed: site-page print (shadow) › prints only <main>: header, nav, alerts, breadcrumbs and footer are left out
  • passed: site-page print (shadow) › prints black on white, with links underlined and black
  • passed: site-page print (shadow) › a dark scheme prints light
  • passed: site-page print (shadow) › prints where the page came from above the content: site name and URL
  • passed: site-page print (shadow) › falls back to the page title, and updates just before printing
  • passed: site-page print (shadow) › print-chrome keeps the chrome
  • passed: site-page print (light) › on screen, nothing changes
  • passed: site-page print (light) › prints only <main>: header, nav, alerts, breadcrumbs and footer are left out
  • passed: site-page print (light) › prints black on white, with links underlined and black
  • passed: site-page print (light) › a dark scheme prints light
  • passed: site-page print (light) › prints where the page came from above the content: site name and URL
  • passed: site-page print (light) › falls back to the page title, and updates just before printing
  • passed: site-page print (light) › print-chrome keeps the chrome
test/site-page.test.ts — 43 passed (1.5 s)
  • passed: site-page (shadow) › has exactly one main and one #main-content
  • passed: site-page (shadow) › renders skip link, header, main, footer in order
  • passed: site-page (shadow) › keeps the skip link the first focusable element, inside the header landmark in shadow mode
  • passed: site-page (shadow) › clicking the skip link focuses main
  • passed: site-page (shadow) › propagates mode, no-style, header-variant and root-link-domain
  • passed: site-page (shadow) › shows pre-footer content in the footer
  • passed: site-page (shadow) › has no axe violations on a full page
  • passed: site-page (shadow) › content padding (old main-box layout) › pads <main> 40px horizontally at 1280px
  • passed: site-page (shadow) › content padding (old main-box layout) › pads <main> 40px horizontally at 390px
  • passed: site-page (shadow) › content padding (old main-box layout) › caps and centres <main> at 1600px
  • passed: site-page (shadow) › no-footer › renders the footer by default
  • passed: site-page (shadow) › no-footer › hides the footer and its pre-footer band
  • passed: site-page (shadow) › no-footer › toggles at runtime and keeps pre-footer content
  • passed: site-page (shadow) › no-footer › has no axe violations without a footer
  • passed: site-page (light) › has exactly one main and one #main-content
  • passed: site-page (light) › renders skip link, header, main, footer in order
  • passed: site-page (light) › keeps the skip link the first focusable element, inside the header landmark in shadow mode
  • passed: site-page (light) › clicking the skip link focuses main
  • passed: site-page (light) › propagates mode, no-style, header-variant and root-link-domain
  • passed: site-page (light) › shows pre-footer content in the footer
  • passed: site-page (light) › has no axe violations on a full page
  • passed: site-page (light) › content padding (old main-box layout) › pads <main> 40px horizontally at 1280px
  • passed: site-page (light) › content padding (old main-box layout) › pads <main> 40px horizontally at 390px
  • passed: site-page (light) › content padding (old main-box layout) › caps and centres <main> at 1600px
  • passed: site-page (light) › no-footer › renders the footer by default
  • passed: site-page (light) › no-footer › hides the footer and its pre-footer band
  • passed: site-page (light) › no-footer › toggles at runtime and keeps pre-footer content
  • passed: site-page (light) › no-footer › has no axe violations without a footer
  • passed: site-page light-DOM content routing › moves original children (including text) into main
  • passed: site-page light-DOM content routing › moves later-added children into main
  • passed: site-page light-DOM content routing › routes later-added pre-footer children to the footer
  • passed: site-page light-DOM content routing › does not duplicate chrome when removed and re-appended
  • passed: site-page global styles › adds one Typekit link and one global sheet for two pages
  • passed: site-page global styles › adds no Typekit link with no-global-styles
  • passed: site-page landmarks › has no axe violations, including page-level rules, on a full page (shadow)
  • passed: site-page landmarks › has no axe violations, including page-level rules, on a full page (no-shadow-dom)
  • passed: site-page global styles vs. an unlayered host reset › still give html the library font family (shadow)
  • passed: site-page global styles vs. an unlayered host reset › still give html the library font family (no-shadow-dom)
  • passed: site-page global styles vs. an unlayered host reset › installs the global sheet unlayered
  • passed: site-page layering trade-offs › a host unlayered :root token override wins over the library token
  • passed: site-page layering trade-offs › host layered CSS loses to the unlayered base margin
  • passed: site-page exported parts (shadow mode) › document CSS site-page::part(header) styles the inner <header>
  • passed: site-page exported parts (shadow mode) › document CSS site-page::part(footer) styles the inner <footer>
test/site-style.test.ts — 7 passed (18 ms)
  • passed: site-style (shadow) › renders a slot with tokens and base styles
  • passed: site-style (shadow) › keeps the imports and importedStyles properties
  • passed: site-style (light) › installs tokens on the document
  • passed: site-style (light) › installs the document sheet only once and no tag-scoped copy
  • passed: site-style (light) vs. an unlayered host reset › still gives html the library font family
  • passed: site-style (light) vs. an unlayered host reset › installs its document sheet unlayered
  • passed: site-style (light) tokens › a host unlayered :root token override wins
test/site.test.ts — 32 passed (8.7 s)
  • passed: the site root serves the examples page, its main nav and dark mode written in
  • passed: examples page › has the site chrome, with Examples current, Test results and README, and no footer
  • passed: examples page › the main nav is the examples menu: every example once, grouped, in the presets order
  • passed: examples page › has no sidebar or select: one IDE spanning the content width, plus Reset and Copy link
  • passed: examples page › starts with the first example, marked current
  • passed: examples page › sizes the IDE from its measured top (--ide-top)
  • passed: examples page › a main-nav link swaps the IDE files, sets the hash, marks it current and closes the panel
  • passed: examples page › a modified click (new tab) is left to the browser
  • passed: examples page › back and forward move between the chosen examples
  • passed: examples page › "Copy link" writes the current files into the URL hash
  • passed: examples page › "Reset" restores the current example and its #id
  • passed: examples page › has no axe violations at 1280px in light, closed and open
  • passed: examples page › has no axe violations at 1280px in dark, closed and open
  • passed: examples page › has no axe violations at 390px in light, closed and open
  • passed: examples page › has no axe violations at 390px in dark, closed and open
  • passed: examples page › at 390px › lists the groups as accordions in the Menu; choosing one closes the Menu
  • passed: examples page › at 390px › fits a 390px viewport without horizontal scrolling
  • passed: examples page › dark mode › has the Light / Dark / System control on the utility row
  • passed: examples page › dark mode › Light keeps the colours the page had before dark mode
  • passed: examples page › dark mode › Dark makes the page, its controls and the editor dark, with the palette values
  • passed: examples page › dark mode › System follows the OS setting
  • passed: examples page › dark mode › the dark editor theme gives every code colour 4.5:1 on the code background
  • passed: example links › #weekly-hours opens that example
  • passed: example links › an unknown id falls back to the first example
  • passed: example links › a #files= share link opens with its files and no current menu item
  • passed: example links › a share link that is too long shows the error status and the first example
  • passed: example links › a share link that inflates past the size limit shows the error status and the first example
  • passed: example links › a share link that is not deflate data shows the error status and the first example
  • passed: example links › a share link that has the wrong shape shows the error status and the first example
  • passed: playground.html › redirects to the examples page, keeping the hash
  • passed: playground.html › redirects a share link with its query and files intact
  • passed: playground.html › has a canonical link and a no-script refresh to the examples page
test/skill-snippets.test.ts — 18 passed (11.2 s)
  • passed: skill html snippets › finds snippets in SKILL.md and reference/snippets.md
  • passed: skill html snippets › the error probe reports a deliberately broken import
  • passed: skill html snippets › the error probe names a failed first-party resource and ignores third-party ones
  • passed: skill html snippets › SKILL.md #1 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #2 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #3 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #4 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #5 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #6 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #7 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #8 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #9 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #10 is a complete document that renders with one main
  • passed: skill html snippets › SKILL.md #11 is a complete document that renders with one main
  • passed: skill html snippets › reference/snippets.md #1 is a complete document that renders with one main
  • passed: skill html snippets › reference/snippets.md #2 is a complete document that renders with one main
  • passed: skill html snippets › reference/snippets.md #3 is a complete document that renders with one main
  • passed: skill html snippets › reference/snippets.md #4 is a complete document that renders with one main
test/smoke.test.ts — 1 passed (0 ms)
  • passed: smoke › runs in a browser
test/source-children.test.ts — 1 passed (30 ms)
  • passed: SourceChildren › never adopts output rendered after the first update (light DOM)
test/styles.test.ts — 3 passed (2 ms)
  • passed: shared styles › tokens carry theme colors and font family
  • passed: shared styles › base has no !important or universal font-family rule
  • passed: shared styles › accessible defines the skip link
test/uvalib-back-to-top.test.ts — 24 passed (2.9 s)
  • passed: uvalib-back-to-top (shadow) › is hidden (not focusable, not in the accessibility tree) while the top is in view
  • passed: uvalib-back-to-top (shadow) › shows once the top 400px have scrolled away: a 44px button saying Back to top, fixed in the corner
  • passed: uvalib-back-to-top (shadow) › scrolls to the top and moves focus to the h1 (tabindex -1), reporting a click
  • passed: uvalib-back-to-top (shadow) › scrolls smoothly unless reduced motion is set
  • passed: uvalib-back-to-top (shadow) › target picks where focus goes; without an h1, #top
  • passed: uvalib-back-to-top (shadow) › if it has focus as it hides, focus moves to the h1
  • passed: uvalib-back-to-top (shadow) › offset sets how far to scroll first
  • passed: uvalib-back-to-top (shadow) › at the end it sits in its own space, never over the content after it
  • passed: uvalib-back-to-top (shadow) › reflows at 320px: no page scroll, and the space it keeps is taller than the button
  • passed: uvalib-back-to-top (shadow) › passes axe in light and dark mode
  • passed: uvalib-back-to-top (shadow) › forced colors keep its border; print hides it
  • passed: uvalib-back-to-top (shadow) › honours no-analytics and removes its sentinel when removed
  • passed: uvalib-back-to-top (no-shadow-dom) › is hidden (not focusable, not in the accessibility tree) while the top is in view
  • passed: uvalib-back-to-top (no-shadow-dom) › shows once the top 400px have scrolled away: a 44px button saying Back to top, fixed in the corner
  • passed: uvalib-back-to-top (no-shadow-dom) › scrolls to the top and moves focus to the h1 (tabindex -1), reporting a click
  • passed: uvalib-back-to-top (no-shadow-dom) › scrolls smoothly unless reduced motion is set
  • passed: uvalib-back-to-top (no-shadow-dom) › target picks where focus goes; without an h1, #top
  • passed: uvalib-back-to-top (no-shadow-dom) › if it has focus as it hides, focus moves to the h1
  • passed: uvalib-back-to-top (no-shadow-dom) › offset sets how far to scroll first
  • passed: uvalib-back-to-top (no-shadow-dom) › at the end it sits in its own space, never over the content after it
  • passed: uvalib-back-to-top (no-shadow-dom) › reflows at 320px: no page scroll, and the space it keeps is taller than the button
  • passed: uvalib-back-to-top (no-shadow-dom) › passes axe in light and dark mode
  • passed: uvalib-back-to-top (no-shadow-dom) › forced colors keep its border; print hides it
  • passed: uvalib-back-to-top (no-shadow-dom) › honours no-analytics and removes its sentinel when removed
test/uvalib-breadcrumbs.test.ts — 59 passed (675 ms)
  • passed: uvalib-breadcrumbs (shadow) › renders a labelled nav with an ordered list, the last item the current page
  • passed: uvalib-breadcrumbs (shadow) › uses relative and hash hrefs exactly as written
  • passed: uvalib-breadcrumbs (shadow) › hides the separators from assistive technology, between items only
  • passed: uvalib-breadcrumbs (shadow) › makes a final link the current page with aria-current
  • passed: uvalib-breadcrumbs (shadow) › takes its accessible name from label
  • passed: uvalib-breadcrumbs (shadow) › does not show the source children themselves
  • passed: uvalib-breadcrumbs (shadow) › follows child changes: added, removed, href and text
  • passed: uvalib-breadcrumbs (shadow) › renders an earlier text-only child as plain text, not current
  • passed: uvalib-breadcrumbs (shadow) › skips children with no text, with one console warning
  • passed: uvalib-breadcrumbs (shadow) › warns about bare text in the trail
  • passed: uvalib-breadcrumbs (shadow) › renders a hidden nav when there is no trail
  • passed: uvalib-breadcrumbs (shadow) › takes items from JS, winning over children, and re-renders on a new array
  • passed: uvalib-breadcrumbs (shadow) › skips items without a label, with one console warning
  • passed: uvalib-breadcrumbs (shadow) › exposes the trail as a list even without markers (role="list")
  • passed: uvalib-breadcrumbs (shadow) › shows unsafe hrefs (javascript:, data:) as text, with one warning
  • passed: uvalib-breadcrumbs (shadow) › follows links added to an initially empty trail, and their later edits
  • passed: uvalib-breadcrumbs (shadow) › fires a cancelable uvalib-breadcrumbs-navigate on a plain link click
  • passed: uvalib-breadcrumbs (shadow) › draws a linked current page in the text colour
  • passed: uvalib-breadcrumbs (shadow) › passes axe
  • passed: uvalib-breadcrumbs (shadow) › wraps a long trail at 320px with no horizontal scroll
  • passed: uvalib-breadcrumbs (shadow) › is at body size (1rem) with underlined links
  • passed: uvalib-breadcrumbs (shadow) › shows a visible focus ring on its links (keyboard)
  • passed: uvalib-breadcrumbs (shadow) › keeps only the structural rules with no-style
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › links to a same-origin search with a query, keeping the text
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › ignores a trailing slash or index.html, and takes a list of paths
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › keeps the href for another path, no query, another origin or no referrer
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › only changes the steps that ask for it
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › follows data-return-from added later, and works from items (returnFrom)
  • passed: uvalib-breadcrumbs (shadow) › data-return-from: back to the search the visitor came from › reports the returned href in uvalib-breadcrumbs-navigate
  • passed: uvalib-breadcrumbs (no-shadow-dom) › renders a labelled nav with an ordered list, the last item the current page
  • passed: uvalib-breadcrumbs (no-shadow-dom) › uses relative and hash hrefs exactly as written
  • passed: uvalib-breadcrumbs (no-shadow-dom) › hides the separators from assistive technology, between items only
  • passed: uvalib-breadcrumbs (no-shadow-dom) › makes a final link the current page with aria-current
  • passed: uvalib-breadcrumbs (no-shadow-dom) › takes its accessible name from label
  • passed: uvalib-breadcrumbs (no-shadow-dom) › does not show the source children themselves
  • passed: uvalib-breadcrumbs (no-shadow-dom) › follows child changes: added, removed, href and text
  • passed: uvalib-breadcrumbs (no-shadow-dom) › renders an earlier text-only child as plain text, not current
  • passed: uvalib-breadcrumbs (no-shadow-dom) › skips children with no text, with one console warning
  • passed: uvalib-breadcrumbs (no-shadow-dom) › warns about bare text in the trail
  • passed: uvalib-breadcrumbs (no-shadow-dom) › renders a hidden nav when there is no trail
  • passed: uvalib-breadcrumbs (no-shadow-dom) › takes items from JS, winning over children, and re-renders on a new array
  • passed: uvalib-breadcrumbs (no-shadow-dom) › skips items without a label, with one console warning
  • passed: uvalib-breadcrumbs (no-shadow-dom) › exposes the trail as a list even without markers (role="list")
  • passed: uvalib-breadcrumbs (no-shadow-dom) › shows unsafe hrefs (javascript:, data:) as text, with one warning
  • passed: uvalib-breadcrumbs (no-shadow-dom) › follows links added to an initially empty trail, and their later edits
  • passed: uvalib-breadcrumbs (no-shadow-dom) › fires a cancelable uvalib-breadcrumbs-navigate on a plain link click
  • passed: uvalib-breadcrumbs (no-shadow-dom) › draws a linked current page in the text colour
  • passed: uvalib-breadcrumbs (no-shadow-dom) › passes axe
  • passed: uvalib-breadcrumbs (no-shadow-dom) › wraps a long trail at 320px with no horizontal scroll
  • passed: uvalib-breadcrumbs (no-shadow-dom) › is at body size (1rem) with underlined links
  • passed: uvalib-breadcrumbs (no-shadow-dom) › shows a visible focus ring on its links (keyboard)
  • passed: uvalib-breadcrumbs (no-shadow-dom) › keeps only the structural rules with no-style
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › links to a same-origin search with a query, keeping the text
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › ignores a trailing slash or index.html, and takes a list of paths
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › keeps the href for another path, no query, another origin or no referrer
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › only changes the steps that ask for it
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › follows data-return-from added later, and works from items (returnFrom)
  • passed: uvalib-breadcrumbs (no-shadow-dom) › data-return-from: back to the search the visitor came from › reports the returned href in uvalib-breadcrumbs-navigate
  • passed: uvalib-breadcrumbs light DOM styles › installs its styles in @layer uvalib, so page CSS wins
test/uvalib-card-grid.test.ts — 20 passed (1.6 s)
  • passed: uvalib-card-grid (shadow) › is a list of cards
  • passed: uvalib-card-grid (shadow) › uses 4, 2 and 1 columns at the theme breakpoints
  • passed: uvalib-card-grid (shadow) › switches to auto-fill when min-card-width is a length
  • passed: uvalib-card-grid (shadow) › ignores an invalid min-card-width once and keeps 4/2/1
  • passed: uvalib-card-grid (shadow) › gives cards in a row the same height
  • passed: uvalib-card-grid (shadow) › picks up a card added later and drops one that leaves
  • passed: uvalib-card-grid (shadow) › warns once about children that are not cards and keeps them
  • passed: uvalib-card-grid (shadow) › passes axe
  • passed: uvalib-card-grid (shadow) › does not scroll horizontally at 320px
  • passed: uvalib-card-grid (no-shadow-dom) › is a list of cards
  • passed: uvalib-card-grid (no-shadow-dom) › uses 4, 2 and 1 columns at the theme breakpoints
  • passed: uvalib-card-grid (no-shadow-dom) › switches to auto-fill when min-card-width is a length
  • passed: uvalib-card-grid (no-shadow-dom) › ignores an invalid min-card-width once and keeps 4/2/1
  • passed: uvalib-card-grid (no-shadow-dom) › gives cards in a row the same height
  • passed: uvalib-card-grid (no-shadow-dom) › picks up a card added later and drops one that leaves
  • passed: uvalib-card-grid (no-shadow-dom) › warns once about children that are not cards and keeps them
  • passed: uvalib-card-grid (no-shadow-dom) › passes axe
  • passed: uvalib-card-grid (no-shadow-dom) › does not scroll horizontally at 320px
  • passed: uvalib-card-grid light DOM reconnect › keeps its cards when the grid reconnects before the first update
  • passed: uvalib-card-grid shadow slots › clears the slot it assigned when a card leaves the grid
test/uvalib-card.test.ts — 55 passed (638 ms)
  • passed: uvalib-card (shadow) › balances the title and wraps the excerpt pretty; no-style (shadow) drops them
  • passed: uvalib-card (shadow) › makes the heading the link and stretches it over the card
  • passed: uvalib-card (shadow) › leaves a static card’s own links uncovered
  • passed: uvalib-card (shadow) › places media, badge, date, chip and excerpt
  • passed: uvalib-card (shadow) › uses an explicit heading level and ignores an invalid one
  • passed: uvalib-card (shadow) › infers one level below the nearest preceding heading
  • passed: uvalib-card (shadow) › hides an empty heading so it is not an empty heading
  • passed: uvalib-card (shadow) › hides a heading with no accessible name and warns when the card is a link
  • passed: uvalib-card (shadow) › does not link an empty or unsafe href, and warns once for the unsafe one
  • passed: uvalib-card (shadow) › warns once when a clickable card contains another link or button
  • passed: uvalib-card (shadow) › warns once when a clickable card contains another control
  • passed: uvalib-card (shadow) › follows a heading change and a chip added later
  • passed: uvalib-card (shadow) › reports a card click as single, never the title or URL, and not on render
  • passed: uvalib-card (shadow) › reports the 1-based place in the nearest grid, and skips no-analytics
  • passed: uvalib-card (shadow) › fires a cancelable uvalib-card-navigate on a plain click only
  • passed: uvalib-card (shadow) › ignores a canceled or non-primary click and still tracks a modified one
  • passed: uvalib-card (shadow) › paints the badge from the accent role tokens so it stays readable on the card
  • passed: uvalib-card (shadow) › shows the focus ring on the card when the heading link is focused
  • passed: uvalib-card (shadow) › passes axe
  • passed: uvalib-card (shadow) › does not scroll horizontally at 320px
  • passed: uvalib-card (shadow) › draws a circle avatar, keeps the alt, and still overlays the badge
  • passed: uvalib-card (shadow) › centers a circle avatar so the count badge sits on the picture
  • passed: uvalib-card (shadow) › warns once for an unknown media-shape and leaves the picture rectangular
  • passed: uvalib-card (shadow) › keeps the circle in forced colors and with no-style
  • passed: uvalib-card (shadow) › shows an actions row on a static card and hides it when empty
  • passed: uvalib-card (shadow) › warns when a clickable card also has actions
  • passed: uvalib-card (shadow) › keeps the stretch with no-style and drops the link colour
  • passed: uvalib-card (no-shadow-dom) › balances the title and wraps the excerpt pretty; no-style (shadow) drops them
  • passed: uvalib-card (no-shadow-dom) › makes the heading the link and stretches it over the card
  • passed: uvalib-card (no-shadow-dom) › leaves a static card’s own links uncovered
  • passed: uvalib-card (no-shadow-dom) › places media, badge, date, chip and excerpt
  • passed: uvalib-card (no-shadow-dom) › uses an explicit heading level and ignores an invalid one
  • passed: uvalib-card (no-shadow-dom) › infers one level below the nearest preceding heading
  • passed: uvalib-card (no-shadow-dom) › hides an empty heading so it is not an empty heading
  • passed: uvalib-card (no-shadow-dom) › hides a heading with no accessible name and warns when the card is a link
  • passed: uvalib-card (no-shadow-dom) › does not link an empty or unsafe href, and warns once for the unsafe one
  • passed: uvalib-card (no-shadow-dom) › warns once when a clickable card contains another link or button
  • passed: uvalib-card (no-shadow-dom) › warns once when a clickable card contains another control
  • passed: uvalib-card (no-shadow-dom) › follows a heading change and a chip added later
  • passed: uvalib-card (no-shadow-dom) › reports a card click as single, never the title or URL, and not on render
  • passed: uvalib-card (no-shadow-dom) › reports the 1-based place in the nearest grid, and skips no-analytics
  • passed: uvalib-card (no-shadow-dom) › fires a cancelable uvalib-card-navigate on a plain click only
  • passed: uvalib-card (no-shadow-dom) › ignores a canceled or non-primary click and still tracks a modified one
  • passed: uvalib-card (no-shadow-dom) › paints the badge from the accent role tokens so it stays readable on the card
  • passed: uvalib-card (no-shadow-dom) › shows the focus ring on the card when the heading link is focused
  • passed: uvalib-card (no-shadow-dom) › passes axe
  • passed: uvalib-card (no-shadow-dom) › does not scroll horizontally at 320px
  • passed: uvalib-card (no-shadow-dom) › draws a circle avatar, keeps the alt, and still overlays the badge
  • passed: uvalib-card (no-shadow-dom) › centers a circle avatar so the count badge sits on the picture
  • passed: uvalib-card (no-shadow-dom) › warns once for an unknown media-shape and leaves the picture rectangular
  • passed: uvalib-card (no-shadow-dom) › keeps the circle in forced colors and with no-style
  • passed: uvalib-card (no-shadow-dom) › shows an actions row on a static card and hides it when empty
  • passed: uvalib-card (no-shadow-dom) › warns when a clickable card also has actions
  • passed: uvalib-card (no-shadow-dom) › keeps the stretch with no-style and drops the link colour
  • passed: uvalib-card light DOM styles › installs its styles in @layer uvalib, so page CSS wins
test/uvalib-chip-group.test.ts — 70 passed (3.8 s)
  • passed: uvalib-chip-group (shadow) › single: a named radio group of chips, with counts read as part of the name
  • passed: uvalib-chip-group (shadow) › single: a click selects and fires one change with the value
  • passed: uvalib-chip-group (shadow) › single: Tab enters at the selected chip and the arrow keys move and select
  • passed: uvalib-chip-group (shadow) › multi: toggle buttons with aria-pressed and an array value
  • passed: uvalib-chip-group (shadow) › links: links and buttons fire select; a canceled link click is routed in the app
  • passed: uvalib-chip-group (shadow) › items win over the children; entries with no label are skipped with a warning
  • passed: uvalib-chip-group (shadow) › follows changes to the children
  • passed: uvalib-chip-group (shadow) › warns once without a label
  • passed: uvalib-chip-group (shadow) › reports changes: single once settled, multi each toggle, links without the chip
  • passed: uvalib-chip-group (shadow) › url-param: read on connect, one push once settled, followed on Back
  • passed: uvalib-chip-group (shadow) › url-param: the markup value is the bare address; any other value is written, empty too
  • passed: uvalib-chip-group (shadow) › url-param: set as a property before the first render
  • passed: uvalib-chip-group (shadow) › url-param: a hash with a query keeps the parameter in the hash
  • passed: uvalib-chip-group (shadow) › a pending change is dropped on removal, on Back, and when the app sets the value
  • passed: uvalib-chip-group (shadow) › url-param: multi values comma-separated, inside the hash on a hash route
  • passed: uvalib-chip-group (shadow) › targets of at least 44px, a tick and fill for the selected chip, and axe
  • passed: uvalib-chip-group (shadow) › passes axe in dark mode
  • passed: uvalib-chip-group (shadow) › forced colors: the selected chip is Highlight and keeps its tick
  • passed: uvalib-chip-group (shadow) › wraps at 320px; scroll keeps one row that scrolls, with no trap
  • passed: uvalib-chip-group (shadow) › keeps the layout and the hidden radios with no-style
  • passed: uvalib-chip-group (shadow) › keeps a visible focus ring on a radio chip with no-style
  • passed: uvalib-chip-group (shadow) › a selected disabled chip keeps the selected text colour on its fill
  • passed: uvalib-chip-group (shadow) › links: a disabled chip is a disabled link, an unsafe href is text, an empty href a button
  • passed: uvalib-chip-group (shadow) › counts that are not numbers send no value; a multi value attribute becomes an array
  • passed: uvalib-chip-group (shadow) › segmented does not overflow 320px, and wrapped rows keep a gap
  • passed: uvalib-chip-group (shadow) › swatch: a decorative colour square before the label; names unchanged
  • passed: uvalib-chip-group (shadow) › swatch: from items, in multi, links, segmented and scroll
  • passed: uvalib-chip-group (shadow) › swatch: its border contrasts 3:1 with the chip, selected or not, light and dark
  • passed: uvalib-chip-group (shadow) › swatch: forced colors keep its colour and a system-colour border
  • passed: uvalib-chip-group (shadow) › swatch: kept with no-style
  • passed: uvalib-chip-group (shadow) › description: shown under the chips and describes the group, in every mode
  • passed: uvalib-chip-group (shadow) › description: unique ids, follows the attribute, none without it
  • passed: uvalib-chip-group (shadow) › description: read when focus enters the group (Tab), axe light and dark, 320px
  • passed: uvalib-chip-group (shadow) › description: hidden with the group when there are no chips
  • passed: uvalib-chip-group (shadow) › forced colors: no light fade over the scrolling row
  • passed: uvalib-chip-group (no-shadow-dom) › single: a named radio group of chips, with counts read as part of the name
  • passed: uvalib-chip-group (no-shadow-dom) › single: a click selects and fires one change with the value
  • passed: uvalib-chip-group (no-shadow-dom) › single: Tab enters at the selected chip and the arrow keys move and select
  • passed: uvalib-chip-group (no-shadow-dom) › multi: toggle buttons with aria-pressed and an array value
  • passed: uvalib-chip-group (no-shadow-dom) › links: links and buttons fire select; a canceled link click is routed in the app
  • passed: uvalib-chip-group (no-shadow-dom) › items win over the children; entries with no label are skipped with a warning
  • passed: uvalib-chip-group (no-shadow-dom) › follows changes to the children
  • passed: uvalib-chip-group (no-shadow-dom) › warns once without a label
  • passed: uvalib-chip-group (no-shadow-dom) › reports changes: single once settled, multi each toggle, links without the chip
  • passed: uvalib-chip-group (no-shadow-dom) › url-param: read on connect, one push once settled, followed on Back
  • passed: uvalib-chip-group (no-shadow-dom) › url-param: the markup value is the bare address; any other value is written, empty too
  • passed: uvalib-chip-group (no-shadow-dom) › url-param: set as a property before the first render
  • passed: uvalib-chip-group (no-shadow-dom) › url-param: a hash with a query keeps the parameter in the hash
  • passed: uvalib-chip-group (no-shadow-dom) › a pending change is dropped on removal, on Back, and when the app sets the value
  • passed: uvalib-chip-group (no-shadow-dom) › url-param: multi values comma-separated, inside the hash on a hash route
  • passed: uvalib-chip-group (no-shadow-dom) › targets of at least 44px, a tick and fill for the selected chip, and axe
  • passed: uvalib-chip-group (no-shadow-dom) › passes axe in dark mode
  • passed: uvalib-chip-group (no-shadow-dom) › forced colors: the selected chip is Highlight and keeps its tick
  • passed: uvalib-chip-group (no-shadow-dom) › wraps at 320px; scroll keeps one row that scrolls, with no trap
  • passed: uvalib-chip-group (no-shadow-dom) › keeps the layout and the hidden radios with no-style
  • passed: uvalib-chip-group (no-shadow-dom) › keeps a visible focus ring on a radio chip with no-style
  • passed: uvalib-chip-group (no-shadow-dom) › a selected disabled chip keeps the selected text colour on its fill
  • passed: uvalib-chip-group (no-shadow-dom) › links: a disabled chip is a disabled link, an unsafe href is text, an empty href a button
  • passed: uvalib-chip-group (no-shadow-dom) › counts that are not numbers send no value; a multi value attribute becomes an array
  • passed: uvalib-chip-group (no-shadow-dom) › segmented does not overflow 320px, and wrapped rows keep a gap
  • passed: uvalib-chip-group (no-shadow-dom) › swatch: a decorative colour square before the label; names unchanged
  • passed: uvalib-chip-group (no-shadow-dom) › swatch: from items, in multi, links, segmented and scroll
  • passed: uvalib-chip-group (no-shadow-dom) › swatch: its border contrasts 3:1 with the chip, selected or not, light and dark
  • passed: uvalib-chip-group (no-shadow-dom) › swatch: forced colors keep its colour and a system-colour border
  • passed: uvalib-chip-group (no-shadow-dom) › swatch: kept with no-style
  • passed: uvalib-chip-group (no-shadow-dom) › description: shown under the chips and describes the group, in every mode
  • passed: uvalib-chip-group (no-shadow-dom) › description: unique ids, follows the attribute, none without it
  • passed: uvalib-chip-group (no-shadow-dom) › description: read when focus enters the group (Tab), axe light and dark, 320px
  • passed: uvalib-chip-group (no-shadow-dom) › description: hidden with the group when there are no chips
  • passed: uvalib-chip-group (no-shadow-dom) › forced colors: no light fade over the scrolling row
test/uvalib-combobox-top-layer.test.ts — 18 passed (1.5 s)
  • passed: uvalib-combobox top layer (shadow) › the test browser supports the top layer (Chromium with anchor positioning)
  • passed: uvalib-combobox top layer (shadow) › an overflow: hidden ancestor does not clip the popup; a click chooses without blurring
  • passed: uvalib-combobox top layer (shadow) › keeps the ARIA wiring: combobox, expanded, controls, activedescendant, listbox
  • passed: uvalib-combobox top layer (shadow) › opens above the field near the bottom of the viewport
  • passed: uvalib-combobox top layer (shadow) › keeps the active option in view inside the popup
  • passed: uvalib-combobox top layer (shadow) › reflows at 320px: the popup is the field width, inside the viewport
  • passed: uvalib-combobox top layer (shadow) › passes axe open in the top layer, light and dark
  • passed: uvalib-combobox top layer (shadow) › without anchor positioning it stays absolutely positioned, as before
  • passed: uvalib-combobox top layer (shadow) › inside <uvalib-filter-drawer> on a phone: above the modal panel, and a tap chooses
  • passed: uvalib-combobox top layer (no-shadow-dom) › the test browser supports the top layer (Chromium with anchor positioning)
  • passed: uvalib-combobox top layer (no-shadow-dom) › an overflow: hidden ancestor does not clip the popup; a click chooses without blurring
  • passed: uvalib-combobox top layer (no-shadow-dom) › keeps the ARIA wiring: combobox, expanded, controls, activedescendant, listbox
  • passed: uvalib-combobox top layer (no-shadow-dom) › opens above the field near the bottom of the viewport
  • passed: uvalib-combobox top layer (no-shadow-dom) › keeps the active option in view inside the popup
  • passed: uvalib-combobox top layer (no-shadow-dom) › reflows at 320px: the popup is the field width, inside the viewport
  • passed: uvalib-combobox top layer (no-shadow-dom) › passes axe open in the top layer, light and dark
  • passed: uvalib-combobox top layer (no-shadow-dom) › without anchor positioning it stays absolutely positioned, as before
  • passed: uvalib-combobox top layer (no-shadow-dom) › inside <uvalib-filter-drawer> on a phone: above the modal panel, and a tap chooses
test/uvalib-combobox.test.ts — 54 passed (5.2 s)
  • passed: uvalib-combobox (shadow) › wires the field: combobox role, label, description, listbox and placeholder
  • passed: uvalib-combobox (shadow) › warns once without a label
  • passed: uvalib-combobox (shadow) › filters ignoring case and accents, prefix matches first, and marks the match
  • passed: uvalib-combobox (shadow) › Down opens on the first option and wraps; Up opens on the last; disabled are skipped
  • passed: uvalib-combobox (shadow) › Enter chooses the active option: select, then change, and the field keeps focus
  • passed: uvalib-combobox (shadow) › a click on an option chooses it without blurring; a disabled one does nothing
  • passed: uvalib-combobox (shadow) › Escape closes the list, then clears the field
  • passed: uvalib-combobox (shadow) › Home, End and the side arrows move the caret and leave the option
  • passed: uvalib-combobox (shadow) › Tab leaves without choosing and commits the typed text once
  • passed: uvalib-combobox (shadow) › leaving with text that is exactly one label chooses it
  • passed: uvalib-combobox (shadow) › the clear button: named, 44px, only with text, clears and returns focus
  • passed: uvalib-combobox (shadow) › announces the count politely once it settles, never on the first render
  • passed: uvalib-combobox (shadow) › caps the list at max-results and says how many match
  • passed: uvalib-combobox (shadow) › a long list scrolls inside the popup to keep the active option in view
  • passed: uvalib-combobox (shadow) › reads <option> children directly, in a <datalist>, and adopts a fallback input
  • passed: uvalib-combobox (shadow) › takes part in a form: submits the chosen value or the text, resets, validates
  • passed: uvalib-combobox (shadow) › reports select with its position and clear, never the text, and honours no-analytics
  • passed: uvalib-combobox (shadow) › 16,000 local items filter quickly
  • passed: uvalib-combobox (shadow) › 44px options, the active one shown by more than colour, and axe with the list open
  • passed: uvalib-combobox (shadow) › passes axe with a list long enough to scroll, which stays out of the tab order
  • passed: uvalib-combobox (shadow) › passes axe in dark mode, open and closed
  • passed: uvalib-combobox (shadow) › forced colors: the active option is Highlight
  • passed: uvalib-combobox (shadow) › reflows at 320px: the popup stays inside the viewport, no page scroll
  • passed: uvalib-combobox (shadow) › works inside a scrolling container: the popup sits under the field
  • passed: uvalib-combobox (shadow) › the app may set value and selected without events
  • passed: uvalib-combobox (shadow) › src › fetches once typing pauses, aborts a stale request, and transforms the response
  • passed: uvalib-combobox (shadow) › src › a failed load says so, reports one error and never throws
  • passed: uvalib-combobox (no-shadow-dom) › wires the field: combobox role, label, description, listbox and placeholder
  • passed: uvalib-combobox (no-shadow-dom) › warns once without a label
  • passed: uvalib-combobox (no-shadow-dom) › filters ignoring case and accents, prefix matches first, and marks the match
  • passed: uvalib-combobox (no-shadow-dom) › Down opens on the first option and wraps; Up opens on the last; disabled are skipped
  • passed: uvalib-combobox (no-shadow-dom) › Enter chooses the active option: select, then change, and the field keeps focus
  • passed: uvalib-combobox (no-shadow-dom) › a click on an option chooses it without blurring; a disabled one does nothing
  • passed: uvalib-combobox (no-shadow-dom) › Escape closes the list, then clears the field
  • passed: uvalib-combobox (no-shadow-dom) › Home, End and the side arrows move the caret and leave the option
  • passed: uvalib-combobox (no-shadow-dom) › Tab leaves without choosing and commits the typed text once
  • passed: uvalib-combobox (no-shadow-dom) › leaving with text that is exactly one label chooses it
  • passed: uvalib-combobox (no-shadow-dom) › the clear button: named, 44px, only with text, clears and returns focus
  • passed: uvalib-combobox (no-shadow-dom) › announces the count politely once it settles, never on the first render
  • passed: uvalib-combobox (no-shadow-dom) › caps the list at max-results and says how many match
  • passed: uvalib-combobox (no-shadow-dom) › a long list scrolls inside the popup to keep the active option in view
  • passed: uvalib-combobox (no-shadow-dom) › reads <option> children directly, in a <datalist>, and adopts a fallback input
  • passed: uvalib-combobox (no-shadow-dom) › takes part in a form: submits the chosen value or the text, resets, validates
  • passed: uvalib-combobox (no-shadow-dom) › reports select with its position and clear, never the text, and honours no-analytics
  • passed: uvalib-combobox (no-shadow-dom) › 16,000 local items filter quickly
  • passed: uvalib-combobox (no-shadow-dom) › 44px options, the active one shown by more than colour, and axe with the list open
  • passed: uvalib-combobox (no-shadow-dom) › passes axe with a list long enough to scroll, which stays out of the tab order
  • passed: uvalib-combobox (no-shadow-dom) › passes axe in dark mode, open and closed
  • passed: uvalib-combobox (no-shadow-dom) › forced colors: the active option is Highlight
  • passed: uvalib-combobox (no-shadow-dom) › reflows at 320px: the popup stays inside the viewport, no page scroll
  • passed: uvalib-combobox (no-shadow-dom) › works inside a scrolling container: the popup sits under the field
  • passed: uvalib-combobox (no-shadow-dom) › the app may set value and selected without events
  • passed: uvalib-combobox (no-shadow-dom) › src › fetches once typing pauses, aborts a stale request, and transforms the response
  • passed: uvalib-combobox (no-shadow-dom) › src › a failed load says so, reports one error and never throws
test/uvalib-contents.test.ts — 87 passed (2.6 s)
  • passed: uvalib-contents (shadow) › renders a labelled nav with a headline and the nested list, any depth
  • passed: uvalib-contents (shadow) › takes its name and headline from label, and the headline level from heading-level
  • passed: uvalib-contents (shadow) › does not show the source children themselves
  • passed: uvalib-contents (shadow) › marks the current page and the current section from current
  • passed: uvalib-contents (shadow) › marks the current entry from the page URL and follows hashchange
  • passed: uvalib-contents (shadow) › uses an author's aria-current when current is unset
  • passed: uvalib-contents (shadow) › follows child changes: added, removed, href and text
  • passed: uvalib-contents (shadow) › takes items from JS, winning over children, and goes back on undefined
  • passed: uvalib-contents (shadow) › skips entries with no text, with one warning, and hides an empty nav
  • passed: uvalib-contents (shadow) › shows unsafe hrefs (javascript:, data:) as text, with one warning
  • passed: uvalib-contents (shadow) › fires a cancelable uvalib-contents-navigate and link-click analytics on a click
  • passed: uvalib-contents (shadow) › balances the headline, but not the narrow disclosure button
  • passed: uvalib-contents (shadow) › sticky: stays in view and scrolls a long list to the current entry, not the page
  • passed: uvalib-contents (shadow) › is not sticky on narrow screens
  • passed: uvalib-contents (shadow) › draws dividers, nesting bars, link colour and a bold current entry with a bar
  • passed: uvalib-contents (shadow) › shows a visible focus ring on its links (keyboard)
  • passed: uvalib-contents (shadow) › passes axe (wide)
  • passed: uvalib-contents (shadow) › passes axe in dark mode, wide and narrow (open)
  • passed: uvalib-contents (shadow) › matches an entry with a query by its query, and one without whatever the query
  • passed: uvalib-contents (shadow) › resolves hash-only entries against current when it is set
  • passed: uvalib-contents (shadow) › accepts only valid author aria-current values, one page and one location
  • passed: uvalib-contents (shadow) › a mark on an unsafe link does not turn off matching the page URL
  • passed: uvalib-contents (shadow) › keeps lang and dir, and inline semantics, copied element by element
  • passed: uvalib-contents (shadow) › keeps only the structural rules with no-style
  • passed: uvalib-contents (shadow) › narrow screens › collapses into a closed disclosure that the button opens and closes
  • passed: uvalib-contents (shadow) › narrow screens › starts open with the open attribute
  • passed: uvalib-contents (shadow) › narrow screens › opens with Enter and Space from the keyboard, with a visible focus ring
  • passed: uvalib-contents (shadow) › narrow screens › follows collapse-below, and 0 never collapses
  • passed: uvalib-contents (shadow) › narrow screens › goes back to the open list when the window widens
  • passed: uvalib-contents (shadow) › narrow screens › passes axe, closed and open
  • passed: uvalib-contents (shadow) › narrow screens › reflows at 320px with no horizontal scroll
  • passed: uvalib-contents (shadow) › headings-from › lists the h2 and h3 headings, nested, adding ids and keeping existing ones
  • passed: uvalib-contents (shadow) › headings-from › makes ASCII slugs from accented text, unique against ids already on the page
  • passed: uvalib-contents (shadow) › headings-from › keeps the ids on a second read, so links stay stable
  • passed: uvalib-contents (shadow) › headings-from › follows levels: one level, or a wider range
  • passed: uvalib-contents (shadow) › headings-from › shows nothing below min top-level entries (default 2)
  • passed: uvalib-contents (shadow) › headings-from › marks the section in the hash with aria-current="location"
  • passed: uvalib-contents (shadow) › headings-from › goes to the section in the hash once its heading has an id
  • passed: uvalib-contents (shadow) › headings-from › follows headings added and retitled, and refresh() after other changes
  • passed: uvalib-contents (shadow) › headings-from › skips headings inside itself when placed in the document
  • passed: uvalib-contents (shadow) › headings-from › lets the children win over headings-from
  • passed: uvalib-contents (shadow) › headings-from › warns once when nothing matches headings-from, and shows nothing
  • passed: uvalib-contents (shadow) › headings-from › passes axe
  • passed: uvalib-contents (no-shadow-dom) › renders a labelled nav with a headline and the nested list, any depth
  • passed: uvalib-contents (no-shadow-dom) › takes its name and headline from label, and the headline level from heading-level
  • passed: uvalib-contents (no-shadow-dom) › does not show the source children themselves
  • passed: uvalib-contents (no-shadow-dom) › marks the current page and the current section from current
  • passed: uvalib-contents (no-shadow-dom) › marks the current entry from the page URL and follows hashchange
  • passed: uvalib-contents (no-shadow-dom) › uses an author's aria-current when current is unset
  • passed: uvalib-contents (no-shadow-dom) › follows child changes: added, removed, href and text
  • passed: uvalib-contents (no-shadow-dom) › takes items from JS, winning over children, and goes back on undefined
  • passed: uvalib-contents (no-shadow-dom) › skips entries with no text, with one warning, and hides an empty nav
  • passed: uvalib-contents (no-shadow-dom) › shows unsafe hrefs (javascript:, data:) as text, with one warning
  • passed: uvalib-contents (no-shadow-dom) › fires a cancelable uvalib-contents-navigate and link-click analytics on a click
  • passed: uvalib-contents (no-shadow-dom) › balances the headline, but not the narrow disclosure button
  • passed: uvalib-contents (no-shadow-dom) › sticky: stays in view and scrolls a long list to the current entry, not the page
  • passed: uvalib-contents (no-shadow-dom) › is not sticky on narrow screens
  • passed: uvalib-contents (no-shadow-dom) › draws dividers, nesting bars, link colour and a bold current entry with a bar
  • passed: uvalib-contents (no-shadow-dom) › shows a visible focus ring on its links (keyboard)
  • passed: uvalib-contents (no-shadow-dom) › passes axe (wide)
  • passed: uvalib-contents (no-shadow-dom) › passes axe in dark mode, wide and narrow (open)
  • passed: uvalib-contents (no-shadow-dom) › matches an entry with a query by its query, and one without whatever the query
  • passed: uvalib-contents (no-shadow-dom) › resolves hash-only entries against current when it is set
  • passed: uvalib-contents (no-shadow-dom) › accepts only valid author aria-current values, one page and one location
  • passed: uvalib-contents (no-shadow-dom) › a mark on an unsafe link does not turn off matching the page URL
  • passed: uvalib-contents (no-shadow-dom) › keeps lang and dir, and inline semantics, copied element by element
  • passed: uvalib-contents (no-shadow-dom) › keeps only the structural rules with no-style
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › collapses into a closed disclosure that the button opens and closes
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › starts open with the open attribute
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › opens with Enter and Space from the keyboard, with a visible focus ring
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › follows collapse-below, and 0 never collapses
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › goes back to the open list when the window widens
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › passes axe, closed and open
  • passed: uvalib-contents (no-shadow-dom) › narrow screens › reflows at 320px with no horizontal scroll
  • passed: uvalib-contents (no-shadow-dom) › headings-from › lists the h2 and h3 headings, nested, adding ids and keeping existing ones
  • passed: uvalib-contents (no-shadow-dom) › headings-from › makes ASCII slugs from accented text, unique against ids already on the page
  • passed: uvalib-contents (no-shadow-dom) › headings-from › keeps the ids on a second read, so links stay stable
  • passed: uvalib-contents (no-shadow-dom) › headings-from › follows levels: one level, or a wider range
  • passed: uvalib-contents (no-shadow-dom) › headings-from › shows nothing below min top-level entries (default 2)
  • passed: uvalib-contents (no-shadow-dom) › headings-from › marks the section in the hash with aria-current="location"
  • passed: uvalib-contents (no-shadow-dom) › headings-from › goes to the section in the hash once its heading has an id
  • passed: uvalib-contents (no-shadow-dom) › headings-from › follows headings added and retitled, and refresh() after other changes
  • passed: uvalib-contents (no-shadow-dom) › headings-from › skips headings inside itself when placed in the document
  • passed: uvalib-contents (no-shadow-dom) › headings-from › lets the children win over headings-from
  • passed: uvalib-contents (no-shadow-dom) › headings-from › warns once when nothing matches headings-from, and shows nothing
  • passed: uvalib-contents (no-shadow-dom) › headings-from › passes axe
  • passed: uvalib-contents light DOM styles › installs its styles in @layer uvalib, so page CSS wins
test/uvalib-date-histogram.test.ts — 80 passed (2.2 s)
  • passed: uvalib-date-histogram (shadow) › draws a month for every year in the span, naming each bar and keeping a zero as a gap
  • passed: uvalib-date-histogram (shadow) › rolls months into years, and fills the years between
  • passed: uvalib-date-histogram (shadow) › keeps a bare year, a day and an unparsed date as chips in a month chart
  • passed: uvalib-date-histogram (shadow) › scales a log bar by log(count + 1) and a linear bar by the count
  • passed: uvalib-date-histogram (shadow) › selects a month on click, clears it on a second click, and reports only the choice
  • passed: uvalib-date-histogram (shadow) › does not fire select or analytics when selected is set in script
  • passed: uvalib-date-histogram (shadow) › chooses an odd date as itself
  • passed: uvalib-date-histogram (shadow) › honours no-analytics on itself and on an ancestor, and still fires select
  • passed: uvalib-date-histogram (shadow) › moves between bars with the arrow keys, Home and End
  • passed: uvalib-date-histogram (shadow) › reads a two-column table and a year-by-month grid, and lets items win
  • passed: uvalib-date-histogram (shadow) › shows the counts again in Show as table
  • passed: uvalib-date-histogram (shadow) › slots the author table in shadow DOM and builds an equivalent one in light DOM
  • passed: uvalib-date-histogram (shadow) › is a labelled image in the strip variant, with no buttons and no events
  • passed: uvalib-date-histogram (shadow) › says when there is nothing to draw, and warns once for a bad granularity
  • passed: uvalib-date-histogram (shadow) › keeps the bar borders with no-style
  • passed: uvalib-date-histogram (shadow) › passes axe closed and open, and in dark mode
  • passed: uvalib-date-histogram (shadow) › does not scroll the page at 320px, and says when the months scroll inside
  • passed: uvalib-date-histogram (shadow) › does not press an overlapping chip for one bucket, and toggles an odd phrase
  • passed: uvalib-date-histogram (shadow) › paints the selection above an empty bar and names the month group and the table
  • passed: uvalib-date-histogram (shadow) › uses the focus token on a bar and on Show as table
  • passed: uvalib-date-histogram (shadow) › lists odd dates in Show as table, and lists items when they replace the child table
  • passed: uvalib-date-histogram (shadow) › keeps a headerless undated row and a year whose cells are dashes
  • passed: uvalib-date-histogram (shadow) › moves the roving tab stop when selected is set in script
  • passed: uvalib-date-histogram (shadow) › keeps a focused January clear of the sticky year label at 320px
  • passed: uvalib-date-histogram (shadow) › reserves the chart height before items arrive
  • passed: uvalib-date-histogram (shadow) › draws one bar per decade in half-century rows, with an empty decade as a gap
  • passed: uvalib-date-histogram (shadow) › selects a whole decade, and moves by decade and by half-century with the keys
  • passed: uvalib-date-histogram (shadow) › lists decades in Show as table, and reads a child table of years into decades
  • passed: uvalib-date-histogram (shadow) › picks month, year or decade bars with granularity="auto"
  • passed: uvalib-date-histogram (shadow) › draws one strip bar per decade
  • passed: uvalib-date-histogram (shadow) › fits decades in 320px without scrolling, and passes axe in dark mode
  • passed: uvalib-date-histogram (shadow) › passes axe for the strip and for an empty chart
  • passed: uvalib-date-histogram (no-shadow-dom) › draws a month for every year in the span, naming each bar and keeping a zero as a gap
  • passed: uvalib-date-histogram (no-shadow-dom) › rolls months into years, and fills the years between
  • passed: uvalib-date-histogram (no-shadow-dom) › keeps a bare year, a day and an unparsed date as chips in a month chart
  • passed: uvalib-date-histogram (no-shadow-dom) › scales a log bar by log(count + 1) and a linear bar by the count
  • passed: uvalib-date-histogram (no-shadow-dom) › selects a month on click, clears it on a second click, and reports only the choice
  • passed: uvalib-date-histogram (no-shadow-dom) › does not fire select or analytics when selected is set in script
  • passed: uvalib-date-histogram (no-shadow-dom) › chooses an odd date as itself
  • passed: uvalib-date-histogram (no-shadow-dom) › honours no-analytics on itself and on an ancestor, and still fires select
  • passed: uvalib-date-histogram (no-shadow-dom) › moves between bars with the arrow keys, Home and End
  • passed: uvalib-date-histogram (no-shadow-dom) › reads a two-column table and a year-by-month grid, and lets items win
  • passed: uvalib-date-histogram (no-shadow-dom) › shows the counts again in Show as table
  • passed: uvalib-date-histogram (no-shadow-dom) › slots the author table in shadow DOM and builds an equivalent one in light DOM
  • passed: uvalib-date-histogram (no-shadow-dom) › is a labelled image in the strip variant, with no buttons and no events
  • passed: uvalib-date-histogram (no-shadow-dom) › says when there is nothing to draw, and warns once for a bad granularity
  • passed: uvalib-date-histogram (no-shadow-dom) › keeps the bar borders with no-style
  • passed: uvalib-date-histogram (no-shadow-dom) › passes axe closed and open, and in dark mode
  • passed: uvalib-date-histogram (no-shadow-dom) › does not scroll the page at 320px, and says when the months scroll inside
  • passed: uvalib-date-histogram (no-shadow-dom) › does not press an overlapping chip for one bucket, and toggles an odd phrase
  • passed: uvalib-date-histogram (no-shadow-dom) › paints the selection above an empty bar and names the month group and the table
  • passed: uvalib-date-histogram (no-shadow-dom) › uses the focus token on a bar and on Show as table
  • passed: uvalib-date-histogram (no-shadow-dom) › lists odd dates in Show as table, and lists items when they replace the child table
  • passed: uvalib-date-histogram (no-shadow-dom) › keeps a headerless undated row and a year whose cells are dashes
  • passed: uvalib-date-histogram (no-shadow-dom) › moves the roving tab stop when selected is set in script
  • passed: uvalib-date-histogram (no-shadow-dom) › keeps a focused January clear of the sticky year label at 320px
  • passed: uvalib-date-histogram (no-shadow-dom) › reserves the chart height before items arrive
  • passed: uvalib-date-histogram (no-shadow-dom) › draws one bar per decade in half-century rows, with an empty decade as a gap
  • passed: uvalib-date-histogram (no-shadow-dom) › selects a whole decade, and moves by decade and by half-century with the keys
  • passed: uvalib-date-histogram (no-shadow-dom) › lists decades in Show as table, and reads a child table of years into decades
  • passed: uvalib-date-histogram (no-shadow-dom) › picks month, year or decade bars with granularity="auto"
  • passed: uvalib-date-histogram (no-shadow-dom) › draws one strip bar per decade
  • passed: uvalib-date-histogram (no-shadow-dom) › fits decades in 320px without scrolling, and passes axe in dark mode
  • passed: uvalib-date-histogram (no-shadow-dom) › passes axe for the strip and for an empty chart
  • passed: uvalib-date-histogram range-for › pulls a range on connect without writing it back or firing select
  • passed: uvalib-date-histogram range-for › writes the date range when a bar is chosen, and clears it back to min and max
  • passed: uvalib-date-histogram range-for › follows date-range-change and a value set in script
  • passed: uvalib-date-histogram range-for › pushes a selected set in script and does not fire select
  • passed: uvalib-date-histogram range-for › does not highlight every bar when the date range is its full span
  • passed: uvalib-date-histogram range-for › expands a partial month instead of clearing it
  • passed: uvalib-date-histogram range-for › pulls a date range mounted after the histogram
  • passed: uvalib-date-histogram range-for › keeps range-for in step after the histogram is moved
  • passed: uvalib-date-histogram range-for › follows a value set in script, and a reconnect does not write a rounded value back
  • passed: uvalib-date-histogram range-for › takes a value set while it was detached over its old selected
  • passed: uvalib-date-histogram range-for › lets a date range that holds a selection win over selected on first connect
  • passed: uvalib-date-histogram range-for › writes a chosen decade to the date range and highlights decades for a range set in script
  • passed: uvalib-date-histogram range-for › leaves a February selection on the 29th in a leap year
  • passed: uvalib-date-histogram forced colors and reduced motion › keeps a border on the bars in forced colors, and an outline on the selected one
  • passed: uvalib-date-histogram forced colors and reduced motion › drops the height transition when motion is reduced
  • passed: uvalib-date-histogram light DOM styles › installs its styles in @layer uvalib
test/uvalib-date-range-tz.test.ts (timezone) — 3 passed (23 ms)
  • passed: uvalib-date-range in a time zone west of UTC › runs in America/New_York
  • passed: uvalib-date-range in a time zone west of UTC › reads years from ISO dates without a time-zone shift (shadow)
  • passed: uvalib-date-range in a time zone west of UTC › reads years from ISO dates without a time-zone shift (no-shadow-dom)
test/uvalib-date-range.test.ts — 44 passed (1.8 s)
  • passed: uvalib-date-range (shadow) › renders two sliders and two date inputs spanning min..max by default
  • passed: uvalib-date-range (shadow) › shows the given value, clamped into min..max
  • passed: uvalib-date-range (shadow) › slider input fires date-range-change (bubbles, composed) keeping month/day
  • passed: uvalib-date-range (shadow) › start cannot pass end (sliders)
  • passed: uvalib-date-range (shadow) › slider values stay inside min..max dates
  • passed: uvalib-date-range (shadow) › date inputs fire date-range-change with values clamped to min/max and each other
  • passed: uvalib-date-range (shadow) › ignores a cleared date input
  • passed: uvalib-date-range (shadow) › renders nothing interactive and warns once when min/max are both missing
  • passed: uvalib-date-range (shadow) › renders nothing interactive and warns once when min/max are min missing
  • passed: uvalib-date-range (shadow) › renders nothing interactive and warns once when min/max are max missing
  • passed: uvalib-date-range (shadow) › renders nothing interactive and warns once when min/max are invalid
  • passed: uvalib-date-range (shadow) › renders nothing interactive and warns once when min/max are min after max
  • passed: uvalib-date-range (shadow) › renders once min and max become valid, without a second warning
  • passed: uvalib-date-range (shadow) › two instances have unique ids and every label points at an input
  • passed: uvalib-date-range (shadow) › names the sliders with the legend context
  • passed: uvalib-date-range (shadow) › has no axe violations
  • passed: uvalib-date-range (shadow) › has no axe violations after the sliders meet and dates are typed
  • passed: uvalib-date-range (shadow) › fires uvalib-date-range-value for every change, in script too, but not on first render
  • passed: uvalib-date-range (shadow) › works as BOV search-main.js drives it
  • passed: uvalib-date-range (shadow) › pointer dragging › dragging the start thumb right and the end thumb left changes the range
  • passed: uvalib-date-range (shadow) › pointer dragging › thumbs stacked at the right edge can still be pulled apart by dragging left
  • passed: uvalib-date-range (shadow) › pointer dragging › thumbs stacked at the left edge can still be pulled apart by dragging right
  • passed: uvalib-date-range (no-shadow-dom) › renders two sliders and two date inputs spanning min..max by default
  • passed: uvalib-date-range (no-shadow-dom) › shows the given value, clamped into min..max
  • passed: uvalib-date-range (no-shadow-dom) › slider input fires date-range-change (bubbles, composed) keeping month/day
  • passed: uvalib-date-range (no-shadow-dom) › start cannot pass end (sliders)
  • passed: uvalib-date-range (no-shadow-dom) › slider values stay inside min..max dates
  • passed: uvalib-date-range (no-shadow-dom) › date inputs fire date-range-change with values clamped to min/max and each other
  • passed: uvalib-date-range (no-shadow-dom) › ignores a cleared date input
  • passed: uvalib-date-range (no-shadow-dom) › renders nothing interactive and warns once when min/max are both missing
  • passed: uvalib-date-range (no-shadow-dom) › renders nothing interactive and warns once when min/max are min missing
  • passed: uvalib-date-range (no-shadow-dom) › renders nothing interactive and warns once when min/max are max missing
  • passed: uvalib-date-range (no-shadow-dom) › renders nothing interactive and warns once when min/max are invalid
  • passed: uvalib-date-range (no-shadow-dom) › renders nothing interactive and warns once when min/max are min after max
  • passed: uvalib-date-range (no-shadow-dom) › renders once min and max become valid, without a second warning
  • passed: uvalib-date-range (no-shadow-dom) › two instances have unique ids and every label points at an input
  • passed: uvalib-date-range (no-shadow-dom) › names the sliders with the legend context
  • passed: uvalib-date-range (no-shadow-dom) › has no axe violations
  • passed: uvalib-date-range (no-shadow-dom) › has no axe violations after the sliders meet and dates are typed
  • passed: uvalib-date-range (no-shadow-dom) › fires uvalib-date-range-value for every change, in script too, but not on first render
  • passed: uvalib-date-range (no-shadow-dom) › works as BOV search-main.js drives it
  • passed: uvalib-date-range (no-shadow-dom) › pointer dragging › dragging the start thumb right and the end thumb left changes the range
  • passed: uvalib-date-range (no-shadow-dom) › pointer dragging › thumbs stacked at the right edge can still be pulled apart by dragging left
  • passed: uvalib-date-range (no-shadow-dom) › pointer dragging › thumbs stacked at the left edge can still be pulled apart by dragging right
test/uvalib-filter-drawer.test.ts — 32 passed (2.0 s)
  • passed: uvalib-filter-drawer (shadow) › above the breakpoint: a plain sidebar, no button and no dialog
  • passed: uvalib-filter-drawer (shadow) › at the breakpoint: the button, with the count, opens a modal panel and Close takes focus
  • passed: uvalib-filter-drawer (shadow) › Escape closes it and focus returns to the button
  • passed: uvalib-filter-drawer (shadow) › a click on the backdrop closes it; a click inside the panel does not
  • passed: uvalib-filter-drawer (shadow) › the rest of the page is inert while it is open
  • passed: uvalib-filter-drawer (shadow) › inside <site-page>, its shadow chrome (the main landmark, the header's links) is inert too
  • passed: uvalib-filter-drawer (shadow) › keeps the same children, typed text and checked filters across open, close and resizes
  • passed: uvalib-filter-drawer (shadow) › widening past the breakpoint closes it and keeps focus in the filters
  • passed: uvalib-filter-drawer (shadow) › repeats the live regions named in live while open, and only then
  • passed: uvalib-filter-drawer (shadow) › reports open and close by the visitor with its label, not a resize, and honours no-analytics
  • passed: uvalib-filter-drawer (shadow) › passes axe open and closed, in light and dark mode
  • passed: uvalib-filter-drawer (shadow) › reflows at 320px: the panel fits with a strip of backdrop, no page scroll
  • passed: uvalib-filter-drawer (shadow) › forced colors: the panel keeps a visible edge
  • passed: uvalib-filter-drawer (shadow) › slides in, unless the visitor prefers reduced motion
  • passed: uvalib-filter-drawer (shadow) › fires open and close, and the methods work on narrow screens
  • passed: uvalib-filter-drawer (shadow) › takes children added later, and warns once about a bad breakpoint
  • passed: uvalib-filter-drawer (no-shadow-dom) › above the breakpoint: a plain sidebar, no button and no dialog
  • passed: uvalib-filter-drawer (no-shadow-dom) › at the breakpoint: the button, with the count, opens a modal panel and Close takes focus
  • passed: uvalib-filter-drawer (no-shadow-dom) › Escape closes it and focus returns to the button
  • passed: uvalib-filter-drawer (no-shadow-dom) › a click on the backdrop closes it; a click inside the panel does not
  • passed: uvalib-filter-drawer (no-shadow-dom) › the rest of the page is inert while it is open
  • passed: uvalib-filter-drawer (no-shadow-dom) › inside <site-page>, its shadow chrome (the main landmark, the header's links) is inert too
  • passed: uvalib-filter-drawer (no-shadow-dom) › keeps the same children, typed text and checked filters across open, close and resizes
  • passed: uvalib-filter-drawer (no-shadow-dom) › widening past the breakpoint closes it and keeps focus in the filters
  • passed: uvalib-filter-drawer (no-shadow-dom) › repeats the live regions named in live while open, and only then
  • passed: uvalib-filter-drawer (no-shadow-dom) › reports open and close by the visitor with its label, not a resize, and honours no-analytics
  • passed: uvalib-filter-drawer (no-shadow-dom) › passes axe open and closed, in light and dark mode
  • passed: uvalib-filter-drawer (no-shadow-dom) › reflows at 320px: the panel fits with a strip of backdrop, no page scroll
  • passed: uvalib-filter-drawer (no-shadow-dom) › forced colors: the panel keeps a visible edge
  • passed: uvalib-filter-drawer (no-shadow-dom) › slides in, unless the visitor prefers reduced motion
  • passed: uvalib-filter-drawer (no-shadow-dom) › fires open and close, and the methods work on narrow screens
  • passed: uvalib-filter-drawer (no-shadow-dom) › takes children added later, and warns once about a bad breakpoint
test/uvalib-filter.test.ts — 40 passed (478 ms)
  • passed: uvalib-filter (shadow) › renders a fieldset, legend and a checkbox with count per bucket
  • passed: uvalib-filter (shadow) › checks boxes from value, case-insensitively
  • passed: uvalib-filter (shadow) › checking a box fires filter-change with {name, value}
  • passed: uvalib-filter (shadow) › scope buttons are aria-pressed toggles that fire scope-change with {value}
  • passed: uvalib-filter (shadow) › names the scope group from scopesLabel, with a neutral default
  • passed: uvalib-filter (shadow) › shows no scope group without scopes
  • passed: uvalib-filter (shadow) › limit shows N buckets; see more doubles, see less halves back
  • passed: uvalib-filter (shadow) › keeps the expansion, checked state and focus when a fresh filter with the same name is set
  • passed: uvalib-filter (shadow) › collapses again when the filter name or the limit changes
  • passed: uvalib-filter (shadow) › unchecking removes the value case-insensitively (value and scopeValue)
  • passed: uvalib-filter (shadow) › draws focus rings from --uva-brand-orange on chips, buttons and checkboxes
  • passed: uvalib-filter (shadow) › without a limit shows everything and no see more/less
  • passed: uvalib-filter (shadow) › see more/less are type=button, control the list and name what they expand
  • passed: uvalib-filter (shadow) › two instances on one page have no duplicate ids
  • passed: uvalib-filter (shadow) › has no axe violations
  • passed: uvalib-filter (shadow) › has no axe violations expanded and interacted with
  • passed: uvalib-filter (shadow) › works as BOV search-main.js drives it
  • passed: uvalib-filter (shadow) › focus follows a bucket that moves › keeps focus on a checkbox that moves to the top
  • passed: uvalib-filter (shadow) › focus follows a bucket that moves › does not steal focus when the bucket is gone or focus was elsewhere
  • passed: uvalib-filter (shadow) › focus follows a bucket that moves › keeps focus on a scope chip and on see more across re-renders
  • passed: uvalib-filter (no-shadow-dom) › renders a fieldset, legend and a checkbox with count per bucket
  • passed: uvalib-filter (no-shadow-dom) › checks boxes from value, case-insensitively
  • passed: uvalib-filter (no-shadow-dom) › checking a box fires filter-change with {name, value}
  • passed: uvalib-filter (no-shadow-dom) › scope buttons are aria-pressed toggles that fire scope-change with {value}
  • passed: uvalib-filter (no-shadow-dom) › names the scope group from scopesLabel, with a neutral default
  • passed: uvalib-filter (no-shadow-dom) › shows no scope group without scopes
  • passed: uvalib-filter (no-shadow-dom) › limit shows N buckets; see more doubles, see less halves back
  • passed: uvalib-filter (no-shadow-dom) › keeps the expansion, checked state and focus when a fresh filter with the same name is set
  • passed: uvalib-filter (no-shadow-dom) › collapses again when the filter name or the limit changes
  • passed: uvalib-filter (no-shadow-dom) › unchecking removes the value case-insensitively (value and scopeValue)
  • passed: uvalib-filter (no-shadow-dom) › draws focus rings from --uva-brand-orange on chips, buttons and checkboxes
  • passed: uvalib-filter (no-shadow-dom) › without a limit shows everything and no see more/less
  • passed: uvalib-filter (no-shadow-dom) › see more/less are type=button, control the list and name what they expand
  • passed: uvalib-filter (no-shadow-dom) › two instances on one page have no duplicate ids
  • passed: uvalib-filter (no-shadow-dom) › has no axe violations
  • passed: uvalib-filter (no-shadow-dom) › has no axe violations expanded and interacted with
  • passed: uvalib-filter (no-shadow-dom) › works as BOV search-main.js drives it
  • passed: uvalib-filter (no-shadow-dom) › focus follows a bucket that moves › keeps focus on a checkbox that moves to the top
  • passed: uvalib-filter (no-shadow-dom) › focus follows a bucket that moves › does not steal focus when the bucket is gone or focus was elsewhere
  • passed: uvalib-filter (no-shadow-dom) › focus follows a bucket that moves › keeps focus on a scope chip and on see more across re-renders
test/uvalib-image-regions.test.ts — 39 passed (1.4 s)
  • passed: image regions parsing › reads xywh in percent and pixels, with or without the prefix
  • passed: image regions parsing › signed: negative x and y for a lightbox frame (issue #30); regions stay unsigned
  • passed: image regions parsing › converts to percent and clamps to the image
  • passed: image regions parsing › reads items and data-regions (JSON and the ; list)
  • passed: uvalib-image-regions (shadow) › draws child-list regions in percent and pixels of the natural size, numbered like the list
  • passed: uvalib-image-regions (shadow) › draws items, with links and descriptions, and numbering="none" hides the numbers
  • passed: uvalib-image-regions (shadow) › image-width and image-height set the pixel space (a IIIF derivative)
  • passed: uvalib-image-regions (shadow) › scales with the image when it resizes, and reserves its space before it loads
  • passed: uvalib-image-regions (shadow) › follows changes to the child list
  • passed: uvalib-image-regions (shadow) › hovering or focusing an entry highlights its region by more than colour, and back
  • passed: uvalib-image-regions (shadow) › clicking an outline focuses its entry, fires select, and reports its number only
  • passed: uvalib-image-regions (shadow) › fires a cancelable activate before focus moves, with index, item and entry
  • passed: uvalib-image-regions (shadow) › preventDefault on activate lets the page focus its own control in the entry
  • passed: uvalib-image-regions (shadow) › the host page’s actions in an entry stay its own
  • passed: uvalib-image-regions (shadow) › hide-outlines hides the overlay; the list stays
  • passed: uvalib-image-regions (shadow) › passes axe, plain and with an entry highlighted
  • passed: uvalib-image-regions (shadow) › passes axe in dark mode
  • passed: uvalib-image-regions (shadow) › forced colors: the outlines keep two system colours and the highlight is Highlight
  • passed: uvalib-image-regions (shadow) › reflows at 320px: the list stacks under the image, no page scroll
  • passed: uvalib-image-regions (shadow) › reduced motion: no transitions
  • passed: uvalib-image-regions (shadow) › no-style keeps the outlines and layout
  • passed: uvalib-image-regions (no-shadow-dom) › draws child-list regions in percent and pixels of the natural size, numbered like the list
  • passed: uvalib-image-regions (no-shadow-dom) › draws items, with links and descriptions, and numbering="none" hides the numbers
  • passed: uvalib-image-regions (no-shadow-dom) › image-width and image-height set the pixel space (a IIIF derivative)
  • passed: uvalib-image-regions (no-shadow-dom) › scales with the image when it resizes, and reserves its space before it loads
  • passed: uvalib-image-regions (no-shadow-dom) › follows changes to the child list
  • passed: uvalib-image-regions (no-shadow-dom) › hovering or focusing an entry highlights its region by more than colour, and back
  • passed: uvalib-image-regions (no-shadow-dom) › clicking an outline focuses its entry, fires select, and reports its number only
  • passed: uvalib-image-regions (no-shadow-dom) › fires a cancelable activate before focus moves, with index, item and entry
  • passed: uvalib-image-regions (no-shadow-dom) › preventDefault on activate lets the page focus its own control in the entry
  • passed: uvalib-image-regions (no-shadow-dom) › the host page’s actions in an entry stay its own
  • passed: uvalib-image-regions (no-shadow-dom) › hide-outlines hides the overlay; the list stays
  • passed: uvalib-image-regions (no-shadow-dom) › passes axe, plain and with an entry highlighted
  • passed: uvalib-image-regions (no-shadow-dom) › passes axe in dark mode
  • passed: uvalib-image-regions (no-shadow-dom) › forced colors: the outlines keep two system colours and the highlight is Highlight
  • passed: uvalib-image-regions (no-shadow-dom) › reflows at 320px: the list stacks under the image, no page scroll
  • passed: uvalib-image-regions (no-shadow-dom) › reduced motion: no transitions
  • passed: uvalib-image-regions (no-shadow-dom) › no-style keeps the outlines and layout
  • passed: uvalib-image-regions without JavaScript (not upgraded) › the child list is a plain ordered list with its links
test/uvalib-lightbox-api.test.ts — 30 passed (2.6 s)
  • passed: uvalib-lightbox details stay in the page (shadow) › keeps a data-details-id element in the page while shown and restores it exactly
  • passed: uvalib-lightbox details stay in the page (shadow) › restores a details element that had no slot and was not hidden
  • passed: uvalib-lightbox details stay in the page (shadow) › shows a details element that appears after the viewer opened from the address
  • passed: uvalib-lightbox details stay in the page (shadow) › shows a details element that gets its id while its image is open
  • passed: uvalib-lightbox details stay in the page (shadow) › shows a slot="details" child added while open, and follows a data-for change
  • passed: uvalib-lightbox details stay in the page (shadow) › does not put back a shown details element the page removed
  • passed: uvalib-lightbox open() and close() (shadow) › opens by id or index, returns false for an unknown item, and closes to the link
  • passed: uvalib-lightbox open() and close() (shadow) › fires open and close events for the visitor and the API, after the analytics
  • passed: uvalib-lightbox open() and close() (shadow) › moves focus where close({ focus }) says
  • passed: uvalib-lightbox open() and close() (shadow) › keeps showing an item whose link is removed, until the page closes it
  • passed: uvalib-lightbox open() and close() (shadow) › steps on from a removed item without coming back to it
  • passed: uvalib-lightbox open() and close() (shadow) › falls back to the first remaining link, else the lightbox, when the trigger is gone
  • passed: uvalib-lightbox open() and close() (shadow) › handles url-param history like Close: one entry, Back removed
  • passed: uvalib-lightbox open() and close() (shadow) › fires open with restored: true from the address, and close on Back
  • passed: uvalib-lightbox open() and close() (shadow) › has no axe violations after a programmatic open
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › keeps a data-details-id element in the page while shown and restores it exactly
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › restores a details element that had no slot and was not hidden
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › shows a details element that appears after the viewer opened from the address
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › shows a details element that gets its id while its image is open
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › shows a slot="details" child added while open, and follows a data-for change
  • passed: uvalib-lightbox details stay in the page (no-shadow-dom) › does not put back a shown details element the page removed
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › opens by id or index, returns false for an unknown item, and closes to the link
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › fires open and close events for the visitor and the API, after the analytics
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › moves focus where close({ focus }) says
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › keeps showing an item whose link is removed, until the page closes it
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › steps on from a removed item without coming back to it
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › falls back to the first remaining link, else the lightbox, when the trigger is gone
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › handles url-param history like Close: one entry, Back removed
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › fires open with restored: true from the address, and close on Back
  • passed: uvalib-lightbox open() and close() (no-shadow-dom) › has no axe violations after a programmatic open
test/uvalib-lightbox-regions.test.ts — 24 passed (2.4 s)
  • passed: uvalib-lightbox regions (shadow) › shows the outlines and their list for an image with data-regions, and a toggle
  • passed: uvalib-lightbox regions (shadow) › takes regions from the regions callback, with data-image-width for pixels
  • passed: uvalib-lightbox regions (shadow) › a JSON data-regions works; clicking an outline focuses its entry and reports its number
  • passed: uvalib-lightbox regions (shadow) › passes axe with regions, light and dark
  • passed: uvalib-lightbox regions (shadow) › an image without regions renders as before (no toggle, no regions element)
  • passed: uvalib-lightbox regions (no-shadow-dom) › shows the outlines and their list for an image with data-regions, and a toggle
  • passed: uvalib-lightbox regions (no-shadow-dom) › takes regions from the regions callback, with data-image-width for pixels
  • passed: uvalib-lightbox regions (no-shadow-dom) › a JSON data-regions works; clicking an outline focuses its entry and reports its number
  • passed: uvalib-lightbox regions (no-shadow-dom) › passes axe with regions, light and dark
  • passed: uvalib-lightbox regions (no-shadow-dom) › an image without regions renders as before (no toggle, no regions element)
  • passed: uvalib-lightbox regions list (shadow) › lends the page list to the viewer: same nodes, page listeners and styles, then gives it back
  • passed: uvalib-lightbox regions list (shadow) › stepping away while focus is in the list moves focus to Close
  • passed: uvalib-lightbox regions list (shadow) › keyboard: Tab from Close reaches the page buttons in order, each marking its region
  • passed: uvalib-lightbox regions list (shadow) › the regionsList callback, and a list wins over data-regions with one warning
  • passed: uvalib-lightbox regions list (shadow) › an outline click reaches the page as activate with its own entry, and can open its form
  • passed: uvalib-lightbox regions list (shadow) › links in the list are not taken for images; analytics carry no labels
  • passed: uvalib-lightbox regions list (shadow) › passes axe with a page list open, light and dark
  • passed: uvalib-lightbox regions list (no-shadow-dom) › lends the page list to the viewer: same nodes, page listeners and styles, then gives it back
  • passed: uvalib-lightbox regions list (no-shadow-dom) › stepping away while focus is in the list moves focus to Close
  • passed: uvalib-lightbox regions list (no-shadow-dom) › keyboard: Tab from Close reaches the page buttons in order, each marking its region
  • passed: uvalib-lightbox regions list (no-shadow-dom) › the regionsList callback, and a list wins over data-regions with one warning
  • passed: uvalib-lightbox regions list (no-shadow-dom) › an outline click reaches the page as activate with its own entry, and can open its form
  • passed: uvalib-lightbox regions list (no-shadow-dom) › links in the list are not taken for images; analytics carry no labels
  • passed: uvalib-lightbox regions list (no-shadow-dom) › passes axe with a page list open, light and dark
test/uvalib-lightbox-versions.test.ts — 115 passed (16.5 s)
  • passed: uvalib-lightbox versions: lazy module › a page without versions never loads the comparison; one with versions does, on open
  • passed: uvalib-lightbox versions (shadow) › checks the versions: drops entries without a label or a usable href, with one warning
  • passed: uvalib-lightbox versions (shadow) › fewer than two usable versions: no comparison, the image as before
  • passed: uvalib-lightbox versions (shadow) › takes versions from the versions callback
  • passed: uvalib-lightbox versions (shadow) › switch (default): one version at a time, the other loaded on first use, then announced
  • passed: uvalib-lightbox versions (shadow) › switching never moves the layout
  • passed: uvalib-lightbox versions (shadow) › changing mode never moves the photo, even on a phone where the controls wrap
  • passed: uvalib-lightbox versions (shadow) › wipe: a labelled slider, the divider, side labels and both notes
  • passed: uvalib-lightbox versions (shadow) › slider keys: arrows, Shift+arrow (10), Page Up/Down, Home and End; reported once settled
  • passed: uvalib-lightbox versions (shadow) › wipe: a single click on the photo moves the divider (no drag), announced once settled
  • passed: uvalib-lightbox versions (shadow) › wipe: a real mouse click on the photo moves the divider; a drag ending on the backdrop does not close
  • passed: uvalib-lightbox versions (shadow) › wipe in right-to-left: the divider follows the pointer from the right
  • passed: uvalib-lightbox versions (shadow) › jump buttons set the position; Original names and notes follow
  • passed: uvalib-lightbox versions (shadow) › the mode control switches between Switch, Reveal and Fade
  • passed: uvalib-lightbox versions (shadow) › three versions: Reveal and Fade pick which one is compared with the original
  • passed: uvalib-lightbox versions (shadow) › version-param: restored on open (no event), kept with replaceState, dropped on Next
  • passed: uvalib-lightbox versions (shadow) › version-param on a hash route, and a switch index
  • passed: uvalib-lightbox versions (shadow) › opening by a click ignores a leftover version in the address
  • passed: uvalib-lightbox versions (shadow) › Full size: the original and the version shown or compared, named, in every mode
  • passed: uvalib-lightbox versions (shadow) › no-analytics: the event still fires, nothing is reported
  • passed: uvalib-lightbox versions (shadow) › Previous and Next: each image has its own versions (or none), in the current mode
  • passed: uvalib-lightbox versions (shadow) › hold: the button and the O key show the original while held
  • passed: uvalib-lightbox versions (shadow) › keyboard order: the image controls, then the comparison, then the regions list
  • passed: uvalib-lightbox versions (shadow) › regions over the comparison: outlines win a click; elsewhere the click moves the divider
  • passed: uvalib-lightbox versions (shadow) › reduced motion: switching versions has no transition
  • passed: uvalib-lightbox versions (shadow) › forced colors: the divider and handle use system colours
  • passed: uvalib-lightbox versions (shadow) › passes axe in switch, light and dark
  • passed: uvalib-lightbox versions (shadow) › passes axe in wipe, light and dark
  • passed: uvalib-lightbox versions (shadow) › passes axe in fade, light and dark
  • passed: uvalib-lightbox versions (shadow) › reflows at 320px: the controls wrap, no page scroll
  • passed: uvalib-lightbox versions (shadow) › no-style keeps the stacking, the clip and the divider
  • passed: uvalib-lightbox versions (no-shadow-dom) › checks the versions: drops entries without a label or a usable href, with one warning
  • passed: uvalib-lightbox versions (no-shadow-dom) › fewer than two usable versions: no comparison, the image as before
  • passed: uvalib-lightbox versions (no-shadow-dom) › takes versions from the versions callback
  • passed: uvalib-lightbox versions (no-shadow-dom) › switch (default): one version at a time, the other loaded on first use, then announced
  • passed: uvalib-lightbox versions (no-shadow-dom) › switching never moves the layout
  • passed: uvalib-lightbox versions (no-shadow-dom) › changing mode never moves the photo, even on a phone where the controls wrap
  • passed: uvalib-lightbox versions (no-shadow-dom) › wipe: a labelled slider, the divider, side labels and both notes
  • passed: uvalib-lightbox versions (no-shadow-dom) › slider keys: arrows, Shift+arrow (10), Page Up/Down, Home and End; reported once settled
  • passed: uvalib-lightbox versions (no-shadow-dom) › wipe: a single click on the photo moves the divider (no drag), announced once settled
  • passed: uvalib-lightbox versions (no-shadow-dom) › wipe: a real mouse click on the photo moves the divider; a drag ending on the backdrop does not close
  • passed: uvalib-lightbox versions (no-shadow-dom) › wipe in right-to-left: the divider follows the pointer from the right
  • passed: uvalib-lightbox versions (no-shadow-dom) › jump buttons set the position; Original names and notes follow
  • passed: uvalib-lightbox versions (no-shadow-dom) › the mode control switches between Switch, Reveal and Fade
  • passed: uvalib-lightbox versions (no-shadow-dom) › three versions: Reveal and Fade pick which one is compared with the original
  • passed: uvalib-lightbox versions (no-shadow-dom) › version-param: restored on open (no event), kept with replaceState, dropped on Next
  • passed: uvalib-lightbox versions (no-shadow-dom) › version-param on a hash route, and a switch index
  • passed: uvalib-lightbox versions (no-shadow-dom) › opening by a click ignores a leftover version in the address
  • passed: uvalib-lightbox versions (no-shadow-dom) › Full size: the original and the version shown or compared, named, in every mode
  • passed: uvalib-lightbox versions (no-shadow-dom) › no-analytics: the event still fires, nothing is reported
  • passed: uvalib-lightbox versions (no-shadow-dom) › Previous and Next: each image has its own versions (or none), in the current mode
  • passed: uvalib-lightbox versions (no-shadow-dom) › hold: the button and the O key show the original while held
  • passed: uvalib-lightbox versions (no-shadow-dom) › keyboard order: the image controls, then the comparison, then the regions list
  • passed: uvalib-lightbox versions (no-shadow-dom) › regions over the comparison: outlines win a click; elsewhere the click moves the divider
  • passed: uvalib-lightbox versions (no-shadow-dom) › reduced motion: switching versions has no transition
  • passed: uvalib-lightbox versions (no-shadow-dom) › forced colors: the divider and handle use system colours
  • passed: uvalib-lightbox versions (no-shadow-dom) › passes axe in switch, light and dark
  • passed: uvalib-lightbox versions (no-shadow-dom) › passes axe in wipe, light and dark
  • passed: uvalib-lightbox versions (no-shadow-dom) › passes axe in fade, light and dark
  • passed: uvalib-lightbox versions (no-shadow-dom) › reflows at 320px: the controls wrap, no page scroll
  • passed: uvalib-lightbox versions (no-shadow-dom) › no-style keeps the stacking, the clip and the divider
  • passed: uvalib-lightbox versions with a different framing (shadow) › frame: percent and pixels (of the version's width and height) place it alike
  • passed: uvalib-lightbox versions with a different framing (shadow) › an unusable frame is ignored with one warning: the same framing as today
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop (centred): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop (off-centre): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop (pixels): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop in Reveal: the crop where it exists, the pattern elsewhere on its side; the original on the other
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop in Reveal, right to left: the crop side is on the right
  • passed: uvalib-lightbox versions with a different framing (shadow) › a crop in Fade: the original fades over its box; regions stay on the original's box
  • passed: uvalib-lightbox versions with a different framing (shadow) › a frame still needs a positive width and height (one warning)
  • passed: uvalib-lightbox versions with a different framing (shadow) › without a frame nothing changes: no sizer, no framed class, no regions inset
  • passed: uvalib-lightbox versions with a different framing (shadow) › the box holds every version at the original's scale; the original lines up in each
  • passed: uvalib-lightbox versions with a different framing (shadow) › switch: each version at its place; around the original, empty (a pattern, not content)
  • passed: uvalib-lightbox versions with a different framing (shadow) › switch: a version inside the original (a crop) hides it
  • passed: uvalib-lightbox versions with a different framing (shadow) › reveal: the version left of the divider; right of it, the original over its box and empty around it
  • passed: uvalib-lightbox versions with a different framing (shadow) › reveal in right-to-left: the version on the right of the divider
  • passed: uvalib-lightbox versions with a different framing (shadow) › fade: the original fades over its box; outside it, the version
  • passed: uvalib-lightbox versions with a different framing (shadow) › regions stay on the original's box in every mode and version
  • passed: uvalib-lightbox versions with a different framing (shadow) › no layout shift: when the framed version loads, and on mode change at 375px
  • passed: uvalib-lightbox versions with a different framing (shadow) › reflows at 320px
  • passed: uvalib-lightbox versions with a different framing (shadow) › passes axe with a frame in switch, light and dark
  • passed: uvalib-lightbox versions with a different framing (shadow) › passes axe with a frame in wipe, light and dark
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › frame: percent and pixels (of the version's width and height) place it alike
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › an unusable frame is ignored with one warning: the same framing as today
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop (centred): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop (off-centre): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop (pixels): negative x/y and w/h over 100; the box is the original's, the crop at its place
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop in Reveal: the crop where it exists, the pattern elsewhere on its side; the original on the other
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop in Reveal, right to left: the crop side is on the right
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a crop in Fade: the original fades over its box; regions stay on the original's box
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › a frame still needs a positive width and height (one warning)
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › without a frame nothing changes: no sizer, no framed class, no regions inset
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › the box holds every version at the original's scale; the original lines up in each
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › switch: each version at its place; around the original, empty (a pattern, not content)
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › switch: a version inside the original (a crop) hides it
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › reveal: the version left of the divider; right of it, the original over its box and empty around it
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › reveal in right-to-left: the version on the right of the divider
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › fade: the original fades over its box; outside it, the version
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › regions stay on the original's box in every mode and version
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › no layout shift: when the framed version loads, and on mode change at 375px
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › reflows at 320px
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › passes axe with a frame in switch, light and dark
  • passed: uvalib-lightbox versions with a different framing (no-shadow-dom) › passes axe with a frame in wipe, light and dark
  • passed: uvalib-lightbox starting version (shadow) › a click opens on the link’s starting version: its name, note and image first; no event
  • passed: uvalib-lightbox starting version (shadow) › Reveal and Fade starts: wipe:50, fade:30:2
  • passed: uvalib-lightbox starting version (shadow) › open() honours it; Previous and Next arrive on each link’s own start
  • passed: uvalib-lightbox starting version (shadow) › a version-param in the address wins on a restore; a click uses the start
  • passed: uvalib-lightbox starting version (shadow) › an unusable start is ignored with one warning: the original first
  • passed: uvalib-lightbox starting version (shadow) › a framed start (the original first, the link opens on its expanded frame): framed from the first paint
  • passed: uvalib-lightbox starting version (no-shadow-dom) › a click opens on the link’s starting version: its name, note and image first; no event
  • passed: uvalib-lightbox starting version (no-shadow-dom) › Reveal and Fade starts: wipe:50, fade:30:2
  • passed: uvalib-lightbox starting version (no-shadow-dom) › open() honours it; Previous and Next arrive on each link’s own start
  • passed: uvalib-lightbox starting version (no-shadow-dom) › a version-param in the address wins on a restore; a click uses the start
  • passed: uvalib-lightbox starting version (no-shadow-dom) › an unusable start is ignored with one warning: the original first
  • passed: uvalib-lightbox starting version (no-shadow-dom) › a framed start (the original first, the link opens on its expanded frame): framed from the first paint
test/uvalib-lightbox.test.ts — 71 passed (1.7 s)
  • passed: lightbox URLs › rewrites a IIIF size to !w,h and keeps the region and the query
  • passed: lightbox URLs › leaves TIFF and JPEG2000 IIIF URLs unchanged
  • passed: lightbox URLs › offers full size only for http(s) and PNG, JPEG, GIF or WebP data images
  • passed: lightbox URLs › keeps a hash query in the hash after the parameter is removed and written again
  • passed: lightbox URLs › leaves an ordinary image, including one under a /full/ folder, alone
  • passed: lightbox URLs › writes the deep-link param in the search, or in the hash on a hash route
  • passed: lightbox URLs › caps the IIIF request at 2000 device pixels and twice the screen density
  • passed: uvalib-lightbox (shadow) › opens a dialog named by the caption, focuses Close, and returns focus on close
  • passed: uvalib-lightbox (shadow) › uses data-caption, then alt, then the link text, then the title
  • passed: uvalib-lightbox (shadow) › steps with buttons and arrow keys, wraps, and swaps the arrows in RTL
  • passed: uvalib-lightbox (shadow) › hides previous, next and the counter when there is one image
  • passed: uvalib-lightbox (shadow) › closes on Escape and on the backdrop, and not on a click inside the panel
  • passed: uvalib-lightbox (shadow) › ignores a modified click and does not open the same image twice
  • passed: uvalib-lightbox (shadow) › keeps ?photo= in sync: push on open, replace on step, Back closes, Forward returns
  • passed: uvalib-lightbox (shadow) › opens from the URL without analytics, and Back stays on this page
  • passed: uvalib-lightbox (shadow) › puts the param in the hash on a hash route
  • passed: uvalib-lightbox (shadow) › does not reopen from a mutation after the visitor closes
  • passed: uvalib-lightbox (shadow) › shows slot details for the open image and moves data-details-id in and back
  • passed: uvalib-lightbox (shadow) › announces loading and a broken image, and refuses a javascript URL
  • passed: uvalib-lightbox (shadow) › requests a IIIF image at the viewport size and again on resize, without a new event
  • passed: uvalib-lightbox (shadow) › enhances links matched by selector, in document order, and skips another lightbox
  • passed: uvalib-lightbox (shadow) › warns once about a selector that is not valid CSS
  • passed: uvalib-lightbox (shadow) › reports nothing with no-analytics
  • passed: uvalib-lightbox (shadow) › uses the focus and surface tokens
  • passed: uvalib-lightbox (shadow) › has no axe violations closed or open
  • passed: uvalib-lightbox (shadow) › restores adjacent details on close and can open again
  • passed: uvalib-lightbox (shadow) › opens again after a DOM move, and Escape still closes it
  • passed: uvalib-lightbox (shadow) › does not restyle thumbnails, buttons, or closed details
  • passed: uvalib-lightbox (shadow) › paints the backdrop from the shadow token and details links from the link token
  • passed: uvalib-lightbox (shadow) › keeps a hash query in the hash when opening from the URL
  • passed: uvalib-lightbox (shadow) › stays open when another image is chosen before Back finishes
  • passed: uvalib-lightbox (shadow) › Escape closes a viewer that was reopened before the next frame
  • passed: uvalib-lightbox (shadow) › does not pull focus back to Close on the frame after open
  • passed: uvalib-lightbox (shadow) › drops the deep link when the last image is removed and does not reopen
  • passed: uvalib-lightbox (shadow) › does not show an SVG data URL or rewrite a TIFF IIIF image
  • passed: uvalib-lightbox (shadow) › ignores hidden links and links inside a details element
  • passed: uvalib-lightbox (shadow) › removes its click listener from an enclosing shadow root
  • passed: uvalib-lightbox (shadow) › hides the new-tab text and keeps a focus outline with no-style
  • passed: uvalib-lightbox (shadow) › keeps 44px controls with no-style
  • passed: uvalib-lightbox (no-shadow-dom) › opens a dialog named by the caption, focuses Close, and returns focus on close
  • passed: uvalib-lightbox (no-shadow-dom) › uses data-caption, then alt, then the link text, then the title
  • passed: uvalib-lightbox (no-shadow-dom) › steps with buttons and arrow keys, wraps, and swaps the arrows in RTL
  • passed: uvalib-lightbox (no-shadow-dom) › hides previous, next and the counter when there is one image
  • passed: uvalib-lightbox (no-shadow-dom) › closes on Escape and on the backdrop, and not on a click inside the panel
  • passed: uvalib-lightbox (no-shadow-dom) › ignores a modified click and does not open the same image twice
  • passed: uvalib-lightbox (no-shadow-dom) › keeps ?photo= in sync: push on open, replace on step, Back closes, Forward returns
  • passed: uvalib-lightbox (no-shadow-dom) › opens from the URL without analytics, and Back stays on this page
  • passed: uvalib-lightbox (no-shadow-dom) › puts the param in the hash on a hash route
  • passed: uvalib-lightbox (no-shadow-dom) › does not reopen from a mutation after the visitor closes
  • passed: uvalib-lightbox (no-shadow-dom) › shows slot details for the open image and moves data-details-id in and back
  • passed: uvalib-lightbox (no-shadow-dom) › announces loading and a broken image, and refuses a javascript URL
  • passed: uvalib-lightbox (no-shadow-dom) › requests a IIIF image at the viewport size and again on resize, without a new event
  • passed: uvalib-lightbox (no-shadow-dom) › enhances links matched by selector, in document order, and skips another lightbox
  • passed: uvalib-lightbox (no-shadow-dom) › warns once about a selector that is not valid CSS
  • passed: uvalib-lightbox (no-shadow-dom) › reports nothing with no-analytics
  • passed: uvalib-lightbox (no-shadow-dom) › uses the focus and surface tokens
  • passed: uvalib-lightbox (no-shadow-dom) › has no axe violations closed or open
  • passed: uvalib-lightbox (no-shadow-dom) › restores adjacent details on close and can open again
  • passed: uvalib-lightbox (no-shadow-dom) › opens again after a DOM move, and Escape still closes it
  • passed: uvalib-lightbox (no-shadow-dom) › does not restyle thumbnails, buttons, or closed details
  • passed: uvalib-lightbox (no-shadow-dom) › paints the backdrop from the shadow token and details links from the link token
  • passed: uvalib-lightbox (no-shadow-dom) › keeps a hash query in the hash when opening from the URL
  • passed: uvalib-lightbox (no-shadow-dom) › stays open when another image is chosen before Back finishes
  • passed: uvalib-lightbox (no-shadow-dom) › Escape closes a viewer that was reopened before the next frame
  • passed: uvalib-lightbox (no-shadow-dom) › does not pull focus back to Close on the frame after open
  • passed: uvalib-lightbox (no-shadow-dom) › drops the deep link when the last image is removed and does not reopen
  • passed: uvalib-lightbox (no-shadow-dom) › does not show an SVG data URL or rewrite a TIFF IIIF image
  • passed: uvalib-lightbox (no-shadow-dom) › ignores hidden links and links inside a details element
  • passed: uvalib-lightbox (no-shadow-dom) › removes its click listener from an enclosing shadow root
  • passed: uvalib-lightbox (no-shadow-dom) › hides the new-tab text and keeps a focus outline with no-style
  • passed: uvalib-lightbox (no-shadow-dom) › keeps 44px controls with no-style
test/uvalib-map.test.ts — 75 passed (9.2 s)
  • passed: uvalib-map (shadow) › draws a marker per place: a link (or a button) named with its count, sized by the count
  • passed: uvalib-map (shadow) › lists the same places with links, count badges and descriptions
  • passed: uvalib-map (shadow) › is a labelled region after a skip link and the key instructions
  • passed: uvalib-map (shadow) › Tab and the arrow keys move between markers, with a tooltip and the list entry highlighted
  • passed: uvalib-map (shadow) › Enter on a marker fires a cancelable select, and cancelling keeps the page
  • passed: uvalib-map (shadow) › hovering or focusing a list entry highlights its marker with a ring and a larger dot
  • passed: uvalib-map (shadow) › hovering a marker highlights its list entry until the pointer leaves the map
  • passed: uvalib-map (shadow) › opens on the places, or on center and zoom
  • passed: uvalib-map (shadow) › zoom buttons are 44px, named, focusable with a visible ring, and Space presses them
  • passed: uvalib-map (shadow) › keeps the attribution, readable and linked
  • passed: uvalib-map (shadow) › loads tiles from tile-url (stubbed) under the attribution
  • passed: uvalib-map (shadow) › turns off zoom, fade and marker animations under reduced motion
  • passed: uvalib-map (shadow) › keeps marker and control borders in forced colors
  • passed: uvalib-map (shadow) › dark mode: the tiles are filtered, the markers and controls are not
  • passed: uvalib-map (shadow) › dark mode: dark-tile-url swaps the tiles and drops the filter
  • passed: uvalib-map (shadow) › follows a change of the page scheme after it renders
  • passed: uvalib-map (shadow) › passes axe with the map rendered (light)
  • passed: uvalib-map (shadow) › reflows at 320px: no sideways scroll, the map a sensible height, the list under it
  • passed: uvalib-map (shadow) › reads the places from a child list, which stays the list
  • passed: uvalib-map (shadow) › without Leaflet shows only the list, with one console warning
  • passed: uvalib-map (shadow) › uses window.L when no leaflet property is set
  • passed: uvalib-map (shadow) › warns once without a label
  • passed: uvalib-map (shadow) › rebuilds after it is moved in the document
  • passed: uvalib-map (shadow) › reports select with the label and position, and zoom with the level; never a place
  • passed: uvalib-map (shadow) › reports nothing with no-analytics, and nothing on render or hover
  • passed: uvalib-map (shadow) › places whose markers would overlap › places on one point are one group at every zoom, named by the largest with the total
  • passed: uvalib-map (shadow) › places whose markers would overlap › two places in a group: "1 more place", and place-label sets the noun
  • passed: uvalib-map (shadow) › places whose markers would overlap › choosing a group of one point spreads a ring; each place is selectable; Escape closes it
  • passed: uvalib-map (shadow) › places whose markers would overlap › zooming out closes the ring and gives focus back to the group
  • passed: uvalib-map (shadow) › places whose markers would overlap › near places group, then part when the group is chosen (it zooms in)
  • passed: uvalib-map (shadow) › places whose markers would overlap › at the maximum zoom, near places that still overlap spread in a ring
  • passed: uvalib-map (shadow) › places whose markers would overlap › under reduced motion the zoom to a group jumps
  • passed: uvalib-map (shadow) › places whose markers would overlap › arrow keys, Home and End move between the visible markers, a group counting as one
  • passed: uvalib-map (shadow) › places whose markers would overlap › a grouped place in the list highlights its group, whose tooltip names it
  • passed: uvalib-map (shadow) › places whose markers would overlap › passes axe, target-size included, zoomed in on the example with co-located places
  • passed: uvalib-map (shadow) › places whose markers would overlap › keeps the group distinct in forced colors (a double border)
  • passed: uvalib-map (no-shadow-dom) › draws a marker per place: a link (or a button) named with its count, sized by the count
  • passed: uvalib-map (no-shadow-dom) › lists the same places with links, count badges and descriptions
  • passed: uvalib-map (no-shadow-dom) › is a labelled region after a skip link and the key instructions
  • passed: uvalib-map (no-shadow-dom) › Tab and the arrow keys move between markers, with a tooltip and the list entry highlighted
  • passed: uvalib-map (no-shadow-dom) › Enter on a marker fires a cancelable select, and cancelling keeps the page
  • passed: uvalib-map (no-shadow-dom) › hovering or focusing a list entry highlights its marker with a ring and a larger dot
  • passed: uvalib-map (no-shadow-dom) › hovering a marker highlights its list entry until the pointer leaves the map
  • passed: uvalib-map (no-shadow-dom) › opens on the places, or on center and zoom
  • passed: uvalib-map (no-shadow-dom) › zoom buttons are 44px, named, focusable with a visible ring, and Space presses them
  • passed: uvalib-map (no-shadow-dom) › keeps the attribution, readable and linked
  • passed: uvalib-map (no-shadow-dom) › loads tiles from tile-url (stubbed) under the attribution
  • passed: uvalib-map (no-shadow-dom) › turns off zoom, fade and marker animations under reduced motion
  • passed: uvalib-map (no-shadow-dom) › keeps marker and control borders in forced colors
  • passed: uvalib-map (no-shadow-dom) › dark mode: the tiles are filtered, the markers and controls are not
  • passed: uvalib-map (no-shadow-dom) › dark mode: dark-tile-url swaps the tiles and drops the filter
  • passed: uvalib-map (no-shadow-dom) › follows a change of the page scheme after it renders
  • passed: uvalib-map (no-shadow-dom) › passes axe with the map rendered (light)
  • passed: uvalib-map (no-shadow-dom) › reflows at 320px: no sideways scroll, the map a sensible height, the list under it
  • passed: uvalib-map (no-shadow-dom) › reads the places from a child list, which stays the list
  • passed: uvalib-map (no-shadow-dom) › without Leaflet shows only the list, with one console warning
  • passed: uvalib-map (no-shadow-dom) › uses window.L when no leaflet property is set
  • passed: uvalib-map (no-shadow-dom) › warns once without a label
  • passed: uvalib-map (no-shadow-dom) › rebuilds after it is moved in the document
  • passed: uvalib-map (no-shadow-dom) › reports select with the label and position, and zoom with the level; never a place
  • passed: uvalib-map (no-shadow-dom) › reports nothing with no-analytics, and nothing on render or hover
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › places on one point are one group at every zoom, named by the largest with the total
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › two places in a group: "1 more place", and place-label sets the noun
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › choosing a group of one point spreads a ring; each place is selectable; Escape closes it
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › zooming out closes the ring and gives focus back to the group
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › near places group, then part when the group is chosen (it zooms in)
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › at the maximum zoom, near places that still overlap spread in a ring
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › under reduced motion the zoom to a group jumps
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › arrow keys, Home and End move between the visible markers, a group counting as one
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › a grouped place in the list highlights its group, whose tooltip names it
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › passes axe, target-size included, zoomed in on the example with co-located places
  • passed: uvalib-map (no-shadow-dom) › places whose markers would overlap › keeps the group distinct in forced colors (a double border)
  • passed: uvalib-map (no-shadow-dom, page loads leaflet.css) › keeps 44px zoom buttons, its tooltip colours and attribution
  • passed: uvalib-map (no-style) › keeps the Leaflet layout and 44px targets in shadow DOM
  • passed: uvalib-map (no-style) › keeps the Leaflet layout and 44px targets no-shadow-dom
test/uvalib-metadata.test.ts — 53 passed (1.6 s)
  • passed: uvalib-metadata (shadow) › renders the rows of a <dl> child, with or without row <div>s
  • passed: uvalib-metadata (shadow) › does not show the source children themselves
  • passed: uvalib-metadata (shadow) › keeps download attributes and shows sizes, read as "EPUB, 184 KB"
  • passed: uvalib-metadata (shadow) › follows child changes
  • passed: uvalib-metadata (shadow) › lays label and value side by side when wide, stacked when narrow
  • passed: uvalib-metadata (shadow) › takes items from JS: text, links, downloads and lists
  • passed: uvalib-metadata (shadow) › shows unsafe links in items as text, with one warning
  • passed: uvalib-metadata (shadow) › adds the credit and rights rows: creator and organization first, rights and citation last
  • passed: uvalib-metadata (shadow) › copies the citation, announces "Copied" politely and reports it
  • passed: uvalib-metadata (shadow) › selects the citation and says so when copying fails
  • passed: uvalib-metadata (shadow) › has a 44px Copy citation button with a visible focus ring
  • passed: uvalib-metadata (shadow) › passes axe
  • passed: uvalib-metadata (shadow) › passes axe in dark mode
  • passed: uvalib-metadata (shadow) › reflows at 320px with no horizontal scroll
  • passed: uvalib-metadata (shadow) › shows unsafe links in the <dl> as text, with one warning
  • passed: uvalib-metadata (shadow) › adds a size once, never twice, and keeps copies apart from re-renders
  • passed: uvalib-metadata (shadow) › keeps lang and dir from the source <dt> and <dd>
  • passed: uvalib-metadata (shadow) › list-limit: the first N, a Show all N button, focus to the first revealed value, Show fewer
  • passed: uvalib-metadata (shadow) › list-limit: focus goes to the first revealed link
  • passed: uvalib-metadata (shadow) › data-limit on the <dd> or its list wins; data-limit="0" is no limit; data-limit-label names it
  • passed: uvalib-metadata (shadow) › no limit without list-limit, with 0 or junk; changing it shows the hidden values again
  • passed: uvalib-metadata (shadow) › keeps an acronym in the noun, and the label as written otherwise lowercased once
  • passed: uvalib-metadata (shadow) › list-limit applies to items lists too, with limit and limitLabel
  • passed: uvalib-metadata (shadow) › list-limit: a 2rem toggle (24px with no-style), forced colors, axe light and dark, 320px
  • passed: uvalib-metadata (shadow) › list-limit: a new source starts collapsed again
  • passed: uvalib-metadata (shadow) › keeps only the structural rules with no-style
  • passed: uvalib-metadata (no-shadow-dom) › renders the rows of a <dl> child, with or without row <div>s
  • passed: uvalib-metadata (no-shadow-dom) › does not show the source children themselves
  • passed: uvalib-metadata (no-shadow-dom) › keeps download attributes and shows sizes, read as "EPUB, 184 KB"
  • passed: uvalib-metadata (no-shadow-dom) › follows child changes
  • passed: uvalib-metadata (no-shadow-dom) › lays label and value side by side when wide, stacked when narrow
  • passed: uvalib-metadata (no-shadow-dom) › takes items from JS: text, links, downloads and lists
  • passed: uvalib-metadata (no-shadow-dom) › shows unsafe links in items as text, with one warning
  • passed: uvalib-metadata (no-shadow-dom) › adds the credit and rights rows: creator and organization first, rights and citation last
  • passed: uvalib-metadata (no-shadow-dom) › copies the citation, announces "Copied" politely and reports it
  • passed: uvalib-metadata (no-shadow-dom) › selects the citation and says so when copying fails
  • passed: uvalib-metadata (no-shadow-dom) › has a 44px Copy citation button with a visible focus ring
  • passed: uvalib-metadata (no-shadow-dom) › passes axe
  • passed: uvalib-metadata (no-shadow-dom) › passes axe in dark mode
  • passed: uvalib-metadata (no-shadow-dom) › reflows at 320px with no horizontal scroll
  • passed: uvalib-metadata (no-shadow-dom) › shows unsafe links in the <dl> as text, with one warning
  • passed: uvalib-metadata (no-shadow-dom) › adds a size once, never twice, and keeps copies apart from re-renders
  • passed: uvalib-metadata (no-shadow-dom) › keeps lang and dir from the source <dt> and <dd>
  • passed: uvalib-metadata (no-shadow-dom) › list-limit: the first N, a Show all N button, focus to the first revealed value, Show fewer
  • passed: uvalib-metadata (no-shadow-dom) › list-limit: focus goes to the first revealed link
  • passed: uvalib-metadata (no-shadow-dom) › data-limit on the <dd> or its list wins; data-limit="0" is no limit; data-limit-label names it
  • passed: uvalib-metadata (no-shadow-dom) › no limit without list-limit, with 0 or junk; changing it shows the hidden values again
  • passed: uvalib-metadata (no-shadow-dom) › keeps an acronym in the noun, and the label as written otherwise lowercased once
  • passed: uvalib-metadata (no-shadow-dom) › list-limit applies to items lists too, with limit and limitLabel
  • passed: uvalib-metadata (no-shadow-dom) › list-limit: a 2rem toggle (24px with no-style), forced colors, axe light and dark, 320px
  • passed: uvalib-metadata (no-shadow-dom) › list-limit: a new source starts collapsed again
  • passed: uvalib-metadata (no-shadow-dom) › keeps only the structural rules with no-style
  • passed: rightsName › names rightsstatements.org statements and Creative Commons licences and tools
test/uvalib-pager.test.ts — 51 passed (707 ms)
  • passed: uvalib-pager (shadow) › shows Previous and Next kickers, rel, and the section label
  • passed: uvalib-pager (shadow) › uses a custom label, and the mode default when label is empty
  • passed: uvalib-pager (shadow) › omits a missing side, hides when both are missing, and skips an empty title
  • passed: uvalib-pager (shadow) › separates the kicker and the title in the accessible name
  • passed: uvalib-pager (shadow) › truncates a long title without dropping it from the accessible name
  • passed: uvalib-pager (shadow) › numbers pages, marks the current one, and collapses a long range
  • passed: uvalib-pager (shadow) › clamps the current page and shows a short range in full
  • passed: uvalib-pager (shadow) › lets numbered pages win, and warns once for a bad count or template
  • passed: uvalib-pager (shadow) › does not link an unsafe href, once per element
  • passed: uvalib-pager (shadow) › reports page changes and not the label or URL
  • passed: uvalib-pager (shadow) › fires a cancelable uvalib-pager-navigate on a plain click only
  • passed: uvalib-pager (shadow) › ignores a canceled or non-primary click and still tracks a modified one
  • passed: uvalib-pager (shadow) › gives each control a target at least 24px and passes axe
  • passed: uvalib-pager (shadow) › does not scroll horizontally at 320px
  • passed: uvalib-pager (shadow) › keeps truncation with no-style
  • passed: uvalib-pager (shadow) › shows Load more, a polite count, and the next page
  • passed: uvalib-pager (shadow) › hides Load more when everything is shown and warns once when other modes are set
  • passed: uvalib-pager (shadow) › shows Showing N and keeps Load more without a total
  • passed: uvalib-pager (shadow) › lets has-more decide whether Load more shows
  • passed: uvalib-pager (shadow) › keeps focus on the new item when the last page turns has-more off
  • passed: uvalib-pager (shadow) › does not drop focus when Load more goes away before loaded()
  • passed: uvalib-pager (shadow) › moves focus to the first new item, from the list or from the host
  • passed: uvalib-pager (shadow) › keeps Load more usable in dark mode, forced colors, at 320px, and with no-style
  • passed: uvalib-pager (shadow) › shows a focus ring on the new item and does not focus a disabled field
  • passed: uvalib-pager (shadow) › finds the list inside a shadow root and the new card in a light-DOM grid
  • passed: uvalib-pager (no-shadow-dom) › shows Previous and Next kickers, rel, and the section label
  • passed: uvalib-pager (no-shadow-dom) › uses a custom label, and the mode default when label is empty
  • passed: uvalib-pager (no-shadow-dom) › omits a missing side, hides when both are missing, and skips an empty title
  • passed: uvalib-pager (no-shadow-dom) › separates the kicker and the title in the accessible name
  • passed: uvalib-pager (no-shadow-dom) › truncates a long title without dropping it from the accessible name
  • passed: uvalib-pager (no-shadow-dom) › numbers pages, marks the current one, and collapses a long range
  • passed: uvalib-pager (no-shadow-dom) › clamps the current page and shows a short range in full
  • passed: uvalib-pager (no-shadow-dom) › lets numbered pages win, and warns once for a bad count or template
  • passed: uvalib-pager (no-shadow-dom) › does not link an unsafe href, once per element
  • passed: uvalib-pager (no-shadow-dom) › reports page changes and not the label or URL
  • passed: uvalib-pager (no-shadow-dom) › fires a cancelable uvalib-pager-navigate on a plain click only
  • passed: uvalib-pager (no-shadow-dom) › ignores a canceled or non-primary click and still tracks a modified one
  • passed: uvalib-pager (no-shadow-dom) › gives each control a target at least 24px and passes axe
  • passed: uvalib-pager (no-shadow-dom) › does not scroll horizontally at 320px
  • passed: uvalib-pager (no-shadow-dom) › keeps truncation with no-style
  • passed: uvalib-pager (no-shadow-dom) › shows Load more, a polite count, and the next page
  • passed: uvalib-pager (no-shadow-dom) › hides Load more when everything is shown and warns once when other modes are set
  • passed: uvalib-pager (no-shadow-dom) › shows Showing N and keeps Load more without a total
  • passed: uvalib-pager (no-shadow-dom) › lets has-more decide whether Load more shows
  • passed: uvalib-pager (no-shadow-dom) › keeps focus on the new item when the last page turns has-more off
  • passed: uvalib-pager (no-shadow-dom) › does not drop focus when Load more goes away before loaded()
  • passed: uvalib-pager (no-shadow-dom) › moves focus to the first new item, from the list or from the host
  • passed: uvalib-pager (no-shadow-dom) › keeps Load more usable in dark mode, forced colors, at 320px, and with no-style
  • passed: uvalib-pager (no-shadow-dom) › shows a focus ring on the new item and does not focus a disabled field
  • passed: uvalib-pager (no-shadow-dom) › finds the list inside a shadow root and the new card in a light-DOM grid
  • passed: cards and pager on a page › passes axe as a page: one main, heading order, one landmark name
test/uvalib-photo-grid.test.ts — 32 passed (810 ms)
  • passed: uvalib-photo-grid (shadow) › lays justified rows out from width and height, and does not jump when the image arrives
  • passed: uvalib-photo-grid (shadow) › uses the loaded image when width and height are absent
  • passed: uvalib-photo-grid (shadow) › uses 140px rows on a phone unless row-height is set
  • passed: uvalib-photo-grid (shadow) › follows its own width: 140px rows in a 250px sidebar of a wide page, 220px in a wide grid on a phone
  • passed: uvalib-photo-grid (shadow) › shows a caption from the alt when the control has no visible text, and clears a repeated alt
  • passed: uvalib-photo-grid (shadow) › captions a nameless photo “Photo N” and warns once
  • passed: uvalib-photo-grid (shadow) › skips a child that is not a link or a button, and warns once
  • passed: uvalib-photo-grid (shadow) › skips an anchor that has no href, and warns once
  • passed: uvalib-photo-grid (shadow) › keeps a cleared alt for the lightbox and does not caption an aria-label
  • passed: uvalib-photo-grid (shadow) › renumbers a generated Photo N caption when a photo is inserted before it
  • passed: uvalib-photo-grid (shadow) › keeps the ratio, the 44px target and the focus ring with no-style
  • passed: uvalib-photo-grid (shadow) › reports nothing of its own, and a grid inside a lightbox opens the viewer
  • passed: uvalib-photo-grid (shadow) › draws a data-badge over the thumbnail and keeps the alt caption
  • passed: uvalib-photo-grid (shadow) › uses an authored badge, including one beside an aria-label
  • passed: uvalib-photo-grid (shadow) › keeps the badge readable in dark mode, forced colors, at 320px, and with no-style
  • passed: uvalib-photo-grid (shadow) › reads the caption before the badge and clears an alt that repeats the label
  • passed: uvalib-photo-grid (no-shadow-dom) › lays justified rows out from width and height, and does not jump when the image arrives
  • passed: uvalib-photo-grid (no-shadow-dom) › uses the loaded image when width and height are absent
  • passed: uvalib-photo-grid (no-shadow-dom) › uses 140px rows on a phone unless row-height is set
  • passed: uvalib-photo-grid (no-shadow-dom) › follows its own width: 140px rows in a 250px sidebar of a wide page, 220px in a wide grid on a phone
  • passed: uvalib-photo-grid (no-shadow-dom) › shows a caption from the alt when the control has no visible text, and clears a repeated alt
  • passed: uvalib-photo-grid (no-shadow-dom) › captions a nameless photo “Photo N” and warns once
  • passed: uvalib-photo-grid (no-shadow-dom) › skips a child that is not a link or a button, and warns once
  • passed: uvalib-photo-grid (no-shadow-dom) › skips an anchor that has no href, and warns once
  • passed: uvalib-photo-grid (no-shadow-dom) › keeps a cleared alt for the lightbox and does not caption an aria-label
  • passed: uvalib-photo-grid (no-shadow-dom) › renumbers a generated Photo N caption when a photo is inserted before it
  • passed: uvalib-photo-grid (no-shadow-dom) › keeps the ratio, the 44px target and the focus ring with no-style
  • passed: uvalib-photo-grid (no-shadow-dom) › reports nothing of its own, and a grid inside a lightbox opens the viewer
  • passed: uvalib-photo-grid (no-shadow-dom) › draws a data-badge over the thumbnail and keeps the alt caption
  • passed: uvalib-photo-grid (no-shadow-dom) › uses an authored badge, including one beside an aria-label
  • passed: uvalib-photo-grid (no-shadow-dom) › keeps the badge readable in dark mode, forced colors, at 320px, and with no-style
  • passed: uvalib-photo-grid (no-shadow-dom) › reads the caption before the badge and clears an alt that repeats the label
test/uvalib-results-count.test.ts — 24 passed (5.4 s)
  • passed: uvalib-results-count (shadow) › shows the summary with thousands separators
  • passed: uvalib-results-count (shadow) › words every case
  • passed: uvalib-results-count (shadow) › never announces the first render
  • passed: uvalib-results-count (shadow) › keeps the visible text in sync at once, and announces once the count settles
  • passed: uvalib-results-count (shadow) › announces the first count that arrives after an empty first render (async data)
  • passed: uvalib-results-count (shadow) › re-announces a count that recurs after a different one, even while still in the region
  • passed: uvalib-results-count (shadow) › says No … for 0 shown, and treats a blank or missing attribute as unset
  • passed: uvalib-results-count (shadow) › waits one second by default
  • passed: uvalib-results-count (shadow) › sends no analytics
  • passed: uvalib-results-count (shadow) › passes axe, light and dark, with AAA text
  • passed: uvalib-results-count (shadow) › wraps at 320px and keeps its text in forced colors
  • passed: uvalib-results-count (shadow) › keeps the live region hidden with no-style
  • passed: uvalib-results-count (no-shadow-dom) › shows the summary with thousands separators
  • passed: uvalib-results-count (no-shadow-dom) › words every case
  • passed: uvalib-results-count (no-shadow-dom) › never announces the first render
  • passed: uvalib-results-count (no-shadow-dom) › keeps the visible text in sync at once, and announces once the count settles
  • passed: uvalib-results-count (no-shadow-dom) › announces the first count that arrives after an empty first render (async data)
  • passed: uvalib-results-count (no-shadow-dom) › re-announces a count that recurs after a different one, even while still in the region
  • passed: uvalib-results-count (no-shadow-dom) › says No … for 0 shown, and treats a blank or missing attribute as unset
  • passed: uvalib-results-count (no-shadow-dom) › waits one second by default
  • passed: uvalib-results-count (no-shadow-dom) › sends no analytics
  • passed: uvalib-results-count (no-shadow-dom) › passes axe, light and dark, with AAA text
  • passed: uvalib-results-count (no-shadow-dom) › wraps at 320px and keeps its text in forced colors
  • passed: uvalib-results-count (no-shadow-dom) › keeps the live region hidden with no-style
test/uvalib-tabs.test.ts — 42 passed (776 ms)
  • passed: uvalib-tabs (shadow) › shows the first panel, hides the rest, and builds one tablist
  • passed: uvalib-tabs (shadow) › does not hide the first panel while upgrading
  • passed: uvalib-tabs (shadow) › pairs slot="tab" buttons with panels and hides the author buttons
  • passed: uvalib-tabs (shadow) › moves with arrows, Home and End, and flips arrows in RTL
  • passed: uvalib-tabs (shadow) › manual activation moves focus without selecting until Enter
  • passed: uvalib-tabs (shadow) › fires change for a click and a property, not for render or requestUpdate
  • passed: uvalib-tabs (shadow) › reports a click and a key, nothing on render, and honours no-analytics
  • passed: uvalib-tabs (shadow) › writes a url param on a click, and Back restores without another report
  • passed: uvalib-tabs (shadow) › opens the tab named in the url without reporting or rewriting it
  • passed: uvalib-tabs (shadow) › uses the hash, and keeps a named param inside a hash route
  • passed: uvalib-tabs (shadow) › warns once when selected matches nothing
  • passed: uvalib-tabs (shadow) › uses a custom label and wraps inside 320px
  • passed: uvalib-tabs (shadow) › passes axe in light and dark
  • passed: uvalib-tabs (shadow) › keeps a selected tab distinguishable in forced colors
  • passed: uvalib-tabs (shadow) › keeps the tab row and the hidden panel with no-style
  • passed: uvalib-tabs (shadow) › does not warn that selected changed during update
  • passed: uvalib-tabs (shadow) › does not update when a panel descendant changes slot
  • passed: uvalib-tabs (shadow) › keeps the roving tabindex on a click of the already selected tab
  • passed: uvalib-tabs (shadow) › does not switch tabs for an unrelated hash, and Back restores the initial tab
  • passed: uvalib-tabs (shadow) › hides a child that is not a tab, and does not reuse button ids
  • passed: uvalib-tabs (shadow) › reserves the tab row before the element is defined
  • passed: uvalib-tabs (no-shadow-dom) › shows the first panel, hides the rest, and builds one tablist
  • passed: uvalib-tabs (no-shadow-dom) › does not hide the first panel while upgrading
  • passed: uvalib-tabs (no-shadow-dom) › pairs slot="tab" buttons with panels and hides the author buttons
  • passed: uvalib-tabs (no-shadow-dom) › moves with arrows, Home and End, and flips arrows in RTL
  • passed: uvalib-tabs (no-shadow-dom) › manual activation moves focus without selecting until Enter
  • passed: uvalib-tabs (no-shadow-dom) › fires change for a click and a property, not for render or requestUpdate
  • passed: uvalib-tabs (no-shadow-dom) › reports a click and a key, nothing on render, and honours no-analytics
  • passed: uvalib-tabs (no-shadow-dom) › writes a url param on a click, and Back restores without another report
  • passed: uvalib-tabs (no-shadow-dom) › opens the tab named in the url without reporting or rewriting it
  • passed: uvalib-tabs (no-shadow-dom) › uses the hash, and keeps a named param inside a hash route
  • passed: uvalib-tabs (no-shadow-dom) › warns once when selected matches nothing
  • passed: uvalib-tabs (no-shadow-dom) › uses a custom label and wraps inside 320px
  • passed: uvalib-tabs (no-shadow-dom) › passes axe in light and dark
  • passed: uvalib-tabs (no-shadow-dom) › keeps a selected tab distinguishable in forced colors
  • passed: uvalib-tabs (no-shadow-dom) › keeps the tab row and the hidden panel with no-style
  • passed: uvalib-tabs (no-shadow-dom) › does not warn that selected changed during update
  • passed: uvalib-tabs (no-shadow-dom) › does not update when a panel descendant changes slot
  • passed: uvalib-tabs (no-shadow-dom) › keeps the roving tabindex on a click of the already selected tab
  • passed: uvalib-tabs (no-shadow-dom) › does not switch tabs for an unrelated hash, and Back restores the initial tab
  • passed: uvalib-tabs (no-shadow-dom) › hides a child that is not a tab, and does not reuse button ids
  • passed: uvalib-tabs (no-shadow-dom) › reserves the tab row before the element is defined
test/uvalib-tag-list.test.ts — 41 passed (617 ms)
  • passed: uvalib-tag-list (shadow) › renders a list named by its visible label, links and plain tags
  • passed: uvalib-tag-list (shadow) › hide-label keeps the name but hides it visually
  • passed: uvalib-tag-list (shadow) › warns once without a label
  • passed: uvalib-tag-list (shadow) › href-template makes tags without an href search links, URL-encoded
  • passed: uvalib-tag-list (shadow) › items wins over the children; unsafe hrefs become text with one warning
  • passed: uvalib-tag-list (shadow) › follows child changes and does not show the source children
  • passed: uvalib-tag-list (shadow) › with no tags, renders nothing visible and sets data-empty
  • passed: uvalib-tag-list (shadow) › limit shows that many and a Show all N toggle that keeps focus
  • passed: uvalib-tag-list (shadow) › no toggle when the tags fit the limit, or the limit is not positive
  • passed: uvalib-tag-list (shadow) › a tag click reports the list label and position, never the tag; navigate is cancelable
  • passed: uvalib-tag-list (shadow) › names lists by position unless track-label; nothing with no-analytics
  • passed: uvalib-tag-list (shadow) › tags and the toggle are 2rem targets, 0.5rem apart, with the focus ring; axe passes
  • passed: uvalib-tag-list (shadow) › passes axe in dark mode, with readable tags
  • passed: uvalib-tag-list (shadow) › wraps at 320px with no horizontal scroll
  • passed: uvalib-tag-list (shadow) › forced colors: plain tags and links keep their outlines
  • passed: uvalib-tag-list (shadow) › no-style keeps 24px targets and space between the list and the toggle
  • passed: uvalib-tag-list (shadow) › a blank href is no href: the template applies
  • passed: uvalib-tag-list (shadow) › keeps lang, dir and inline semantics, copied element by element
  • passed: uvalib-tag-list (shadow) › a click whose target is the text node still counts and routes
  • passed: uvalib-tag-list (shadow) › keeps the row layout and the hidden label with no-style
  • passed: uvalib-tag-list (no-shadow-dom) › renders a list named by its visible label, links and plain tags
  • passed: uvalib-tag-list (no-shadow-dom) › hide-label keeps the name but hides it visually
  • passed: uvalib-tag-list (no-shadow-dom) › warns once without a label
  • passed: uvalib-tag-list (no-shadow-dom) › href-template makes tags without an href search links, URL-encoded
  • passed: uvalib-tag-list (no-shadow-dom) › items wins over the children; unsafe hrefs become text with one warning
  • passed: uvalib-tag-list (no-shadow-dom) › follows child changes and does not show the source children
  • passed: uvalib-tag-list (no-shadow-dom) › with no tags, renders nothing visible and sets data-empty
  • passed: uvalib-tag-list (no-shadow-dom) › limit shows that many and a Show all N toggle that keeps focus
  • passed: uvalib-tag-list (no-shadow-dom) › no toggle when the tags fit the limit, or the limit is not positive
  • passed: uvalib-tag-list (no-shadow-dom) › a tag click reports the list label and position, never the tag; navigate is cancelable
  • passed: uvalib-tag-list (no-shadow-dom) › names lists by position unless track-label; nothing with no-analytics
  • passed: uvalib-tag-list (no-shadow-dom) › tags and the toggle are 2rem targets, 0.5rem apart, with the focus ring; axe passes
  • passed: uvalib-tag-list (no-shadow-dom) › passes axe in dark mode, with readable tags
  • passed: uvalib-tag-list (no-shadow-dom) › wraps at 320px with no horizontal scroll
  • passed: uvalib-tag-list (no-shadow-dom) › forced colors: plain tags and links keep their outlines
  • passed: uvalib-tag-list (no-shadow-dom) › no-style keeps 24px targets and space between the list and the toggle
  • passed: uvalib-tag-list (no-shadow-dom) › a blank href is no href: the template applies
  • passed: uvalib-tag-list (no-shadow-dom) › keeps lang, dir and inline semantics, copied element by element
  • passed: uvalib-tag-list (no-shadow-dom) › a click whose target is the text node still counts and routes
  • passed: uvalib-tag-list (no-shadow-dom) › keeps the row layout and the hidden label with no-style
  • passed: uvalib-tag-list (no-shadow-dom) reconnects › keeps the author children when moved or reconnected before its first update

Build and package tests (Node)

The npm package, the CDN build, size budgets, the skill and the generated reference.

node:test: 127 tests in 12 files, 126 passed, 0 failed, 1 skipped. Pass

test/cdn.test.mjs — 10 passed (12 ms)
  • passed: manifest lists every element and style, and each file exists
  • passed: manifest lists the plain modules (analytics.js), each built with its helpers
  • passed: manifest version equals the package.json version
  • passed: custom-elements.json is copied next to the entries
  • passed: no entry or chunk has a bare lit import (lit is bundled)
  • passed: site-page entry statically imports the header define (not tree-shaken away)
  • passed: site-header entry statically imports the site-main-nav define
  • passed: library-hours-setup entry statically imports the library-weekly-hours define
  • passed: ./manifest.json is exported and exists
  • passed: the agent skill is copied into dist-cdn/skills
test/dev-site.test.mjs — 2 passed (4 ms)
  • passed: pnpm lhci copies every site folder an example reads besides the CDN
  • passed: pnpm start serves every element entry and stylesheet from source or dist-cdn
test/font-fallback.test.mjs — 4 passed (17 ms)
  • passed: tokens.css: four fallback faces, one per Franklin Gothic face the kit serves
  • passed: base.css: four fallback faces, one per Franklin Gothic face the kit serves
  • passed: the font stack puts the fallback between Franklin Gothic and the system fonts
  • passed: every default for --uva-font-family in the source names the fallback
test/package.test.mjs — 6 passed (5.9 s)
  • passed: every path in exports exists (wildcards need a matching directory)
  • passed: the component entries and the base entry are exported with types
  • passed: npm pack lists the css and the manifest
  • passed: npm pack lists the agent skill
  • passed: manifest declares all tags
  • passed: dist imports nothing from src, no .ts paths, and only bare or relative-js specifiers
test/publish-cdn.test.mjs — 11 passed (436 ms)
  • passed: (a) fresh upload: put-object per file with if-none-match + immutable, then alias sync and invalidation
  • passed: (b) re-run: all keys present with matching ETags -> no puts, alias still syncs, exit 0
  • passed: (c) partial upload: only missing keys are put
  • passed: (d) existing key with a different ETag exits 3 before any put or alias change
  • passed: (e) an AWS error on list-objects-v2 aborts before any put
  • passed: (f) publishing an older version than one already present skips the alias
  • passed: the newest version updates the alias even when older ones exist
  • passed: (g) non-dry-run passes --cache-control as one argument
  • passed: rejects a missing or malformed version
  • passed: non-dry-run requires BUCKET and DISTRIBUTION_ID
  • passed: an empty or manifest-less dist-cdn aborts before any aws call
test/readme.test.mjs — 4 passed (110 ms)
  • passed: README contains both component markers, in order
  • passed: gen-reference --check passes for the committed README and components.md
  • passed: every manifest tag has a heading under the markers
  • passed: README links the playground and uses the v1 CDN alias, never legacy paths
test/release.test.mjs — 13 passed (5 ms)
  • passed: nextVersion bumps major, minor and patch
  • passed: nextVersion rejects an unknown bump or malformed version
  • passed: renderChangelog groups by conventional type
  • passed: renderChangelog omits release: and docs: commits and empty groups
  • passed: prependChangelog inserts under the header, newest first
  • passed: planRelease returns annotated-tag commands and an atomic push of main + tag
  • passed: planRelease refuses unsafe states
  • passed: planRelease requires a major bump for the first release (0.0.0 -> 1.0.0)
  • passed: localDate uses local time, not UTC
  • passed: checkCleanAfterBuild flags regenerated tracked files
  • passed: pushFailureHint lists the recovery steps in order
  • passed: runCommands prints the recovery hint and fails when git push throws
  • passed: runCommands stops at an earlier failure without the push hint, and succeeds otherwise
test/size-budget.test.mjs — 40 passed (6 ms)
  • passed: every manifest entry has a size budget, and every budget an entry
  • passed: an entry counts the chunks it imports, including site-page’s lazy site-footer
  • passed: site-page.js stays within its gzip budget
  • passed: site-header.js stays within its gzip budget
  • passed: site-main-nav.js stays within its gzip budget
  • passed: site-footer.js stays within its gzip budget
  • passed: site-analytics.js stays within its gzip budget
  • passed: uvalib-analytics.js stays within its gzip budget
  • passed: site-style.js stays within its gzip budget
  • passed: uvalib-filter.js stays within its gzip budget
  • passed: uvalib-date-range.js stays within its gzip budget
  • passed: uvalib-date-histogram.js stays within its gzip budget
  • passed: uvalib-breadcrumbs.js stays within its gzip budget
  • passed: uvalib-card.js stays within its gzip budget
  • passed: uvalib-card-grid.js stays within its gzip budget
  • passed: uvalib-pager.js stays within its gzip budget
  • passed: uvalib-contents.js stays within its gzip budget
  • passed: uvalib-metadata.js stays within its gzip budget
  • passed: uvalib-pagefind-search.js stays within its gzip budget
  • passed: uvalib-lightbox.js stays within its gzip budget
  • passed: uvalib-photo-grid.js stays within its gzip budget
  • passed: uvalib-chip-group.js stays within its gzip budget
  • passed: uvalib-tag-list.js stays within its gzip budget
  • passed: uvalib-results-count.js stays within its gzip budget
  • passed: site-alerts.js stays within its gzip budget
  • passed: site-hours-section.js stays within its gzip budget
  • passed: library-weekly-hours.js stays within its gzip budget
  • passed: library-hours-setup.js stays within its gzip budget
  • passed: events-section.js stays within its gzip budget
  • passed: bento-box.js stays within its gzip budget
  • passed: uvalib-tabs.js stays within its gzip budget
  • passed: uvalib-combobox.js stays within its gzip budget
  • passed: uvalib-image-regions.js stays within its gzip budget
  • passed: uvalib-map.js stays within its gzip budget
  • passed: uvalib-filter-drawer.js stays within its gzip budget
  • passed: uvalib-back-to-top.js stays within its gzip budget
  • passed: tokens.css stays within its gzip budget
  • passed: base.css stays within its gzip budget
  • passed: pagefind.css stays within its gzip budget
  • passed: analytics.js stays within its gzip budget
test/skill.test.mjs — 12 passed (1.5 s)
  • passed: SKILL.md frontmatter has the right name and a description of at most 1024 chars
  • passed: SKILL.md mentions every tag in the manifest
  • passed: SKILL.md never recommends the legacy CDN paths
  • passed: gen-reference --check passes for the committed components.md
  • passed: components.md mentions every tag in the manifest
  • passed: renderComponents lowercases attributes and labels listened-for events
  • passed: install-skill copies the skill, refuses to overwrite, and --force overwrites
  • passed: install-skill stamps the copy with the package version
  • passed: install-skill --check reports missing, unstamped and outdated copies, and is quiet when current
  • passed: install-skill --check only warns when the registry is unreachable or has no release
  • passed: install-skill rejects unknown subcommands with a usage message
  • passed: package.json exposes the bin
test/sync-main-nav.test.mjs — 11 passed (202 ms)
  • passed: extractMainNav reads the desktop main navigation from the rendered home page
  • passed: extractMainNav keeps a top-level link with no children as a direct link
  • passed: extractMainNav ignores the drifted "Mobile Main Nav" menu
  • passed: extractMainNav throws when the block is missing or too small
  • passed: the script writes a generated snapshot module from a saved page
  • passed: the script exits non-zero when the structure is not found
  • passed: the committed snapshot matches the saved page
  • passed: extractMainNav throws on structure it cannot read
  • passed: extractMainNav reads past a <nav> nested in the block, and uses the menu list
  • passed: extractMainNav leaves visually hidden text out of labels
  • passed: the script does not rewrite an unchanged snapshot (or its date)
test/sync-tokens.test.mjs — 4 passed (5 ms)
  • passed: parseScssVars keeps scalar vars and skips comments and maps
  • passed: parseScssVars skips values that reference another variable
  • passed: parseScssVars ignores trailing comments and @ rules
  • passed: parseScssVars: the last definition of a name wins, emitted once
test/testing.test.mjs — 9 passed, 1 skipped (1.4 s)
  • passed: exported as ./testing, npm only (not in the CDN build), axe as an optional peer
  • passed: the module imports neither Playwright nor @axe-core/playwright up front
  • passed: LIGHTHOUSE_RULES are the rules the installed Lighthouse turns on
  • passed: the accessibility-testing reference lists the same rules as its hand-written alternative
  • passed: strictAxe: waits for the upgrade, then the strict tags and every Lighthouse rule
  • skipped: strictAxe without @axe-core/playwright: a clear error naming the package
  • passed: waitForUpgrade: a selector and a timeout
  • passed: formatViolations: one line per violation
  • passed: stubMatomo: routes matomo.js and matomo.php only; siteId adds an init script
  • passed: in Chromium: stubMatomo, waitForUpgrade and matomoQueue on a CDN page