Skip to content

Commit c9d76c4

Browse files
committed
deal with RTL
1 parent 704efc1 commit c9d76c4

2 files changed

Lines changed: 111 additions & 23 deletions

File tree

cssom-view/Overview.html

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828
<h1 id=cssom-view-module>CSSOM View Module</h1>
2929

30-
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 17 March 2008</h2>
30+
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 9 April 2008</h2>
3131

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

3535
<dd><a
36-
href="http://www.w3.org/TR/2008/ED-cssom-view-20080317/">http://www.w3.org/TR/2008/ED-cssom-view-20080317/</a>
36+
href="http://www.w3.org/TR/2008/ED-cssom-view-20080409/">http://www.w3.org/TR/2008/ED-cssom-view-20080409/</a>
3737

3838
<dt>Latest Version:
3939

@@ -367,12 +367,35 @@ <h2 id=the-screenview-interface><span class=secno>4. </span>The <code
367367
or NaN stop this algorithm.
368368

369369
<li>
370-
<p>Let <var title="">x</var> be min(<var title="">x</var>, <a
371-
href="#document">document content</a> width - <a
372-
href="#viewport">viewport</a> width).
373-
374-
<li>
375-
<p>If <var title="">x</var> is negative let it be zero.
370+
<dl>
371+
<dt>If <a href="#document">document content</a> can have overflow to the
372+
right
373+
374+
<dd>
375+
<ol>
376+
<li>
377+
<p>Let <var title="">x</var> be min(<var title="">x</var>, <a
378+
href="#content">content</a> width - <a href="#content-edge">content
379+
edge</a> width).
380+
381+
<li>
382+
<p>If <var title="">x</var> is negative let it be zero.
383+
</ol>
384+
385+
<dt>If <a href="#document">document content</a> can have overflow to the
386+
left (under right-to-left conditions)
387+
388+
<dd>
389+
<ol>
390+
<li>
391+
<p>Let <var title="">x</var> be max(<var title="">x</var>, <a
392+
href="#content-edge">content edge</a> width - <a
393+
href="#content">content</a> width).
394+
395+
<li>
396+
<p>If <var title="">x</var> is non-negative let it be zero.
397+
</ol>
398+
</dl>
376399

377400
<li>
378401
<p>Let <var title="">y</var> be min(<var title="">y</var>, <a
@@ -695,12 +718,34 @@ <h3 id=scroll-attributes><span class=secno>6.2 </span>The <code
695718
<p>If <var title="">x</var> is infinite or NaN stop this algorithm.</p>
696719

697720
<li>
698-
<p>Let <var title="">x</var> be min(<var title="">x</var>, <a
699-
href="#content">content</a> width - <a href="#content-edge">content
700-
edge</a> width).
701-
702-
<li>
703-
<p>If <var title="">x</var> is negative let it be zero.
721+
<dl>
722+
<dt>If <var>A</var> can have overflow to the right
723+
724+
<dd>
725+
<ol>
726+
<li>
727+
<p>Let <var title="">x</var> be min(<var title="">x</var>, <a
728+
href="#content">content</a> width - <a href="#content-edge">content
729+
edge</a> width).
730+
731+
<li>
732+
<p>If <var title="">x</var> is negative let it be zero.
733+
</ol>
734+
735+
<dt>If <var>A</var> can have overflow to the left (under right-to-left
736+
conditions)
737+
738+
<dd>
739+
<ol>
740+
<li>
741+
<p>Let <var title="">x</var> be max(<var title="">x</var>, <a
742+
href="#content-edge">content edge</a> width - <a
743+
href="#content">content</a> width).
744+
745+
<li>
746+
<p>If <var title="">x</var> is non-negative let it be zero.
747+
</ol>
748+
</dl>
704749

705750
<li>
706751
<p>Align <a href="#content">content</a> x-coordinate <var

cssom-view/Overview.src.html

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,32 @@ <h2 id="the-screenview-interface">The <code title="">ScreenView</code> Interface
263263
<li><p>If either <var title="">x</var> or <var title="">y</var> is
264264
infinite or NaN stop this algorithm.</p></li>
265265

266-
<li><p>Let <var title="">x</var> be min(<var title="">x</var>,
267-
<span>document content</span> width - <span>viewport</span>
268-
width).</p></li>
269-
270-
<li><p>If <var title="">x</var> is negative let it be zero.</p></li>
266+
<li>
267+
<dl>
268+
<dt>If <span>document content</span> can have overflow to the right
269+
270+
<dd>
271+
<ol>
272+
<li><p>Let <var title="">x</var> be min(<var title="">x</var>,
273+
<span>content</span> width - <span>content edge</span>
274+
width).</p></li>
275+
276+
<li><p>If <var title="">x</var> is negative let it be zero.</p></li>
277+
</ol>
278+
279+
<dt>If <span>document content</span> can have overflow to the left
280+
(under right-to-left conditions)
281+
282+
<dd>
283+
<ol>
284+
<li><p>Let <var title="">x</var> be max(<var title="">x</var>,
285+
<span>content edge</span> width - <span>content</span>
286+
width).</p></li>
287+
288+
<li><p>If <var title="">x</var> is non-negative let it be
289+
zero.</p></li>
290+
</ol>
291+
</dl>
271292

272293
<li><p>Let <var title="">y</var> be min(<var title="">y</var>,
273294
<span>document content</span> height - <span>viewport</span>
@@ -560,10 +581,32 @@ <h3 id="scroll-attributes">The <code title="">scrollTop</code>,
560581
<li><p>If <var title="">x</var> is infinite or NaN stop this
561582
algorithm.</p>
562583

563-
<li><p>Let <var title="">x</var> be min(<var title="">x</var>,
564-
<span>content</span> width - <span>content edge</span> width).</p></li>
565-
566-
<li><p>If <var title="">x</var> is negative let it be zero.</p></li>
584+
<li>
585+
<dl>
586+
<dt>If <var>A</var> can have overflow to the right
587+
588+
<dd>
589+
<ol>
590+
<li><p>Let <var title="">x</var> be min(<var title="">x</var>,
591+
<span>content</span> width - <span>content edge</span>
592+
width).</p></li>
593+
594+
<li><p>If <var title="">x</var> is negative let it be zero.</p></li>
595+
</ol>
596+
597+
<dt>If <var>A</var> can have overflow to the left (under right-to-left
598+
conditions)
599+
600+
<dd>
601+
<ol>
602+
<li><p>Let <var title="">x</var> be max(<var title="">x</var>,
603+
<span>content edge</span> width - <span>content</span>
604+
width).</p></li>
605+
606+
<li><p>If <var title="">x</var> is non-negative let it be
607+
zero.</p></li>
608+
</ol>
609+
</dl>
567610

568611
<li><p>Align <span>content</span> x-coordinate <var title="">x</var> with
569612
the left of the <span>content edge</span> of <var>A</var>.</p></li>

0 commit comments

Comments
 (0)