mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
LibWeb: Treat unresolvable percentage width on inline-block as auto
This commit is contained in:
parent
c590c5c444
commit
e3b8a8f7c8
2 changed files with 22 additions and 1 deletions
|
@ -0,0 +1,21 @@
|
|||
|
||||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
.outer {
|
||||
float: left;
|
||||
background: pink;
|
||||
}
|
||||
.first {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
background: orange;
|
||||
}
|
||||
.second {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: magenta;
|
||||
}
|
||||
</style>
|
||||
</head><body><div class="outer"><div class="first">programming</div><div class="second"></div>
|
Loading…
Add table
Add a link
Reference in a new issue