From cae483d386267c16f1651a24fc055f6233d4eb1d Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Mon, 23 Feb 2026 15:49:01 +0100 Subject: [PATCH] Respect "WebDriver BiDi media feature value" --- mediaqueries-4/Overview.bs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mediaqueries-4/Overview.bs b/mediaqueries-4/Overview.bs index 0b9b4c37ad24..a063a7b67c29 100644 --- a/mediaqueries-4/Overview.bs +++ b/mediaqueries-4/Overview.bs @@ -49,6 +49,7 @@ spec:css-values-3; type:grammar; text:| spec:css-values-3; type:grammar; text:? spec:css-conditional-3; type:at-rule; text:@media spec:selectors-4; type:selector; text::hover +spec:webdriver-bidi; type:dfn; text:WebDriver BiDi media feature value
@@ -995,8 +996,17 @@ Evaluating Media Queries {#evaluating}
 			so that new syntax additions do not invalidate too much of a <> in older user agents.
 
 		
<> -
- The result is the result of evaluating the specified media feature. +
+ To get the result of evaluating a <> |media feature| in the given {{Document}} |document|: + + 1. Let |media feature name| be the |media feature|'s <>. + + 1. Let |emulated value| be the result of evaluating the WebDriver BiDi media feature value for the + |document| and |media feature name|. + + 1. If |emulated value| is not null, return |emulated value|. + + 1. Otherwise, return the result of evaluating the specified media feature. If the result of any of the above productions