1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:07:34 +00:00

LibWeb: Add support for "place-items" CSS property

Adds support for place-items property which allows to specify both
align-items and justify-items in a single declaration.
This commit is contained in:
Aliaksandr Kalenik 2023-07-17 16:34:12 +02:00 committed by Andreas Kling
parent a74c56bc1b
commit a8587fe54e
12 changed files with 135 additions and 0 deletions

View file

@ -0,0 +1,8 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x37.46875 [BFC] children: not-inline
Box <body> at (10,10) content-size 780x19.46875 [GFC] children: not-inline
BlockContainer <div> at (362.9375,11) content-size 74.125x17.46875 [BFC] children: inline
line 0 width: 74.125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 8, rect: [362.9375,11 74.125x17.46875]
"Download"
TextNode <#text>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html><style>
* {
border: 1px solid black;
}
body {
display: grid;
place-items: center;
}
</style><body><div>Download