-ms-high-contrast media feature
How do I make an -ms-high-contrast media feature?
What is a -ms-high-contrast media feature? How do you make a -ms-high-contrast media feature? This script and codes were developed by Patrick H. Lauke on 25 September 2022, Sunday.
-ms-high-contrast media feature - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>-ms-high-contrast media feature</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>-ms-high-contrast media feature</h1>
<p>This demonstration visually illustrates which of the <a href="https://msdn.microsoft.com/en-us/library/windows/apps/hh465764.aspx?f=255&MSPPError=-2147217396"><code>-ms-high-contrast</code> media feature</a> values (<code>active</code>, <code>black-on-white</code>, <code>white-on-black</code>) currently evaluate to true. This demonstration requires Internet Explorer or Edge.
<p id="active-off"><code>(-ms-high-contrast:active)</code> is false</p>
<p id="active-on"><code>(-ms-high-contrast:active)</code> is true</p>
<p id="bow-off"><code>(-ms-high-contrast:black-on-white)</code> is false</p>
<p id="bow-on"><code>(-ms-high-contrast:black-on-white)</code> is true</p>
<p id="wob-off"><code>(-ms-high-contrast:white-on-black)</code> is false</p>
<p id="wob-on"><code>(-ms-high-contrast:white-on-black)</code> is true</p>
</body>
</html>
-ms-high-contrast media feature - Script Codes CSS Codes
html { font-family: Arial, Helvetica, sans-serif }
#active-on, #bow-on, #wob-on { display: none; }
@media (-ms-high-contrast:active) { #active-on { display: block; } #active-off { display: none; }
}
@media (-ms-high-contrast:black-on-white) { #bow-on { display: block; } #bow-off { display: none; }
}
@media (-ms-high-contrast:white-on-black) { #wob-on { display: block; } #wob-off { display: none; }
}
Developer | Patrick H. Lauke |
Username | patrickhlauke |
Uploaded | September 25, 2022 |
Rating | 3 |
Size | 1,792 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Sooba | Sooba | 2,516 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Starfield old school style | Bolloxim | 5,214 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Simple content swap | Snografx | 1,859 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
Blank Starter | Mhartington | 2,171 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!