mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:27:34 +00:00
Tests/LibWeb: Use SerenitySans in new layout tests
This ensures consistent font metrics no matter which platform fonts are available.
This commit is contained in:
parent
ff7b949061
commit
da861fe7af
4 changed files with 10 additions and 8 deletions
|
@ -6,9 +6,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||||
Box <div.flex-container> at (11,11) content-size 600x10 flex-container(row) children: not-inline
|
Box <div.flex-container> at (11,11) content-size 600x10 flex-container(row) children: not-inline
|
||||||
BlockContainer <(anonymous)> at (11,11) content-size 0x0 children: inline
|
BlockContainer <(anonymous)> at (11,11) content-size 0x0 children: inline
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <div.flex-item> at (12,72) content-size 24.859375x18.000007 flex-item children: inline
|
BlockContainer <div.flex-item> at (12,72) content-size 27.15625x18.000007 flex-item children: inline
|
||||||
line 0 width: 24.859375, height: 19.359375, bottom: 19.359375, baseline: 15.5
|
line 0 width: 27.15625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||||
frag 0 from TextNode start: 0, length: 3, rect: [12,72 24.859375x19.359375]
|
frag 0 from TextNode start: 0, length: 3, rect: [12,72 27.15625x17.46875]
|
||||||
"foo"
|
"foo"
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <(anonymous)> at (11,11) content-size 0x0 children: inline
|
BlockContainer <(anonymous)> at (11,11) content-size 0x0 children: inline
|
||||||
|
|
|
@ -7,12 +7,12 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||||
BlockContainer <(anonymous)> at (11,11) content-size 600x0 children: inline
|
BlockContainer <(anonymous)> at (11,11) content-size 600x0 children: inline
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <div.foo> at (12,72) content-size 598x18.000007 children: inline
|
BlockContainer <div.foo> at (12,72) content-size 598x18.000007 children: inline
|
||||||
line 0 width: 24.859375, height: 19.359375, bottom: 19.359375, baseline: 15.5
|
line 0 width: 27.15625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||||
frag 0 from TextNode start: 0, length: 3, rect: [12,72 24.859375x19.359375]
|
frag 0 from TextNode start: 0, length: 3, rect: [12,72 27.15625x17.46875]
|
||||||
"foo"
|
"foo"
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <(anonymous)> at (11,211) content-size 600x19.359375 children: inline
|
BlockContainer <(anonymous)> at (11,211) content-size 600x17.46875 children: inline
|
||||||
line 0 width: 25.21875, height: 19.359375, bottom: 19.359375, baseline: 15.5
|
line 0 width: 27.640625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||||
frag 0 from TextNode start: 1, length: 3, rect: [11,211 25.21875x19.359375]
|
frag 0 from TextNode start: 1, length: 3, rect: [11,211 27.640625x17.46875]
|
||||||
"bar"
|
"bar"
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
|
font-family: 'SerenitySans';
|
||||||
}
|
}
|
||||||
.flex-container {
|
.flex-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
|
font-family: 'SerenitySans';
|
||||||
}
|
}
|
||||||
.cb {
|
.cb {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue