mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add style property for flex-basis
Add the style property for flex-basis. The property should allow all values acceptable for `width`|`height` with the addition of `content`.
This commit is contained in:
parent
1946c71a96
commit
2d9d31ee04
8 changed files with 117 additions and 18 deletions
|
@ -5,24 +5,23 @@
|
|||
<link href="reference/ref-pass-body.htm" rel="match">
|
||||
<meta content="dom" name="flags">
|
||||
<style>
|
||||
html {
|
||||
body {
|
||||
display: flex;
|
||||
width: 100px;
|
||||
}
|
||||
body {
|
||||
div {
|
||||
color: red;
|
||||
margin: 0;
|
||||
flex-basis: 100%;
|
||||
}
|
||||
.PASS {color: black;}
|
||||
</style>
|
||||
</head><body><h1>FAIL, enable javascript</h1>
|
||||
</head><body><div id="test"><h1>FAIL, enable javascript</h1>
|
||||
<script>
|
||||
var body = document.body;
|
||||
var test = document.getElementById("test");
|
||||
|
||||
var passed =
|
||||
getComputedStyle(body).getPropertyValue("flex-basis") ==
|
||||
getComputedStyle(test).getPropertyValue("flex-basis") ==
|
||||
"100%";
|
||||
body.textContent = body.className = passed ? "PASS" : "FAIL";
|
||||
test.textContent = test.className = passed ? "PASS" : "FAIL";
|
||||
</script>
|
||||
</body></html>
|
||||
</body></html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue