Skip to content

Commit 680b970

Browse files
committed
[css-values] Markup tweaks for better readability
1 parent 5ec8d51 commit 680b970

2 files changed

Lines changed: 24 additions & 13 deletions

File tree

css-values/Overview.bs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,9 @@ Absolute lengths: the ''cm'', ''mm'', ''q'', ''in'', ''pt'', ''pc'', ''px'' unit
652652
The <dfn title="absolute length">absolute length units</dfn> are fixed in relation to each other
653653
and anchored to some physical measurement.
654654
They are mainly useful when the output environment is known.
655-
The absolute units consist of the physical units (in, cm, mm, pt, pc, q)
656-
and the px unit:
655+
The absolute units consist of
656+
the <dfn>physical units</dfn> (''in'', ''cm'', ''mm'', ''pt'', ''pc'', ''q'')
657+
and the <dfn>visual angle unit</dfn> (''px''):
657658

658659
<table class="data" export>
659660
<thead>
@@ -679,7 +680,7 @@ Absolute lengths: the ''cm'', ''mm'', ''q'', ''in'', ''pt'', ''pc'', ''px'' unit
679680
<tr><th><dfn>pt</dfn>
680681
<td>points
681682
<td>1pt = 1/72th of 1in
682-
<tr><th><dfn>px</dfn>
683+
<tr><th><dfn title="px|pixel unit">px</dfn>
683684
<td>pixels
684685
<td>1px = 1/96th of 1in
685686
</table>
@@ -696,9 +697,12 @@ Absolute lengths: the ''cm'', ''mm'', ''q'', ''in'', ''pt'', ''pc'', ''px'' unit
696697
</pre>
697698
</div>
698699

699-
For a CSS device, these dimensions are either anchored
700-
(i) by relating the physical units to their physical measurements,
701-
or (ii) by relating the pixel unit to the <i>reference pixel</i>.
700+
For a CSS device, these dimensions are anchored either
701+
<ul>
702+
<li>(i) by relating the <i>physical units</i> to their physical measurements, or
703+
<li>(ii) by relating the <i>pixel unit</i> to the <i>reference pixel</i>.
704+
</ul>
705+
702706
For print media and similar high-resolution devices,
703707
the anchor unit should be one of the standard physical units (inches, centimeters, etc).
704708
For lower-resolution devices,

css-values/Overview.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,9 @@ <h3 class="heading settled heading" data-level=5.2 id=absolute-lengths><span cla
789789
<p> The <dfn data-dfn-type=dfn data-noexport="" id=absolute-length title="absolute length">absolute length units<a class=self-link href=#absolute-length></a></dfn> are fixed in relation to each other
790790
and anchored to some physical measurement.
791791
They are mainly useful when the output environment is known.
792-
The absolute units consist of the physical units (in, cm, mm, pt, pc, q)
793-
and the px unit:
792+
The absolute units consist of
793+
the <dfn data-dfn-type=dfn data-noexport="" id=physical-units>physical units<a class=self-link href=#physical-units></a></dfn> (<a class=css data-link-type=maybe href=#in title=in>in</a>, <a class=css data-link-type=maybe href=#cm title=cm>cm</a>, <a class=css data-link-type=maybe href=#mm title=mm>mm</a>, <a class=css data-link-type=maybe href=#pt title=pt>pt</a>, <a class=css data-link-type=maybe href=#pc title=pc>pc</a>, <a class=css data-link-type=maybe href=#q title=q>q</a>)
794+
and the <dfn data-dfn-type=dfn data-noexport="" id=visual-angle-unit>visual angle unit<a class=self-link href=#visual-angle-unit></a></dfn> (<a class=css data-link-type=maybe href=#px title=px>px</a>):
794795

795796
<table class=data data-export="">
796797
<thead>
@@ -816,7 +817,7 @@ <h3 class="heading settled heading" data-level=5.2 id=absolute-lengths><span cla
816817
<tr><th><dfn data-dfn-type=dfn data-export="" id=pt>pt<a class=self-link href=#pt></a></dfn>
817818
<td>points
818819
<td>1pt = 1/72th of 1in
819-
<tr><th><dfn data-dfn-type=dfn data-export="" id=px>px<a class=self-link href=#px></a></dfn>
820+
<tr><th><dfn data-dfn-type=dfn data-export="" id=px title="px|pixel unit">px<a class=self-link href=#px></a></dfn>
820821
<td>pixels
821822
<td>1px = 1/96th of 1in
822823
</table>
@@ -831,10 +832,13 @@ <h3 class="heading settled heading" data-level=5.2 id=absolute-lengths><span cla
831832
p { font-size: 12px } /* px */
832833
</pre> </div>
833834

834-
<p> For a CSS device, these dimensions are either anchored
835-
(i) by relating the physical units to their physical measurements,
836-
or (ii) by relating the pixel unit to the <a data-link-type=dfn href=#reference-pixel title="reference pixel">reference pixel</a>.
837-
For print media and similar high-resolution devices,
835+
<p> For a CSS device, these dimensions are anchored either
836+
<ul>
837+
<li>(i) by relating the <a data-link-type=dfn href=#physical-units title="physical units">physical units</a> to their physical measurements, or
838+
<li>(ii) by relating the <a data-link-type=dfn href=#px title="pixel unit">pixel unit</a> to the <a data-link-type=dfn href=#reference-pixel title="reference pixel">reference pixel</a>.
839+
</ul>
840+
841+
<p> For print media and similar high-resolution devices,
838842
the anchor unit should be one of the standard physical units (inches, centimeters, etc).
839843
For lower-resolution devices,
840844
and devices with unusual viewing distances,
@@ -1874,6 +1878,8 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
18741878
<li>pc, <a href=#pc title="section 5.2">5.2</a>
18751879
<li>&lt;percentage&gt;, <a href=#percentage-value title="section 4.3">4.3</a>
18761880
<li>percentage, <a href=#percentage title="section 4.3">4.3</a>
1881+
<li>physical units, <a href=#physical-units title="section 5.2">5.2</a>
1882+
<li>pixel unit, <a href=#px title="section 5.2">5.2</a>
18771883
<li>pt, <a href=#pt title="section 5.2">5.2</a>
18781884
<li>px, <a href=#px title="section 5.2">5.2</a>
18791885
<li>q, <a href=#q title="section 5.2">5.2</a>
@@ -1894,6 +1900,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
18941900
<li>&lt;url&gt;, <a href=#url-value title="section 3.4">3.4</a>
18951901
<li>URL, <a href=#url title="section 3.4">3.4</a>
18961902
<li>vh, <a href=#vh title="section 5.1.2">5.1.2</a>
1903+
<li>visual angle unit, <a href=#visual-angle-unit title="section 5.2">5.2</a>
18971904
<li>vmax, <a href=#vmax title="section 5.1.2">5.1.2</a>
18981905
<li>vmin, <a href=#vmin title="section 5.1.2">5.1.2</a>
18991906
<li>vw, <a href=#vw title="section 5.1.2">5.1.2</a>

0 commit comments

Comments
 (0)