Skip to content

Commit 7e46ba6

Browse files
author
Florian Rivoal
committed
Add a reference to CSS3-VALUES and simplify the value section accordingly
1 parent 335836f commit 7e46ba6

1 file changed

Lines changed: 10 additions & 32 deletions

File tree

css4-mediaqueries/Overview.src.html

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -940,48 +940,26 @@ <h3 id="script">script</h3>
940940

941941
<h2 id="values">Values</h2>
942942

943-
<p>This specification also introduces two new values.</p>
943+
<p>Value types not defined in this specification, such as &lt;integer&gt;,
944+
&lt;number&gt; or &lt;resolution&gt;, are defined in [[!CSS3VAL]]. Other CSS
945+
modules may expand the definitions of these value types.</p>
944946

945-
<p>The &lt;ratio> value is a positive (not zero or negative) &lt;integer>
946-
followed by optional whitespace, followed by a solidus ('/'), followed by
947-
optional whitespace, followed by a positive &lt;integer>.</p>
948-
949-
<p>The &lt;resolution> value is a positive &lt;number> immediately followed
950-
by a unit identifier (''dpi'' or ''dpcm'').</p>
951-
952-
<p>Whitespace, &lt;integer>, &lt;number> and other values used by this
953-
specification are the same as in other parts of CSS, normatively defined by
954-
CSS 2.1. [[!CSS21]]</p>
947+
<p>This specification also introduces one new value type.</p>
955948

949+
<p>The &lt;ratio&gt; value type is a positive (not zero or negative)
950+
&lt;integer&gt; followed by optional whitespace, followed by a solidus ('/'),
951+
followed by optional whitespace, followed by a positive &lt;integer&gt;.</p>
956952

957953
<h2 id="units">Units</h2>
958954

959-
<p>The units used in media queries are the same as in other parts of
960-
CSS. For example, the pixel unit represents CSS pixels and not
961-
physical pixels.</p>
955+
<p>The units used in media queries are the same as in other parts of CSS, as
956+
defined in [[!CSS3VAL]]. For example, the pixel unit represents CSS pixels and
957+
not physical pixels.</p>
962958

963959
<p>Relative units in media queries are based on the initial value, which means
964960
that units are never based on results of declarations. For example, in HTML,
965961
the ''em'' unit is relative to the initial value of 'font-size'.</p>
966962

967-
<h3>Resolution</h3>
968-
969-
<p>The ''dpi'' and ''dpcm'' units describe the resolution of an output
970-
device, i.e., the density of device pixels. Resolution unit identifiers
971-
are:</p>
972-
973-
<dl>
974-
<dt>dpi</dt>
975-
<dd>dots per CSS ''inch''</dd>
976-
977-
<dt>dpcm</dt>
978-
<dd>dots per CSS ''centimeter''</dd>
979-
</dl>
980-
981-
<p>In this specification, these units are only used in the
982-
''resolution'' media feature.</p>
983-
984-
985963
<h2 id="changes">Changes</h2>
986964
<h3 id="changes-2012">Changes Since the Media Queries Level 3</h3>
987965
<p>The following changes were made to this specification since the

0 commit comments

Comments
 (0)