Skip to content

Commit 067882f

Browse files
committed
compare lists of media queries; yay; for cssom-view
1 parent 0bb130e commit 067882f

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

cssom/Overview.html

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
<div class=head>
2929
<h1 id=cssom>CSSOM</h1>
3030

31-
<h2 class="no-num no-toc" id="">Editor's Draft 14 July 2010</h2>
31+
<h2 class="no-num no-toc" id="">Editor's Draft 15 July 2010</h2>
3232

3333
<dl>
3434
<dt>This Version:
3535

3636
<dd><a
37-
href="http://www.w3.org/TR/2010/ED-cssom-20100714/">http://www.w3.org/TR/2010/ED-cssom-20100714/</a>
37+
href="http://www.w3.org/TR/2010/ED-cssom-20100715/">http://www.w3.org/TR/2010/ED-cssom-20100715/</a>
3838

3939
<dt>Latest Version:
4040

@@ -489,8 +489,9 @@ <h3 id=serializing-media-queries><span class=secno>3.2. </span>Serializing
489489

490490
<li>
491491
<p><a href="#serialize-a-media-query" title="serialize a media
492-
query">Serialize</a> each media query in the list of media queries and
493-
then <a href="#serialize-a-comma-separated-list" title="serialize a
492+
query">Serialize</a> each media query in the list of media queries, sort
493+
them in lexicographical order, and then <a
494+
href="#serialize-a-comma-separated-list" title="serialize a
494495
comma-separated list">serialize</a> the list.
495496
</ol>
496497

@@ -673,6 +674,12 @@ <h4 id=serializing-media-feature-values><span class=secno>3.2.1.
673674
<h3 id=comparing-media-queries><span class=secno>3.3. </span>Comparing
674675
Media Queries</h3>
675676

677+
<p>To <dfn id=compare-lists-of-media-queries>compare lists of media
678+
queries</dfn> <var title="">l1</var> and <var title="">l2</var> means to
679+
<a href="#serialize-a-list-of-media-queries" title="serialize a list of
680+
media queries">serialize</a> them both and return true if they are a <a
681+
href="#case-sensitive">case-sensitive</a> match and false if they are not.
682+
676683
<p>To <dfn id=compare-media-queries>compare media queries</dfn> <var
677684
title="">m1</var> and <var title="">m2</var> means to <a
678685
href="#serialize-a-media-query" title="serialize a media
@@ -4008,6 +4015,9 @@ <h3 id=extensions-to-the-window-interface><span class=secno>6.2.
40084015
title=dom-Window-getComputedStyle>getComputedStyle()</code></a> was
40094016
invoked to compute the <a href="#css-declaration-block">CSS declaration
40104017
block</a>.</p>
4018+
</li>
4019+
<!-- https://bugs.webkit.org/show_bug.cgi?id=14563 has reasons for why
4020+
this is slightly crazy -->
40114021
</ol>
40124022

40134023
<p class=note>Because of historical IDL limitations the <a
@@ -4064,6 +4074,8 @@ <h2 id=resolved-values><span class=secno>7. </span>Resolved Values</h2>
40644074

40654075
<dt>'<code>height</code>'
40664076

4077+
<dt>'<code>margin</code>'
4078+
40674079
<dt>'<code>margin-bottom</code>'
40684080

40694081
<dt>'<code>margin-left</code>'
@@ -4072,6 +4084,8 @@ <h2 id=resolved-values><span class=secno>7. </span>Resolved Values</h2>
40724084

40734085
<dt>'<code>margin-top</code>'
40744086

4087+
<dt>'<code>padding</code>'
4088+
40754089
<dt>'<code>padding-bottom</code>'
40764090

40774091
<dt>'<code>padding-left</code>'

cssom/Overview.src.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ <h3>Serializing Media Queries</h3>
263263
terminate these steps.</p></li>
264264

265265
<li><p><span title="serialize a media query">Serialize</span> each
266-
media query in the list of media queries and then
266+
media query in the list of media queries, sort them in lexicographical
267+
order, and then
267268
<span title="serialize a comma-separated list">serialize</span> the
268269
list.</p></li>
269270
</ol>
@@ -400,6 +401,13 @@ <h4>Serializing Media Feature Values</h4>
400401

401402
<h3>Comparing Media Queries</h3>
402403

404+
<p>To
405+
<dfn id="compare-lists-of-media-queries">compare lists of media queries</dfn>
406+
<var title="">l1</var> and <var title="">l2</var> means to
407+
<span title="serialize a list of media queries">serialize</span> them both
408+
and return true if they are a <span>case-sensitive</span> match and false
409+
if they are not.</p>
410+
403411
<p>To
404412
<dfn id="compare-media-queries">compare media queries</dfn>
405413
<var title="">m1</var> and <var title="">m2</var> means to
@@ -2554,6 +2562,9 @@ <h3>Extensions to the <code title="">Window</code> Interface</h3>
25542562
<code title="dom-Window-getComputedStyle">getComputedStyle()</code> was
25552563
invoked to compute the <span>CSS declaration block</span>.</p>
25562564
</li>
2565+
2566+
<!-- https://bugs.webkit.org/show_bug.cgi?id=14563 has reasons for why
2567+
this is slightly crazy -->
25572568
</ol>
25582569

25592570
<p class="note">Because of historical IDL limitations the
@@ -2607,10 +2618,12 @@ <h2>Resolved Values</h2>
26072618
<dd><p>The <span>resolved value</span> is the used value.</p></dd>
26082619

26092620
<dt>'<code>height</code>'</dt>
2621+
<dt>'<code>margin</code>'</dt>
26102622
<dt>'<code>margin-bottom</code>'</dt>
26112623
<dt>'<code>margin-left</code>'</dt>
26122624
<dt>'<code>margin-right</code>'</dt>
26132625
<dt>'<code>margin-top</code>'</dt>
2626+
<dt>'<code>padding</code>'</dt>
26142627
<dt>'<code>padding-bottom</code>'</dt>
26152628
<dt>'<code>padding-left</code>'</dt>
26162629
<dt>'<code>padding-right</code>'</dt>

0 commit comments

Comments
 (0)