WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
Testcase for floats inside a flexitem
foo.html (text/html), 1.13 KB, created by
Christian Biesinger
on 2013-03-04 12:11:46 PST
(
hide
)
Description:
Testcase for floats inside a flexitem
Filename:
MIME Type:
Creator:
Christian Biesinger
Created:
2013-03-04 12:11:46 PST
Size:
1.13 KB
patch
obsolete
><!DOCTYPE html> ><head> ><style> > .flexbox { > display: -webkit-flex; > display: flex; > } > .container { > position: relative; > -webkit-appearance: none; > -moz-appearance: none; > border: 1px solid black; > padding: 0; > background-color: buttonface; > float: left; > margin: 2px; > } > > .margin { > margin: 5px 10px 5px 5px; > } > .sized { > width: 50px; > height: 50px; > } > .pink { > background-color: pink; > } > .float { > float: left; > } > .line { > height: 2px; > border-top: solid 1px #fff; > background: #00f; > > position: absolute; > width: 50px; > bottom: 5px; > left: 5px; > } ></style> ></head> ><body> > You should see an almost-square grey rectangle containing a pink square with a blue line below it. > There should be no pink below the blue line. ><hr> ><div class="container flexbox"> > <div> > <div class="margin sized float"> > <div class="sized"> > <div class="sized pink"> > <div class="line"></div> > </div> > </div> > </div> ></div>
<!DOCTYPE html> <head> <style> .flexbox { display: -webkit-flex; display: flex; } .container { position: relative; -webkit-appearance: none; -moz-appearance: none; border: 1px solid black; padding: 0; background-color: buttonface; float: left; margin: 2px; } .margin { margin: 5px 10px 5px 5px; } .sized { width: 50px; height: 50px; } .pink { background-color: pink; } .float { float: left; } .line { height: 2px; border-top: solid 1px #fff; background: #00f; position: absolute; width: 50px; bottom: 5px; left: 5px; } </style> </head> <body> You should see an almost-square grey rectangle containing a pink square with a blue line below it. There should be no pink below the blue line. <hr> <div class="container flexbox"> <div> <div class="margin sized float"> <div class="sized"> <div class="sized pink"> <div class="line"></div> </div> </div> </div> </div>
View Attachment As Raw
Actions:
View
Attachments on
bug 110933
:
190409
|
190601
|
190602
| 191286 |
191306