Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Bug 1675171 [wpt PR 26371] - [css-flex] Fix some gap tests that fail …
Browse files Browse the repository at this point in the history
…in firefox, a=testonly

Automatic update from web-platform-tests
[css-flex] Fix some gap tests that fail in firefox

These failed due to firefox and chrome using different default fonts. I
avoided that problem by assigning a fixed width to the divs containing
the words.

These tests now pass when I run them locally in firefox with
./wpt run --binary ~/ff-nightly/firefox firefox css/css-flexbox/gap-006*

This was filed in web-platform-tests/wpt#26326

Fixes web-platform-tests/wpt#26326

Change-Id: Ib0795c67bce5f80f7a33e1da74a026c1ed574b41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2515226
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823830}

--

wpt-commits: b9dea15062d348abb8da77996e8eb0bd4f9e5dec
wpt-pr: 26371
  • Loading branch information
davidsgrogan authored and moz-wptsync-bot committed Nov 6, 2020
1 parent a647643 commit b01a613
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 36 deletions.
20 changes: 15 additions & 5 deletions testing/web-platform/tests/css/css-flexbox/gap-006-lr-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,28 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
section > div:not(:last-of-type) {
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
#bp, #ww {
margin-inline-end: 20px;
margin-block-end: 20px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
18 changes: 14 additions & 4 deletions testing/web-platform/tests/css/css-flexbox/gap-006-lr.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
20 changes: 15 additions & 5 deletions testing/web-platform/tests/css/css-flexbox/gap-006-ltr-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,28 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
section > div:not(:last-of-type) {
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
#bp, #ww {
margin-inline-end: 20px;
margin-block-end: 20px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
18 changes: 14 additions & 4 deletions testing/web-platform/tests/css/css-flexbox/gap-006-ltr.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,24 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
20 changes: 15 additions & 5 deletions testing/web-platform/tests/css/css-flexbox/gap-006-rl-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,28 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
section > div:not(:last-of-type) {
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
#bp, #ww {
margin-inline-end: 20px;
margin-block-end: 20px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
18 changes: 14 additions & 4 deletions testing/web-platform/tests/css/css-flexbox/gap-006-rl.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
20 changes: 15 additions & 5 deletions testing/web-platform/tests/css/css-flexbox/gap-006-rtl-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,28 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
section > div:not(:last-of-type) {
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
#bp, #ww {
margin-inline-end: 20px;
margin-block-end: 20px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>
18 changes: 14 additions & 4 deletions testing/web-platform/tests/css/css-flexbox/gap-006-rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@
section > div{
background-color: grey;
color: white;
block-size: 20px;
}
#bp {
inline-size: 120px;
}
#ww {
inline-size: 130px;
}
#s, #f {
inline-size: 40px;
}
</style>
<body>
<p>Test passes if there are <strong> green lines between boxes</strong>.</p>
<section>
<div>Black Panther</div>
<div>Wonder Woman</div>
<div>Storm</div>
<div>Flash</div>
<div id=bp>Black Panther</div>
<div id=ww>Wonder Woman</div>
<div id=s>Storm</div>
<div id=f>Flash</div>
</section>
</body>

0 comments on commit b01a613

Please sign in to comment.