From 70dce99e160f2e4cfd145c52869e14bc3073411c Mon Sep 17 00:00:00 2001 From: Rik Cabanier Date: Tue, 29 May 2018 21:46:46 -0700 Subject: [PATCH 1/4] Added the first proposal for a 'reality' keyword. --- mediaqueries-5/Overview.bs | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/mediaqueries-5/Overview.bs b/mediaqueries-5/Overview.bs index e24f673f2c4..c3430da0080 100644 --- a/mediaqueries-5/Overview.bs +++ b/mediaqueries-5/Overview.bs @@ -148,6 +148,52 @@ Detecting the ambient light level: the 'light-level' feature +

+Detecting the display technology: the 'reality' feature

+ +
+Name: reality
+Value: 2D | mixed | virtual
+For: @media
+Type: discrete
+
+ +The 'reality' media feature is used to query the environment of the user's display +so the author can adjust the style of the document. +An author might choose to adjust the visuals and/or layout of the page depending on the display technology to increase the appeal or improve legibility. + +The following values are valid: + +
+
2D +
+The device is a traditional screen or monitor. The web page typically doesn't interact with other pages or applications. + +
mixed +
+The device is a mixed reality device. The web page is part of the real world which potentially contains other web pages or applications. + +
virtual +
+The device is a virtual reality device. + +
+ +Issue: Is there a need for the 'virtual' value? + +
+
+body { background-color: white; }
+p { color: black; }
+
+@media(reality: mixed) {
+  body { background-color: black; }
+  p { color: white; font-size: 16px; font-weight: 1100; }
+}
+
+
+ +