Tests: Re-import tests that used ahem.css

This causes 36 new subtests to pass locally. :^)

Unfortunately at least one of these is flaky when it's able to load the
font file, apparently because we don't wait for the font and its
stylesheet to actually load before the tests run.
This commit is contained in:
Sam Atkins
2024-11-06 12:44:38 +00:00
committed by Andreas Kling
parent f2407cd511
commit 8f21513902
Notes: github-actions[bot] 2024-11-06 19:04:36 +00:00
15 changed files with 756 additions and 53 deletions

View File

@@ -11,7 +11,7 @@
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#min-size-auto">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#min-content-zero">
<link rel="stylesheet" href="/fonts/ahem.css">
<link rel="stylesheet" href="../../fonts/ahem.css">
<meta name="assert" content="This test verifies that an <input> flex item should resolve its percentage part of main size to zero when computing specified size suggestion.">
<script src="../../resources/testharness.js"></script>

View File

@@ -11,7 +11,7 @@
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#min-size-auto">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#min-content-zero">
<link rel="stylesheet" href="/fonts/ahem.css">
<link rel="stylesheet" href="../../fonts/ahem.css">
<meta name="assert" content="This test verifies that an <input> flex item should resolve its percentage part of main size to zero when computing specified size suggestion.">
<script src="../../resources/testharness.js"></script>

View File

@@ -3,7 +3,7 @@
<title>CSS Flexbox: flex-basis with zero pixel</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-basis-property">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#intrinsic-main-sizes">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />
<link href="support/flexbox.css" rel="stylesheet">
<meta name="assert" content="This test ensures that setting 'flex-basis' property to
zero pixel or percentage in combination with one value of both 'flex-grow' and 'flex-shrink'

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1097654" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1081789" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>

View File

@@ -3,7 +3,7 @@
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#intrinsic-sizes">
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css" />
<meta name="assert"
content="Requested use cases from our issue tracker that were duplicated or included in the bug report for the new algorithm. These are intentionally not very reduced from their original form with liberal pass conditions." />

View File

@@ -20,7 +20,7 @@
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#hypothetical-main-size">
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#hypothetical-cross-size">
<style>
@import "/fonts/ahem.css";
@import "../../fonts/ahem.css";
.flexbox {
display: flex;
flex-direction: row;