@@ -1822,36 +1822,49 @@ Explicit Defaulting</h3>
1822
1822
some contexts may restrict their use
1823
1823
while allowing the other [=CSS-wide keywords=] .
1824
1824
1825
- <h4 id="initial">
1825
+ <h4 id="initial" caniuse="css-initial-value" >
1826
1826
Resetting a Property: the ''initial'' keyword</h4>
1827
1827
1828
+ The <dfn value for=all>initial</dfn> [=CSS-wide keyword=]
1829
+ represents the value defined as the property's [=initial value=] .
1830
+
1828
1831
If the <a>cascaded value</a> of a property is
1829
- the <dfn value for=all caniuse="css- initial-value">initial</dfn> keyword,
1832
+ the '' initial'' keyword,
1830
1833
the property's <a>specified value</a> is its <a>initial value</a> .
1831
1834
1832
- <h4 id="inherit">
1835
+ <h4 id="inherit" caniuse="mdn-api_csspropertyrule_inherits" >
1833
1836
Explicit Inheritance: the ''inherit'' keyword</h4>
1834
1837
1838
+ The <dfn value for=all>inherit</dfn> [=CSS-wide keyword=]
1839
+ represents the property’s [=computed value=] on the parent element.
1840
+
1835
1841
If the <a>cascaded value</a> of a property is
1836
- the <dfn value for=all> inherit</dfn> keyword,
1842
+ the '' inherit'' keyword,
1837
1843
the property's <a lt="specified value">specified</a> and <a>computed values</a> are the <a>inherited value</a> .
1838
1844
1839
- <h4 id="inherit-initial">
1845
+ <h4 id="inherit-initial" caniuse="css-unset-value" >
1840
1846
Erasing All Declarations: the ''unset'' keyword</h4>
1841
1847
1848
+ The <dfn value for=all>unset</dfn> [=CSS-wide keyword=]
1849
+ acts as either ''inherit'' or ''initial'' ,
1850
+ depending on whether the property is [=inherited property|inherited=] or not.
1851
+
1842
1852
If the <a>cascaded value</a> of a property is
1843
- the <dfn value for=all caniuse="css- unset-value">unset</dfn> keyword,
1853
+ the '' unset'' keyword,
1844
1854
then if it is an inherited property, this is treated as ''inherit'' ,
1845
1855
and if it is not, this is treated as ''initial'' .
1846
1856
This keyword effectively erases all <a>declared values</a> occurring earlier in the <a>cascade</a> ,
1847
1857
correctly inheriting or not as appropriate for the property
1848
1858
(or all longhands of a <a>shorthand</a> ).
1849
1859
1850
- <h4 id="default">
1860
+ <h4 id="default" for=all caniuse="css-revert-value" >
1851
1861
Rolling Back Cascade Origins: the ''revert'' keyword</h4>
1852
1862
1863
+ The <dfn value>revert</dfn> [=CSS-wide keyword=]
1864
+ rolls back the cascade to the [=cascaded value=] of the earlier [=origin=] .
1865
+
1853
1866
If the <a>cascaded value</a> of a property is
1854
- the <dfn value for=all caniuse="css- revert-value">revert</dfn> keyword,
1867
+ the '' revert'' keyword,
1855
1868
the behavior depends on the [=cascade origin=] to which the [=declaration=] belongs:
1856
1869
1857
1870
<dl>
@@ -1882,12 +1895,13 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
1882
1895
reverting one of the paired properties in a [=logical property group=]
1883
1896
also reverts the other one; etc.
1884
1897
1885
- <h4 id="revert-layer">
1898
+ <h4 id="revert-layer" caniuse="mdn-css_types_global_keywords_revert-layer" >
1886
1899
Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
1887
1900
1888
- The <dfn value for=all>revert-layer</dfn> keyword
1901
+ The <dfn value for=all>revert-layer</dfn> [=CSS-wide keyword=]
1889
1902
rolls back the cascade similar to ''revert'' ,
1890
1903
except it works by [=cascade layer=] rather than by [=cascade origin=] .
1904
+
1891
1905
If the <a>cascaded value</a> of a property is
1892
1906
the ''revert-layer'' keyword,
1893
1907
the <a>cascaded value</a> is rolled back to the earlier [=layer=] ,
0 commit comments