<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28893</bug_id>
          
          <creation_ts>2015-07-05 11:42:26 +0000</creation_ts>
          <short_desc>Specify &lt;noscript&gt;&apos;s `display` magic via CSS&apos;s `scripting` media feature</short_desc>
          <delta_ts>2015-08-30 08:28:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Rebert">w3bugs</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121599</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2015-07-05 11:42:26 +0000</bug_when>
    <thetext>Spec section: https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements

&gt; The user agent is expected to force the &apos;display&apos; property of noscript elements for whom scripting is enabled to compute to &apos;none&apos;, irrespective of CSS rules.


Can&apos;t this just be specified via CSS instead using the `scripting` media feature (http://dev.w3.org/csswg/mediaqueries-4/#scripting )? Something like:
```
noscript { display: block; }

@media (scripting: none) {
    noscript {
        display: none !important;
    }
}
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121765</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2015-07-06 08:18:43 +0000</bug_when>
    <thetext>(In reply to Chris Rebert from comment #0)

Erm, rather, make that:
```
@media (scripting: none) {
    noscript { display: block; }
}
@media (scripting: enabled), (scripting: initial-only) {
    noscript { display: none !important; }
}
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122903</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2015-08-30 08:28:21 +0000</bug_when>
    <thetext>Fixed by https://github.com/whatwg/html/pull/25</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>