@@ -1845,24 +1845,34 @@ <h2 class="heading settled heading" data-level=9 id=mf-scripting><span class=sec
18451845< h3 class ="heading settled heading " data-level =9.1 id =scripting > < span class =secno > 9.1 </ span > < span class =content >
18461846scripting</ span > < a class =self-link href =#scripting > </ a > </ h3 >
18471847
1848- < table class ="definition descdef mq " data-dfn-for =@media > < tr > < th > Name:< td > < dfn class =css-code data-dfn-for =@media data-dfn-type =descriptor data-export ="" id =descdef-scripting > scripting< a class =self-link href =#descdef-scripting > </ a > </ dfn > < tr > < th > For:< td > < a class =css-code data-link-type =at-rule href =http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-media title =@media > @media</ a > < tr > < th > Value:< td > none | enabled< tr > < th > Type:< td > discrete</ table >
1849- < p > The < a class =property data-link-type =propdesc href =#descdef-scripting title =scripting > scripting</ a > media feature is used to query whether ECMAscript is supported
1850- on the current document.
1848+ < table class ="definition descdef mq " data-dfn-for =@media > < tr > < th > Name:< td > < dfn class =css-code data-dfn-for =@media data-dfn-type =descriptor data-export ="" id =descdef-scripting > scripting< a class =self-link href =#descdef-scripting > </ a > </ dfn > < tr > < th > For:< td > < a class =css-code data-link-type =at-rule href =http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-media title =@media > @media</ a > < tr > < th > Value:< td > none | initial-only | enabled< tr > < th > Type:< td > discrete</ table >
1849+ < p > The < a class =property data-link-type =propdesc href =#descdef-scripting title =scripting > scripting</ a > media feature is used to query whether scripting languages,
1850+ such as JavaScript,
1851+ are supported on the current document.
18511852
18521853 < dl data-dfn-for =@media/scripting data-dfn-type =value >
18531854 < dt > < dfn class =css-code data-dfn-for =@media/scripting data-dfn-type =value data-export ="" id =valuedef-enabled > enabled< a class =self-link href =#valuedef-enabled > </ a > </ dfn >
18541855 < dd >
1855- Indicates that the user agent supports ECMAscript
1856+ Indicates that the user agent supports scripting of the page
18561857 and that support is active for the current document.
18571858
1859+ < dt > < dfn class =css-code data-dfn-for =@media/scripting data-dfn-type =value data-export ="" id =valuedef-initial-only > initial-only< a class =self-link href =#valuedef-initial-only > </ a > </ dfn >
1860+ < dd >
1861+ Indicates that scripting is enabled during the initial page load,
1862+ but is not supported afterwards.
1863+ Examples are printed pages,
1864+ or pre-rendering network proxies
1865+ that render a page on a server
1866+ and send a nearly-static version of the page to the user.
1867+
18581868 < dt > < dfn class =css-code data-dfn-for =@media/scripting data-dfn-type =value data-export ="" id =valuedef-none > none< a class =self-link href =#valuedef-none > </ a > </ dfn >
18591869 < dd >
18601870 Indicates that the user agent will not run scripts for this document;
1861- either it doesn’t support ECMAScript ,
1871+ either it doesn’t support a scripting language ,
18621872 or the support isn’t active for the current document.
18631873 </ dl >
18641874
1865- < p > Some user agents have the ability to turn off ECMAscript support on a per script basis or per domain basis,
1875+ < p > Some user agents have the ability to turn off scripting support on a per script basis or per domain basis,
18661876 allowing some, but not all, scripts to run in a particular document.
18671877 The < a class =property data-link-type =propdesc href =#descdef-scripting title =scripting > scripting</ a > media feature does not allow fine grained detection of which script is allowed to run.
18681878 In this scenario, the value of the < a class =property data-link-type =propdesc href =#descdef-scripting title =scripting > scripting</ a > media feature should be < a class =css data-link-for =scripting data-link-type =maybe href =#valuedef-enabled title =enabled > enabled</ a >
@@ -1871,10 +1881,6 @@ <h3 class="heading settled heading" data-level=9.1 id=scripting><span class=secn
18711881
18721882< p class =note > Note: A future level of CSS may extend this media feature to allow fine-grained detection of which script is allowed to run.
18731883
1874- < p class =issue id =issue-b8cd6af1 > < a class =self-link href =#issue-b8cd6af1 > </ a >
1875- What about a value for "runs script on load, but not continuously",
1876- like Opera Mini?
1877-
18781884< h2 class ="heading settled heading " data-level =10 id =assorted-issues > < span class =secno > 10 </ span > < span class =content >
18791885Assorted Issues</ span > < a class =self-link href =#assorted-issues > </ a > </ h2 >
18801886
@@ -2136,7 +2142,8 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
21362142< li > height, < a href =#descdef-height title ="section 4.2 "> 4.2</ a >
21372143< li > hover< ul > < li > descriptor for @media, < a href =#descdef-hover title ="section 7.2 "> 7.2</ a >
21382144< li > value for @media/hover, < a href =#valuedef-hover title ="section 7.2 "> 7.2</ a >
2139- </ ul > < li > interlace, < a href =#valuedef-interlace title ="section 5.2 "> 5.2</ a >
2145+ </ ul > < li > initial-only, < a href =#valuedef-initial-only title ="section 9.1 "> 9.1</ a >
2146+ < li > interlace, < a href =#valuedef-interlace title ="section 5.2 "> 5.2</ a >
21402147< li > light-level, < a href =#descdef-light-level title ="section 8.1 "> 8.1</ a >
21412148< li > <media-feature>, < a href =#typedef-media-feature title ="section 3 "> 3</ a >
21422149< li > media feature, < a href =#media-feature title ="section 2.4 "> 2.4</ a >
@@ -2213,7 +2220,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
22132220< tr > < th scope-row =""> < a data-property =""> pointer</ a > < td > none | coarse | fine< td > < td > discrete
22142221< tr > < th scope-row =""> < a data-property =""> hover</ a > < td > none | on-demand | over< td > < td > discrete
22152222< tr > < th scope-row =""> < a data-property =""> light-level</ a > < td > dim | normal | washed< td > < td > discrete
2216- < tr > < th scope-row =""> < a data-property =""> scripting</ a > < td > none | enabled< td > < td > discrete</ table > </ div >
2223+ < tr > < th scope-row =""> < a data-property =""> scripting</ a > < td > none | initial-only | enabled< td > < td > discrete</ table > </ div >
22172224
22182225
22192226< h2 class ="no-num heading settled " id =issues-index > < span class =content > Issues Index</ span > < a class =self-link href =#issues-index > </ a > </ h2 > < div style ="counter-reset: issue "> < div class =issue >
@@ -2249,10 +2256,6 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
22492256 as discussed in http://lists.w3.org/Archives/Public/www-style/2013Oct/0672.html
22502257
22512258 < a href =#issue-406b4c65 > ↵ </ a > </ div > < div class =issue >
2252- What about a value for "runs script on load, but not continuously",
2253- like Opera Mini?
2254-
2255- < a href =#issue-b8cd6af1 > ↵ </ a > </ div > < div class =issue >
22562259 We need a media feature (or set of media features) to detect the type of keyboard available.
22572260 It should be able to distinguish between full computer keyboards, phone dial pads, tv remotes, or virtual keyboards.
22582261 As an attempt at an exhaustive list is likely to fail,
0 commit comments