Skip to content

Commit

Permalink
Fix tests and expectations for css counters
Browse files Browse the repository at this point in the history
Without <span>s tests don't match the reference on Mac.
Some symbols are generated slightly shifted due to the pixel snapping
when the words are wrapped in spans.

Bug: 990657
Change-Id: I25b00aecfc9c3311847ebcdef185aedebc55a2b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4874018
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1199611}
  • Loading branch information
danielsakhapov authored and chromium-wpt-export-bot committed Sep 21, 2023
1 parent 2339901 commit 98a8e0b
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 411 deletions.
76 changes: 38 additions & 38 deletions css/css-lists/counter-003-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,44 @@
<title>CSS Lists and Counters test reference: counter(c, &quot;.", upper-roman)</title>
<p>The following two lines should look the same:</p>
<div>
I
II
III
IV
V
VI
VII
VIII
IX
X
XI
XII
XLIX
XIII
CCCLXXXIX
XIV
MMMCDLXXXIX
XV
XVI
<span>I</span>
<span>II</span>
<span>III</span>
<span>IV</span>
<span>V</span>
<span>VI</span>
<span>VII</span>
<span>VIII</span>
<span>IX</span>
<span>X</span>
<span>XI</span>
<span>XII</span>
<span>XLIX</span>
<span>XIII</span>
<span>CCCLXXXIX</span>
<span>XIV</span>
<span>MMMCDLXXXIX</span>
<span>XV</span>
<span>XVI</span>
</div>
<div>
I
II
III
IV
V
VI
VII
VIII
IX
X
XI
XII
XLIX
XIII
CCCLXXXIX
XIV
MMMCDLXXXIX
XV
XVI
<span>I</span>
<span>II</span>
<span>III</span>
<span>IV</span>
<span>V</span>
<span>VI</span>
<span>VII</span>
<span>VIII</span>
<span>IX</span>
<span>X</span>
<span>XI</span>
<span>XII</span>
<span>XLIX</span>
<span>XIII</span>
<span>CCCLXXXIX</span>
<span>XIV</span>
<span>MMMCDLXXXIX</span>
<span>XV</span>
<span>XVI</span>
</div>
38 changes: 19 additions & 19 deletions css/css-lists/counter-003.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@
<span></span>
</div>
<div>
I
II
III
IV
V
VI
VII
VIII
IX
X
XI
XII
XLIX
XIII
CCCLXXXIX
XIV
MMMCDLXXXIX
XV
XVI
<span>I</span>
<span>II</span>
<span>III</span>
<span>IV</span>
<span>V</span>
<span>VI</span>
<span>VII</span>
<span>VIII</span>
<span>IX</span>
<span>X</span>
<span>XI</span>
<span>XII</span>
<span>XLIX</span>
<span>XIII</span>
<span>CCCLXXXIX</span>
<span>XIV</span>
<span>MMMCDLXXXIX</span>
<span>XV</span>
<span>XVI</span>
</div>
160 changes: 80 additions & 80 deletions css/css-lists/counter-004-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,87 +3,87 @@
<title>CSS Lists and Counters test reference: counter(c, &quot;.", georgian)</title>
<p>The following two lines should look the same:</p>
<div id="test">
ია
იბ
ჵჰშჟთ
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ია</span>
<span>იბ</span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ჵჰშჟთ</span>
</div>

<div>
ია
იბ
ჵჰშჟთ
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ია</span>
<span>იბ</span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ჵჰშჟთ</span>
</div>
80 changes: 40 additions & 40 deletions css/css-lists/counter-004.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,44 +53,44 @@
<span style="counter-reset: c 19998"></span>
</div>
<div>
ია
იბ
ჵჰშჟთ
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ია</span>
<span>იბ</span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>ჵჰშჟთ</span>
</div>
Loading

0 comments on commit 98a8e0b

Please sign in to comment.