Behaviour SwRS-MDOKFSTUDIO-THEME-031
Cream text meets a 4.5 to 1 contrast and keeps the body colour after an admonition
When the Cream theme mode is shown, the extension SHALL give the foreground, description, link, six chart and error text colours a contrast of at least 4.5 to 1 on each of the editor, code block, block quote, hover widget, widget and input surfaces, and draw the paragraph after an admonition in the body text colour.
Part of StRS-MDOKFSTUDIO-THEME-002, outside the paths drawn on its map.
Scenarios 4
The situations the tests check; open one to read it.
nominalVariables of the stylesheet
Giventhe Cream colour variables
Whenevery text colour is compared with every surface
Thenall 60 pairs reach 4.5 to 1, and so do the button, secondary button, hover widget, input and icon pairs
nominalRendered pages
Giventhe Cream scenarios theme-zoom/v02 to v06
Whenthe page, note, inline code, fenced block, link and toolbar text colours are compared with their backgrounds, translucent ones flattened over the page
Thenevery pair reaches 4.5 to 1
nominalGallery on Cream
Giventhe admonition gallery forced to Cream in a 900 px pane (visual scenario theme-zoom/v03)
Whenthe preview is rendered
Thenthe paragraph after each admonition has the body text colour
boundaryOther themes
Giventhe admonition gallery in a light or a dark theme
Whenthe same page-wide gallery check runs
Thenthe paragraph after each admonition has the body text colour there too