The content on this page was verified in December 2016 using Vivaldi 8.3.4193.19 for iOS with “Appearance & Theme” – “Force a dark theme on all websites” enabled.
The following frame does not set background-color or color in the authors stylesheet. In Vivaldi for iOS, the background is
set to a light gray by default, and the text color turns white due to the dark theme, which significantly reduces the contrast ratio.
The following frame has a background-color with 0% alpha channel (i.e., transparent). In Vivaldi for iOS, the background is set to a light
gray by default, and the text color turns white due to the dark theme, which significantly reduces the contrast ratio.
prefers-color-scheme: dark
The following box uses the CSS prefers-color-scheme media feature, so if the user has the OS set to dark theme, the background will be
black. In Vivaldi for iOS, the browser further inverts the colors, so text appears in black on a white background.
Text in box
light-dark()
The following box uses the CSS light-dark() function, so if the user has the OS set to dark theme, the background will be black. In Vivaldi
for iOS, the browser further inverts the colors, so text appears in black on a white background.
Text in box