Skip to content

Commit

Permalink
[e] (0) Add a note about hidden='' and CSS
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23428
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8295 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 19, 2013
1 parent 550a9ed commit fa21e0f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 18 November 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 19 November 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -74674,6 +74674,12 @@ <h3 id=the-hidden-attribute><span class=secno>8.1 </span>The <dfn title=attr-hid
requirements <a href=#hiddenCSS>using the rules suggested in the Rendering
section</a>.</span></p>

<p class=note>Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
cancel the effects of the <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute. Authors therefore
have to take care when writing their style sheets to make sure that the attribute is still styled
as expected.</p>

<div class=example>

<p>In the following skeletal example, the attribute is used to hide the Web game's main screen
Expand Down
8 changes: 7 additions & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 18 November 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 19 November 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -74674,6 +74674,12 @@ loadMySprites().then(runDemo);</pre>
requirements <a href=#hiddenCSS>using the rules suggested in the Rendering
section</a>.</span></p>

<p class=note>Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
cancel the effects of the <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute. Authors therefore
have to take care when writing their style sheets to make sure that the attribute is still styled
as expected.</p>

<div class=example>

<p>In the following skeletal example, the attribute is used to hide the Web game's main screen
Expand Down
6 changes: 6 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -83464,6 +83464,12 @@ loadMySprites().then(runDemo);</pre>
requirements <a href="#hiddenCSS">using the rules suggested in the Rendering
section</a>.</span></p>

<p class="note">Because this attribute is typically implemented using CSS, it's also possible to
override it using CSS. For instance, a rule that applies 'display: block' to all elements will
cancel the effects of the <code data-x="attr-hidden">hidden</code> attribute. Authors therefore
have to take care when writing their style sheets to make sure that the attribute is still styled
as expected.</p>

<div class="example">

<p>In the following skeletal example, the attribute is used to hide the Web game's main screen
Expand Down

0 comments on commit fa21e0f

Please sign in to comment.