mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests Lint rule for using Ahem as a web font. (#18877) Add a lint rule to check for tests that use the Ahem font but do not include the /fonts/ahem.css stylesheet (which loads this font as a web font). This prevents tests from assuming that Ahem is installed as a system font. Also includes some unit tests. There are a few tests that are incorrectly flagged as violating this rule, these were added to lint.whitelist. A bunch of other tests were fixed to load Ahem as a web font. -- wpt-commits: c66230eebbea3bce8c086572869eb0835fb183b5 wpt-pr: 18877
30 lines
795 B
HTML
30 lines
795 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Grid Layout Reference: Aligning grid items using 'auto' margins</title>
|
|
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
|
|
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
|
<style>
|
|
#grid {
|
|
display: grid;
|
|
position: relative;
|
|
background: grey;
|
|
grid-template-columns: 100px;
|
|
grid-template-rows: 40% 60%;
|
|
height: 50vh;
|
|
width: auto;
|
|
align-items: center;
|
|
}
|
|
#item1 {
|
|
font: 20px/1 Ahem;
|
|
color: green;
|
|
}
|
|
#item2 {
|
|
font: 40px/1 Ahem;
|
|
color: blue;
|
|
}
|
|
</style>
|
|
<p>The test passes if it has the same visual effect as reference.</p>
|
|
<div id="grid">
|
|
<div id="item1">XXX</div>
|
|
<div id="item2">XXXXX</div>
|
|
</div>
|