You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> Every media feature defines its “type” as either “range” or “discrete” in its definition table.
749
749
750
750
<p> “Discrete” media features,
751
-
like <aclass=propertydata-link-type=propdeschref=#descdef-light-leveltitle=light-level>light-level</a> or <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a>,
751
+
like <aclass=propertydata-link-type=propdeschref=#descdef-light-leveltitle=light-level>light-level</a> or <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a>,
Some <adata-link-type=dfnhref=#media-featuretitle="media features">media features</a> are designed to be written like this.
797
797
798
-
<p> For example, <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a> is typically written as <spanclass=cssdata-link-type=maybetitle=(script)>(script)</span> to test if scripting is enabled,
799
-
or <spanclass=cssdata-link-type=maybetitle="not (script)">not (script)</span> to see if it’s disabled.
798
+
<p> For example, <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a> is typically written as <spanclass=cssdata-link-type=maybetitle=(scripting)>(scripting)</span> to test if scripting is enabled,
799
+
or <spanclass=cssdata-link-type=maybetitle="not (scripting)">not (scripting)</span> to see if it’s disabled.
800
800
801
801
<p> It can still be given an explicit value as well,
802
-
with <spanclass=cssdata-link-type=maybetitle="(script: enabled)">(script: enabled)</span> equal to <spanclass=cssdata-link-type=maybetitle=(script)>(script)</span>,
803
-
and <spanclass=cssdata-link-type=maybetitle="(script: none)">(script: none)</span> equal to <spanclass=cssdata-link-type=maybetitle="not (script)">not (script)</span>.
802
+
with <spanclass=cssdata-link-type=maybetitle="(scripting: enabled)">(scripting: enabled)</span> equal to <spanclass=cssdata-link-type=maybetitle=(scripting)>(scripting)</span>,
803
+
and <spanclass=cssdata-link-type=maybetitle="(scripting: none)">(scripting: none)</span> equal to <spanclass=cssdata-link-type=maybetitle="not (scripting)">not (scripting)</span>.
<p> The <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a> media feature is used to query whether ECMAscript is supported
<p> The <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a> media feature is used to query whether ECMAscript is supported
<p> Some user agents have the ability to turn off ECMAscript support on a per script basis or per domain basis,
1866
1866
allowing some, but not all, scripts to run in a particular document.
1867
-
The <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a> media feature does not allow fine grained detection of which script is allowed to run.
1868
-
In this scenario, the value of the <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a> media feature should be <aclass=cssdata-link-for=scriptdata-link-type=maybehref=#valuedef-enabledtitle=enabled>enabled</a>
1867
+
The <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a> media feature does not allow fine grained detection of which script is allowed to run.
1868
+
In this scenario, the value of the <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a> media feature should be <aclass=cssdata-link-for=scriptingdata-link-type=maybehref=#valuedef-enabledtitle=enabled>enabled</a>
1869
1869
if scripts originating on the same domain as the document are allowed to run,
1870
-
and <aclass=cssdata-link-for=scriptdata-link-type=maybehref=#valuedef-nonetitle=none>none</a> otherwise.
1870
+
and <aclass=cssdata-link-for=scriptingdata-link-type=maybehref=#valuedef-nonetitle=none>none</a> otherwise.
1871
1871
1872
1872
<pclass=note> Note: A future level of CSS may extend this media feature to allow fine-grained detection of which script is allowed to run.
<adata-link-type=dfnhref=#media-featuretitle="media features">Media features</a> with numeric values can now be written in a <ahref=mq-range-context>range context</a>.
1941
1941
1942
1942
<li>
1943
-
The <aclass=propertydata-link-type=propdeschref=#descdef-scripttitle=script>script</a>, <aclass=propertydata-link-type=propdeschref=#descdef-pointertitle=pointer>pointer</a>, <aclass=propertydata-link-type=propdeschref=#descdef-hovertitle=hover>hover</a>, <aclass=propertydata-link-type=propdeschref=#descdef-light-leveltitle=light-level>light-level</a>, <aclass=propertydata-link-type=propdeschref=#descdef-updatestitle=updates>updates</a>, <aclass=propertydata-link-type=propdeschref=#descdef-overflow-blocktitle=overflow-block>overflow-block</a>, and <aclass=propertydata-link-type=propdeschref=#descdef-overflow-inlinetitle=overflow-inline>overflow-inline</a> media features were added.
1943
+
The <aclass=propertydata-link-type=propdeschref=#descdef-scriptingtitle=scripting>scripting</a>, <aclass=propertydata-link-type=propdeschref=#descdef-pointertitle=pointer>pointer</a>, <aclass=propertydata-link-type=propdeschref=#descdef-hovertitle=hover>hover</a>, <aclass=propertydata-link-type=propdeschref=#descdef-light-leveltitle=light-level>light-level</a>, <aclass=propertydata-link-type=propdeschref=#descdef-updatestitle=updates>updates</a>, <aclass=propertydata-link-type=propdeschref=#descdef-overflow-blocktitle=overflow-block>overflow-block</a>, and <aclass=propertydata-link-type=propdeschref=#descdef-overflow-inlinetitle=overflow-inline>overflow-inline</a> media features were added.
1944
1944
1945
1945
<li>
1946
1946
<spanclass=cssdata-link-type=maybetitle=or>or</span>, <spanclass=cssdata-link-type=maybetitle=and>and</span>, <aclass=cssdata-link-type=maybehref=#valuedef-onlytitle=only>only</a> and <aclass=cssdata-link-type=maybehref=#valuedef-nottitle=not>not</a> are disallowed from being recognized as media types,
0 commit comments