Bug 1310792 - Fix pixel rounding issues in Grid baseline reftests and convert them to WPTs. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D61241

--HG--
rename : layout/reftests/css-grid/grid-item-content-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-001.html
rename : layout/reftests/css-grid/grid-item-content-baseline-002-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-002-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-002.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-002.html
rename : layout/reftests/css-grid/grid-item-content-baseline-003-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-003-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-003.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-003.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-001.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-002-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-002-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-002.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-002.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-003-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-003-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-003.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-003.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-004-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-004-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-004.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-004.html
rename : layout/reftests/css-grid/grid-item-self-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-self-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-self-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-self-baseline-001.html
extra : moz-landing-system : lando
This commit is contained in:
Mats Palmgren 2020-01-29 21:48:31 +00:00
Родитель 3d2d2d0ea7
Коммит e5f1f2d4f5
22 изменённых файлов: 704 добавлений и 505 удалений

Просмотреть файл

@ -1,110 +0,0 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: auto / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / auto;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb">A<br>B</span><span class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:4px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb pbs">A<br>B</span><span style="padding-block-start:16px;" class="fb">M<br>N</span><span style="padding-block-start:20px; padding-block-end:38px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:4px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:16px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:16px;" class="lb pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:4px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:16px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A<br>B</span><span style="padding-block-start:4px;" class="fb hl">M<br>N</span><span style="padding-block-start:21px; padding-block-end:25px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s hl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:16px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:13px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:4px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:4px;" class="lb hl pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:4px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:16px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s vr">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:13px;" class="fb vr pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr pbs">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:4px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px;" class="fb s vl">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:1px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px;" class="fb s vl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:4px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A<br>B</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:4px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A<br>B</span><span style="padding-block-end:1px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:16px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:16px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -1,118 +0,0 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: 100px / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / 100px;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
.cbm { padding-block-start:33px; grid-template-rows: 1fr; }
.cbm2 { padding-block-start:27px; grid-template-rows: 1fr; }
.cim { padding-inline-start:33px; grid-template-columns: 1fr; }
.cim2 { padding-inline-start:27px; grid-template-columns: 1fr; }
.pe { padding-inline-end:33px; grid-template-columns: 1fr; }
.pe2 { padding-inline-end:30px; grid-template-columns: 1fr; }
.vpe { padding-block-end:33px; grid-template-rows: 1fr; }
.vpe2 { padding-block-end:32px; grid-template-rows: 1fr; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb">A<br>B</span><span class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:4px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb pbs">A<br>B</span><span style="padding-block-start:16px;" class="fb">M<br>N</span><span style="padding-block-start:20px; padding-block-end:54px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl cbm"><span style="padding-block-end:4px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl cbm2"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<div class="grid vl cbm"><span style="padding-block-end:16px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl cbm"><span style="padding-block-end:16px;" class="lb pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr cbm"><span style="padding-block-end:4px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr cbm2"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:16px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A<br>B</span><span style="padding-block-start:4px;" class="fb hl">M<br>N</span><span style="padding-block-start:21px; padding-block-end:53px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s hl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl cim"><span style="padding-block-end:16px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl cim"><span style="padding-block-end:13px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl cim"><span style="padding-block-end:4px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl cim"><span style="padding-block-end:4px;" class="lb hl pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr cim"><span style="padding-block-end:4px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr cim2"><span style="padding-block-end:7px;" class="lb hl pbe">A<br>B</span><span style="padding-block-end:6px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:16px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s vr">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:13px;" class="fb vr pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr pbs">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:4px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px;" class="fb s vl">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:1px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px;" class="fb s vl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl pe"><span style="padding-block-end:4px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl pe2"><span style="padding-block-end:7px;" class="lb vr pbe">A<br>B</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vl vpe"><span style="padding-block-end:4px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl vpe2"><span style="padding-block-end:0px;" class="lb vr pbs">A<br>B</span><span style="padding-block-end:1px;" class="lb vr">M<br>N</span></div>
<div class="grid vr vpe"><span style="padding-block-end:16px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr vpe"><span style="padding-block-end:16px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -1,110 +0,0 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611724">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<style>
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: auto / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / auto;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: content-box silver;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb">A</span><span class="fb">M<br>N</span><span style="padding-block-start:17px; height:49px;" class="fb s">X</span></div>
<div class="grid hl"><span style="padding-block-start:16px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; height:49px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:4px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; width:62px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb pbs">A</span><span style="padding-block-start:16px;" class="fb">M<br>N</span><span style="padding-block-start:20px; width:62px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:16px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s">X</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:4px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:16px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:16px;" class="lb pbs">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:4px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:6px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:62px;" class="fb s vl">X</span></div>
<div class="grid c hl"><span style="padding-block-start:4px;" class="fb vl pbe">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:62px;" class="fb s vl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:16px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; height:49px;" class="fb s hl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A</span><span style="padding-block-start:4px;" class="fb hl">M<br>N</span><span style="padding-block-start:21px; height:49px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; height:49px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:16px;" class="fb hl pbe">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:17px; height:49px;" class="fb s hl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:16px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:13px;" class="lb vl pbe">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:4px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:4px;" class="lb hl pbs">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:4px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A</span><span style="padding-block-end:6px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:16px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s vr">X</span></div>
<div class="grid c hl"><span style="padding-block-start:13px;" class="fb vr pbe">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="padding-block-start:16px;" class="fb vr pbs">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:17px; width:49px;" class="fb s vr">X</span></div>
<div class="grid vr"><span style="padding-block-start:4px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:62px;" class="fb s vl">X</span></div>
<div class="grid vr"><span style="padding-block-start:1px;" class="fb vl pbe">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:62px;" class="fb s vl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:4px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:4px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A</span><span style="padding-block-end:1px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:16px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:16px;" class="lb vl pbe">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -131,14 +131,6 @@ fails-if(Android) == grid-item-table-stretch-002.html grid-item-table-stretch-00
skip-if(Android) == grid-item-video-stretch-001.html grid-item-video-stretch-001-ref.html # Huh, Android doesn't have webm support?
skip-if(Android) == grid-item-video-stretch-002.html grid-item-video-stretch-002-ref.html # Huh, Android doesn't have webm support?
== grid-item-input-stretch-001.html grid-item-input-stretch-001-ref.html
== grid-item-self-baseline-001.html grid-item-self-baseline-001-ref.html
random-if(http.oscpu!="Linux\u0020i686") == grid-item-content-baseline-001.html grid-item-content-baseline-001-ref.html # depends on exact Ahem baseline font metrics which seems to differ between platforms: bug 1310792
random-if(http.oscpu!="Linux\u0020i686") == grid-item-content-baseline-002.html grid-item-content-baseline-002-ref.html # ditto
random-if(http.oscpu!="Linux\u0020i686") == grid-item-content-baseline-003.html grid-item-content-baseline-003-ref.html # ditto
random-if(http.oscpu!="Linux\u0020i686") == grid-item-mixed-baseline-001.html grid-item-mixed-baseline-001-ref.html # ditto
random-if(http.oscpu!="Linux\u0020i686") == grid-item-mixed-baseline-002.html grid-item-mixed-baseline-002-ref.html # ditto
random-if(http.oscpu!="Linux\u0020i686") == grid-item-mixed-baseline-003.html grid-item-mixed-baseline-003-ref.html # ditto
skip-if(!gtkWidget) skip-if(verify) == grid-item-mixed-baseline-004.html grid-item-mixed-baseline-004-ref.html # ditto.
== grid-align-content-001.html grid-align-content-001-ref.html
== grid-justify-content-001.html grid-justify-content-001-ref.html
== grid-justify-content-002.html grid-justify-content-002-ref.html

Просмотреть файл

@ -0,0 +1,110 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: auto / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / auto;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb">A<br>B</span><span class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:2px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:36px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb pbs">A<br>B</span><span style="padding-block-start:18px;" class="fb">M<br>N</span><span style="padding-block-start:22px; padding-block-end:36px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:2px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:2px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:36px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:36px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:8px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A<br>B</span><span style="padding-block-start:12px;" class="fb hl">M<br>N</span><span style="padding-block-start:28px; padding-block-end:24px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s hl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:8px;" class="lb vl">A<br>B</span><span style="padding-block-end:0;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:2px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:2px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:8px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s vr">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:5px;" class="fb vr pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:8px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb vr pbs">A<br>B</span><span style="padding-block-start:7px;" class="fb vr">M<br>N</span><span style="padding-block-start:23px; padding-block-end:24px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:2px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:36px;" class="fb s vl">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:0;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:1px;" class="fb vl">M<br>N</span><span style="padding-block-start:5px; padding-block-end:36px;" class="fb s vl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:2px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A<br>B</span><span style="padding-block-end:5px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:2px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A<br>B</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-content-baseline-001-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -27,14 +27,14 @@ html,body {
grid: repeat(4, auto) / auto;
}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -0,0 +1,109 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: 100px / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / 100px;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb">A<br>B</span><span class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:2px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px;" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb pbs">A<br>B</span><span style="padding-block-start:18px;" class="fb">M<br>N</span><span style="padding-block-start:22px; padding-block-end:56px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:2px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:2px;" class="lb">A<br>B</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px;" class="fb s vl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:8px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A<br>B</span><span style="padding-block-start:12px;" class="fb hl">M<br>N</span><span style="padding-block-start:28px; padding-block-end:50px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s hl">X<br>Z</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s hl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:8px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:2px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl pbs">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:2px;" class="lb hl">A<br>B</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A<br>B</span><span style="padding-block-end:8px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:8px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s vr">X<br>Z</span></div>
<div class="grid c hl"><span style="padding-block-start:5px;" class="fb vr pbe">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:8px;" class="fb vr">A<br>B</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb vr pbs">A<br>B</span><span style="padding-block-start:7px;" class="fb vr">M<br>N</span><span style="padding-block-start:23px; padding-block-end:55px;" class="fb s vr">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:2px;" class="fb vl">A<br>B</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px;" class="fb s vl">X<br>Z</span></div>
<div class="grid vr"><span style="padding-block-start:0;" class="fb vl pbe">A<br>B</span><span style="padding-block-start:1px;" class="fb vl">M<br>N</span><span style="padding-block-start:5px; padding-block-end:73px;" class="fb s vl">X<br>Z</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:2px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A<br>B</span><span style="padding-block-end:5px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:2px;" class="lb vr">A<br>B</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A<br>B</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl pbe">A<br>B</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -8,11 +8,11 @@
<title>CSS Grid Test: align-content:baseline/last baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-content-baseline-001-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="match" href="grid-item-content-baseline-002-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -29,14 +29,14 @@ html,body {
.e { align-content:end; }
.c.e { justify-content:end; }
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -0,0 +1,110 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611724">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: auto / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / auto;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: content-box silver;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb">A</span><span class="fb">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s">X</span></div>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:2px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb">A</span><span style="padding-block-start:18px;" class="fb">M<br>N</span><span style="padding-block-start:22px; width:56px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s">X</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:2px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb pbs">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:2px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl pbe">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:8px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A</span><span style="padding-block-start:12px;" class="fb hl">M<br>N</span><span style="padding-block-start:28px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl pbe">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:8px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vl pbe">A</span><span style="padding-block-end:2px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl pbs">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:2px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A</span><span style="padding-block-end:8px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:8px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid c hl"><span style="padding-block-start:5px;" class="fb vr pbe">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="padding-block-start:8px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="" class="fb vr pbs">A</span><span style="padding-block-start:7px;" class="fb vr">M<br>N</span><span style="padding-block-start:23px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vr"><span style="padding-block-start:2px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid vr"><span style="padding-block-start:0;" class="fb vl pbe">A</span><span style="padding-block-start:1px;" class="fb vl">M<br>N</span><span style="padding-block-start:5px; width:56px;" class="fb s vl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:2px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A</span><span style="padding-block-end:5px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:2px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl pbe">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611724">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-content-baseline-003-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -33,8 +33,8 @@ span {
border: 1px solid black;
}
span:nth-child(1) { font-size:12px; }
span:nth-child(2) { font-size:32px; }
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -0,0 +1,110 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: align-content/justify-content:baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611724">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid: auto / repeat(4, auto);
}
.c {
grid: repeat(4, auto) / auto;
}
div {
float: left;
border:2px solid;
padding:1px;
margin:1px;
}
span {
background: silver;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-self:baseline; justify-self:baseline; }
.lb { align-self:last baseline; justify-self:last baseline; }
.s { align-self:self-stretch; justify-self:self-stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb">A</span><span class="fb">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s">X</span></div>
<div class="grid hl"><span style="padding-block-start:8px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:2px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s">X</span></div>
<div class="grid vl"><span style="padding-block-start:15px;" class="fb">A</span><span style="padding-block-start:18px;" class="fb">M<br>N</span><span style="padding-block-start:22px; width:56px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s">X</span></div>
<div class="grid vr"><span style="padding-block-start:8px;" class="fb pbe">A</span><span style="padding-block-start:0px;" class="fb">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s">X</span></div>
<br clear="all">
<div class="grid hl"><span style="padding-block-end:2px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid hl"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:8px;" class="lb pbs">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:2px;" class="lb">A</span><span style="padding-block-end:0px;" class="lb">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:7px;" class="lb pbe">A</span><span style="padding-block-end:8px;" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid c hl"><span style="padding-block-start:2px;" class="fb vl pbe">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:8px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vl"><span style="padding-block-start:15px;" class="fb hl pbs">A</span><span style="padding-block-start:12px;" class="fb hl">M<br>N</span><span style="padding-block-start:28px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<div class="grid c vr"><span style="padding-block-start:8px;" class="fb hl pbe">A</span><span style="padding-block-start:0px;" class="fb hl">M<br>N</span><span style="padding-block-start:16px; height:44px;" class="fb s hl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:8px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vl pbe">A</span><span style="padding-block-end:2px;" class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span style="padding-block-end:2px;" class="lb hl pbs">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:2px;" class="lb hl">A</span><span style="padding-block-end:0px;" class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span style="padding-block-end:7px;" class="lb hl pbe">A</span><span style="padding-block-end:8px;" class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-start:8px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid c hl"><span style="padding-block-start:5px;" class="fb vr pbe">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="padding-block-start:8px;" class="fb vr">A</span><span style="padding-block-start:0px;" class="fb vr">M<br>N</span><span style="padding-block-start:16px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vl"><span style="" class="fb vr pbs">A</span><span style="padding-block-start:7px;" class="fb vr">M<br>N</span><span style="padding-block-start:23px; width:44px;" class="fb s vr">X</span></div>
<div class="grid vr"><span style="padding-block-start:2px;" class="fb vl">A</span><span style="padding-block-start:0px;" class="fb vl">M<br>N</span><span style="padding-block-start:4px; width:56px;" class="fb s vl">X</span></div>
<div class="grid vr"><span style="padding-block-start:0;" class="fb vl pbe">A</span><span style="padding-block-start:1px;" class="fb vl">M<br>N</span><span style="padding-block-start:5px; width:56px;" class="fb s vl">X</span></div>
<br clear="all">
<div class="grid c hl"><span style="padding-block-end:2px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span style="padding-block-end:7px;" class="lb vr pbe">A</span><span style="padding-block-end:5px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:2px;" class="lb vr">A</span><span style="padding-block-end:0px;" class="lb vr">M<br>N</span></div>
<div class="grid vl"><span style="padding-block-end:0px;" class="lb vr pbs">A</span><span style="padding-block-end:3px;" class="lb vr">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
<div class="grid vr"><span style="padding-block-end:8px;" class="lb vl pbe">A</span><span style="padding-block-end:0px;" class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,110 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>CSS Grid Test: align-content:baseline/last baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611724">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-content-baseline-004-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
float: left;
display: grid;
grid: auto / repeat(4, auto);
border: 2px solid;
padding: 1px;
margin: 1px;
}
.c {
grid: repeat(4, auto) / auto;
}
span {
background: silver;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:20px; }
span:nth-child(2) { font-size:30px; }
span:nth-child(3) { font-size:10px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
.fb { align-content:baseline; align-self:self-start; justify-self:self-start; }
.lb { align-content:last baseline; align-self:self-end; justify-self:self-end; }
.s { align-self:stretch; justify-self:stretch; }
.hl { writing-mode: horizontal-tb; direction:ltr; }
.hr { writing-mode: horizontal-tb; direction:rtl; }
.vl { writing-mode: vertical-lr; text-orientation: sideways; }
.vr { writing-mode: vertical-rl; text-orientation: sideways; }
.vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
.vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
</style>
</head>
<body>
<div class="grid hl"><span class="fb">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<div class="grid hl"><span class="fb pbe">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<div class="grid vl"><span class="fb">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<div class="grid vl"><span class="fb pbs">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<div class="grid vr"><span class="fb">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<div class="grid vr"><span class="fb pbe">A</span><span class="fb">M<br>N</span><span class="fb s">X</span></div>
<br clear="all">
<div class="grid hl"><span class="lb">A</span><span class="lb">M<br>N</span></div>
<div class="grid hl"><span class="lb pbe">A</span><span class="lb">M<br>N</span></div>
<div class="grid vl"><span class="lb">A</span><span class="lb">M<br>N</span></div>
<div class="grid vl"><span class="lb pbs">A</span><span class="lb">M<br>N</span></div>
<div class="grid vr"><span class="lb">A</span><span class="lb">M<br>N</span></div>
<div class="grid vr"><span class="lb pbe">A</span><span class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span class="fb vl">A</span><span class="fb vl">M<br>N</span><span class="fb s vl">X</span></div>
<div class="grid c hl"><span class="fb vl pbe">A</span><span class="fb vl">M<br>N</span><span class="fb s vl">X</span></div>
<div class="grid c vl"><span class="fb hl">A</span><span class="fb hl">M<br>N</span><span class="fb s hl">X</span></div>
<div class="grid c vl"><span class="fb hl pbs">A</span><span class="fb hl">M<br>N</span><span class="fb s hl">X</span></div>
<div class="grid c vr"><span class="fb hl">A</span><span class="fb hl">M<br>N</span><span class="fb s hl">X</span></div>
<div class="grid c vr"><span class="fb hl pbe">A</span><span class="fb hl">M<br>N</span><span class="fb s hl">X</span></div>
<br clear="all">
<div class="grid c hl"><span class="lb vl">A</span><span class="lb vl">M<br>N</span></div>
<div class="grid c hl"><span class="lb vl pbe">A</span><span class="lb vl">M<br>N</span></div>
<div class="grid c vl"><span class="lb hl">A</span><span class="lb hl">M<br>N</span></div>
<div class="grid c vl"><span class="lb hl pbs">A</span><span class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span class="lb hl">A</span><span class="lb hl">M<br>N</span></div>
<div class="grid c vr"><span class="lb hl pbe">A</span><span class="lb hl">M<br>N</span></div>
<br clear="all">
<div class="grid c hl"><span class="fb vr">A</span><span class="fb vr">M<br>N</span><span class="fb s vr">X</span></div>
<div class="grid c hl"><span class="fb vr pbe">A</span><span class="fb vr">M<br>N</span><span class="fb s vr">X</span></div>
<div class="grid vl"><span class="fb vr">A</span><span class="fb vr">M<br>N</span><span class="fb s vr">X</span></div>
<div class="grid vl"><span class="fb vr pbs">A</span><span class="fb vr">M<br>N</span><span class="fb s vr">X</span></div>
<div class="grid vr"><span class="fb vl">A</span><span class="fb vl">M<br>N</span><span class="fb s vl">X</span></div>
<div class="grid vr"><span class="fb vl pbe">A</span><span class="fb vl">M<br>N</span><span class="fb s vl">X</span></div>
<br clear="all">
<div class="grid c hl"><span class="lb vr">A</span><span class="lb vr">M<br>N</span></div>
<div class="grid c hl"><span class="lb vr pbe">A</span><span class="lb vr">M<br>N</span></div>
<div class="grid vl"><span class="lb vr">A</span><span class="lb vr">M<br>N</span></div>
<div class="grid vl"><span class="lb vr pbs">A</span><span class="lb vr">M<br>N</span></div>
<div class="grid vr"><span class="lb vl">A</span><span class="lb vl">M<br>N</span></div>
<div class="grid vr"><span class="lb vl pbe">A</span><span class="lb vl">M<br>N</span></div>
</body>
</html>

Просмотреть файл

@ -7,10 +7,10 @@
<meta charset="utf-8">
<title>Reference: mixed align-content/self:baseline/last baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -25,16 +25,16 @@ html,body {
}
.t2 { grid: auto / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
@ -57,50 +57,50 @@ span:nth-child(4) { font-size:24px; }
</head>
<body>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:35px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:38px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:38px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:25px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:35px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:34px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:36px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:36px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:24px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:34px" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:6px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:8px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<br clear="all">
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<br clear="all">

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-mixed-baseline-001-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -27,16 +27,16 @@ html,body {
}
.t2 { grid: auto / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -7,10 +7,10 @@
<meta charset="utf-8">
<title>Reference: mixed align-content/self:baseline/last baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -29,16 +29,16 @@ html,body {
}
.t2 { grid: 100px / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
@ -61,50 +61,50 @@ span:nth-child(4) { font-size:24px; }
</head>
<body>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:50px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:54px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:6px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:8px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<br clear="all">
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span style="padding-block-end:0px" class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span style="padding-block-end:0px" class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<br clear="all">

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-mixed-baseline-002-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -29,16 +29,16 @@ html,body {
}
.t2 { grid: 100px / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -7,10 +7,10 @@
<meta charset="utf-8">
<title>Reference: mixed align-content/self:baseline/last baseline</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -29,16 +29,16 @@ html,body {
}
.t2 { grid: 100px / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }
@ -61,50 +61,50 @@ span:nth-child(4) { font-size:24px; }
</head>
<body>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:70px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:50px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-start:17px; padding-block-end:57px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-start:4px; padding-block-end:74px" class="fb s">X<br>Z</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-start:24px; padding-block-end:54px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-start:16px; padding-block-end:62px" class="fb s">X<br>Z</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span></div>
<br clear="all">
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:4px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:24px" class="fb">M<br>N</span><span style="padding-block-end:11px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:16px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb">A<br>B</span><span style="padding-block-start:3px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="sfb pbs">A<br>B</span><span style="padding-block-start:23px" class="fb">M<br>N</span><span style="padding-block-end:8px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="sfb pbe">A<br>B</span><span style="padding-block-start:12px" class="fb">M<br>N</span><span style="padding-block-end:2px" class="lb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:6px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:12px" class="lb">R<br>S</span></div>
<div class="grid vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span style="padding-block-end:8px" class="lb">R<br>S</span></div>
<div class="grid vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<div class="grid vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="fb">X<br>Z</span><span class="slb">R<br>S</span></div>
<br clear="all">
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vr fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 hl"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="vl sfb">R<br>S</span><span class="vl fb">U<br>V</span><span style="align-self:stretch" class="vl fb s">X<br>Z</span><span class="vr sfb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="hr sfb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hr fb s">X<br>Z</span><span class="hr sfb">K<br>L</span></div>
<br clear="all">
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:16px" class="lb">M<br>N</span><span class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:4px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:14px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vl"><span class="slb pbs">A<br>B</span><span style="padding-block-end:12px" class="lb">M<br>N</span><span class="hr lb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb">A<br>B</span><span style="padding-block-end:3px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span class="hl sfb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<div class="grid t2 vr"><span class="slb pbe">A<br>B</span><span style="padding-block-end:13px" class="lb">M<br>N</span><span class="hl fb">R<br>S</span><span class="hl fb">U<br>V</span><span style="align-self:stretch" class="hl fb s">X<br>Z</span><span class="hl sfb s">X<br>Z</span><span class="hl slb">K<br>L</span></div>
<br clear="all">

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-mixed-baseline-003-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.grid {
@ -31,16 +31,16 @@ html,body {
}
.t2 { grid: 100px / repeat(3, auto);}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -7,10 +7,10 @@
<meta charset="utf-8">
<title>Reference: mixed align-content/self:baseline/last baseline in fragmentated grid</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.columns {
@ -34,12 +34,10 @@ html,body {
grid-auto-rows: 100px;
border: 2px solid;
margin: 1px;
}
.g1 {
border-bottom-width: 0;
grid-template-rows: 100px 0 0;
height:
}
.g2 {
border-top-width: 0;
@ -51,18 +49,16 @@ html,body {
height: 0;
}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
.g2 span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -9,10 +9,10 @@
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-content">
<link rel="match" href="grid-item-mixed-baseline-004-ref.html">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px; font-family: Ahem; padding:0; margin:0;
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
.columns {
@ -38,16 +38,16 @@ html,body {
margin: 1px;
}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;
}
span:nth-child(1) { font-size:32px; }
span:nth-child(2) { font-size:12px; }
span:nth-child(1) { font-size:30px; }
span:nth-child(2) { font-size:15px; }
span:nth-child(3) { font-size:10px; }
span:nth-child(4) { font-size:24px; }
span:nth-child(4) { font-size:20px; }
.pbs { padding-block-start: 15px; margin-block-start: 5px; }
.pbe { padding-block-end: 7px; margin-block-end: 3px; }

Просмотреть файл

@ -27,7 +27,7 @@ div {
padding:1px;
margin:1px;
}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;

Просмотреть файл

@ -27,7 +27,7 @@ html,body {
grid: repeat(4, auto) / auto;
}
span {
span {
background: lime;
display: inline-block;
border: 1px solid black;