8000 [css-cascade] Add 'default' keyword back, from the last commit that h… · w3c/csswg-drafts@5a6acbd · GitHub
Skip to content

Commit 5a6acbd

Browse files
committed
[css-cascade] Add 'default' keyword back, from the last commit that had it.
1 parent c4d3a83 commit 5a6acbd

1 file changed

Lines changed: 29 additions & 35 deletions

File tree

css-cascade/Overview.bs

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ Explicit Defaulting</h3>
831831
<h4 id="initial">
832832
Resetting a Property: the ''initial'' keyword</h4>
833833

834-
If the <a>cascaded value</a> is the <dfn for=all>''initial''</dfn> keyword,
834+
If the <a>cascaded value</a> of a property is the <dfn for=all>''initial''</dfn> keyword,
835835
the property's <a>initial value</a> becomes its <a>specified value</a>.
836836

837837
<h4 id="inherit">
@@ -850,45 +850,39 @@ Erasing All Declarations: the ''unset'' keyword</h4>
850850
correctly inheriting or not as appropriate for the property
851851
(or all longhands of a <a>shorthand</a>).
852852

853-
<h2 id="changes">
854-
Changes</h2>
853+
<h4 id="default">
854+
Rolling back the cascade: the ''default'' keyword</h4>
855855

856-
<h3 id="changes-2013">
857-
Changes Since the 3 October 2013 Candidate Recommendation</h3>
856+
If the <a>cascaded value</a> of a property is the <dfn for=all>''default''</dfn> keyword,
857+
the behavior depends on the origin to which the declaration belongs:
858858

859-
The following changes were made to this specification since the
860-
<a href="http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/">3 October 2013 Candidate Recommendation</a>:
859+
<dl>
860+
<dt>user-agent origin
861+
<dd>
862+
Equivalent to ''unset''.
861863

862-
<ul>
863-
<li>Defined <a>environment encoding</a> of imported style sheets.
864-
<blockquote>
865-
<ins><p>The <a>environment encoding</a> of an imported style sheet is the encoding of the style sheet that imported it. [[CSS3SYN]]</p></ins>
866-
</blockquote>
867-
<li>Referenced [[!CSS3SYN]] for syntax of ''!important'' rules.
868-
<blockquote>
869-
<p>A declaration is <a>important</a> if it has a ''!important'' annotation,
870-
<ins>as defined by [[CSS3SYN]]</ins>.
871-
</blockquote>
872-
<li>Explained <a>reset-only sub-properties</a>
873-
and clarified that they also get affected by a CSS-wide keyword value in the shorthand declaration.
874-
<blockquote>
875-
<p><ins>In other cases, a property might be a <a>reset-only sub-property</a> of the shorthand:
876-
Like other <a>sub-properties</a>, it is reset to its initial value by the shorthand when unspecified,
877-
but the shorthand might not include syntax to set the <a>sub-property</a>
878-
to any of its other values.
879-
For example, the 'border' shorthand resets 'border-image'
880-
to its initial value of ''border-image/none'',
881-
but has no syntax to set it to anything else. [[CSS3BG]]</ins></p>
882-
883-
<p>If a <a>shorthand</a> is specified as one of the <a href="http://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keywords</a> [[!CSS3VAL]],
884-
it sets all of its <a>sub-properties</a> to that keyword,
885-
<ins>including any that are <a>reset-only sub-properties</a></ins>.
886-
(Note that these keywords cannot be combined with other values in a single declaration, not even in a shorthand.)</p>
887-
</blockquote>
864+
<dt>user origin
865+
<dd>
866+
Rolls back the cascade to the user-agent level,
867+
so that the <a>specified value</a> is calculated as if no author-level or user-level rules were specified for this property.
888868

889-
</ul>
869+
<dt>author origin
870+
<dd>
871+
Rolls back the cascade to the user level,
872+
so that the <a>specified value</a> is calculated as if no author-level rules were specified for this property.
873+
For the purpose of ''default'', this origin includes the Override and Animation <a>origins</a>.
874+
</dl>
875+
876+
<h2 id="changes">
877+
Changes</h2>
878+
879+
<h3 id="additions-l3">
880+
Additions Since Level 3</h3>
881+
882+
The following additions were made to this specification since the
883+
<a href="http://www.w3.org/TR/css-cascade-3/">Level 3 CR</a>:
890884

891-
<p>A <a href="http://dev.w3.org/csswg/css-cascade-3/issues-cr-2013">Disposition of Comments</a> is available.
885+
* Introduced ''default'' keyword, for rolling back the cascade.
892886

893887
<h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
894888

0 commit comments

Comments
 (0)