Skip to content

Commit

Permalink
Tweak :defined definition to be a better HTML patch
Browse files Browse the repository at this point in the history
Closes #439.
  • Loading branch information
domenic committed Mar 21, 2016
1 parent 22aaa78 commit 8305e48
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions spec/custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@
}]
}],
localBiblio: {
'FOUC': {
title: 'Flash of unstyled content',
href: 'https://en.wikipedia.org/wiki/Flash_of_unstyled_content',
publisher: "Wikipedia"
},
'WEBIDL': {
title: 'Web IDL',
href: 'https://heycam.github.io/webidl/',
Expand Down Expand Up @@ -500,6 +495,18 @@ <h3>HTML+: Element interfaces</h3>

</section>

<section id="unresolved-element-pseudoclass">
<h3>HTML+: Pseudo-classes</h2>

<p class="monkeypatch">The following should be added to HTML's <a href="https://html.spec.whatwg.org/#pseudo-classes">pseudo-classes</a> section.</p>

<dl>
<dt><dfn data-dfn-type="selector"><code>:defined</code></dfn></dt>
<dd>The <a><code>:defined</code></a> pseudo-class must match any element that is <a>defined</a>.</p></dd>
</dl>

</section>

<section id="element-modifications-to-dom">
<h3>DOM+: Elements</h3>

Expand Down Expand Up @@ -1024,22 +1031,6 @@ <h3>HTML+: Parsing XHTML documents</h3>

</section>

<section id="unresolved-element-pseudoclass">
<h2>Additions to CSS</h2>

<p class="monkeypatch">The following should be added to some relevant CSS specification. Or maybe it would belong in HTML? It looks like it's mostly a collaboration so far?</p>

<section>
<h3>The Defined Element Pseudo-class: <a>':defined'</a></h3>

<p>The <dfn id="defined-pseudo">':defined'</dfn> pseudo-class applies to elements that are <a>defined</a>.</p>

<p class="note">
The <a>':defined'</a> pseudo-class can be used to mitigate the flash of unstyled content [[FOUC]] issues with <a data-lt="custom element">custom elements</a>.
</p>
</section>
</section>

<section id="semantics">
<h2>Custom Element Semantics</h2>
<p>The default <a href="https://www.w3.org/TR/html/dom.html#semantics-0">semantics</a> of a <a>custom element</a> is dependent upon the form in which it is instantiated:</p>
Expand Down

0 comments on commit 8305e48

Please sign in to comment.