Skip to content

Commit

Permalink
Change grid-positioned-items-content-alignment*-001.html to accommoda…
Browse files Browse the repository at this point in the history
…te platform differences. (#28726)

There is a 0.5 pixel difference on expected data width for some contentSpaceAround tests in grid
among platforms. This change is to accurize the expecting result to 0.5 pixel instead of original 1 pixel.
  • Loading branch information
ziransun committed Apr 28, 2021
1 parent 2340988 commit 51825bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -306,13 +306,13 @@

<div class="grid contentSpaceAround">
<div style="grid-column: 2 / auto; grid-row: 2 / auto;"
data-offset-x="288" data-offset-y="145" data-expected-width="112" data-expected-height="55">
data-offset-x="288" data-offset-y="145" data-expected-width="112.5" data-expected-height="55">
</div>
</div>

<div class="grid contentSpaceAround">
<div class="offsets" style="grid-column: 2 / auto; grid-row: 2 / auto;"
data-offset-x="288" data-offset-y="145" data-expected-width="112" data-expected-height="55">
data-offset-x="288" data-offset-y="145" data-expected-width="112.5" data-expected-height="55">
</div>
</div>

Expand Down
Expand Up @@ -234,13 +234,13 @@

<div class="grid directionRTL contentSpaceAround">
<div style="grid-column: auto / 2; grid-row: auto / 2;"
data-offset-x="238" data-offset-y="0" data-expected-width="162" data-expected-height="95">
data-offset-x="238" data-offset-y="0" data-expected-width="162.5" data-expected-height="95">
</div>
</div>

<div class="grid directionRTL contentSpaceAround">
<div class="offsets" style="grid-column: auto / 2; grid-row: auto / 2;"
data-offset-x="238" data-offset-y="0" data-expected-width="162" data-expected-height="95">
data-offset-x="238" data-offset-y="0" data-expected-width="162.5" data-expected-height="95">
</div>
</div>

Expand Down

0 comments on commit 51825bc

Please sign in to comment.