Skip to content

Commit

Permalink
Unstash, fix conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Sep 14, 2018
1 parent 0d0ca6d commit 6790921
Show file tree
Hide file tree
Showing 2 changed files with 647 additions and 868 deletions.
12 changes: 9 additions & 3 deletions css-aliases/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
<pre class='metadata'>
Shortname: css-extensions
Level: 1
Status: ED
Status: UD
Group: CSSWG
Work Status: exploring
ED: http://tabatkins.github.io/specs/css-aliases/
Editor: Tab Atkins, Google, http://xanthir.com/contact/
Abstract: This specification defines methods for authors to extend and enhance various CSS features.
</pre>

<pre class=link-defaults>
spec:css-values-4; type:dfn; text:identifier
</pre>

<h2 id='intro'>
Introduction</h2>

Expand Down Expand Up @@ -45,10 +51,10 @@ Custom Selectors</h2>

A <dfn>custom selector</dfn> is defined with the ''@custom-selector'' rule:

<pre class='prod'><dfn>@custom-selector</dfn> = @custom-selector <<extension-name>> <<selector>> ;</pre>
<pre class='prod'><dfn>@custom-selector</dfn> = @custom-selector <<extension-name>> <<selector-list>> ;</pre>

This defines a <a>custom selector</a> which is written as a <a spec=selectors>pseudo-class</a> with the given <<extension-name>>,
and represents a '':matches()'' selector using the provided <<selector>> as its argument.
and represents a '':matches()'' selector using the provided <<selector-list>> as its argument.

<div class='example'>
For example, if an author wanted to easily refer to all heading elements in their HTML document,
Expand Down
Loading

0 comments on commit 6790921

Please sign in to comment.