Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions mediaqueries-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
</pre>

<pre class=biblio>
Expand Down Expand Up @@ -995,8 +996,17 @@ Evaluating Media Queries {#evaluating}
so that new syntax additions do not invalidate too much of a <<media-condition>> in older user agents.</span>

<dt><<media-feature>>
<dd>
The result is the result of evaluating the specified media feature.
<dd algorithm="evaluate media feature">
To get the result of evaluating a <<media-feature>> |media feature| in the given {{Document}} |document|:

1. Let |media feature name| be the |media feature|'s <<mf-name>>.

1. Let |emulated value| be the result of evaluating the <a>WebDriver BiDi media feature value</a> 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.
</dl>

If the result of any of the above productions
Expand Down