-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-align-3] Specifying justiy-self on block-level boxes wrt floats #9963
Comments
@bfgeek I don't understand how <!DOCTYPE html>
<label>margin-left<input id="margin-left" value="0" type="range" min="0" max="50" list="markers"></label><br>
<label>margin-right<input id="margin-right" value="0" type="range" min="0" max="50" list="markers"></label><br>
<datalist id="markers">
<option value="0"></option>
<option value="10"></option>
<option value="20"></option>
<option value="30"></option>
<option value="40"></option>
<option value="50"></option>
</datalist>
<div style="border: solid; overflow: hidden; width: 300px; text-align: -webkit-center">
<div style="float: left; height: 100px; width: 100px; background: cyan"></div>
<div style="float: right; height: 100px; width: 100px; background: magenta"></div>
<div id="target" style="overflow: hidden; width: 50px; height: 50px; background: orange; margin-left:0; margin-right: 0;"></div>
</div>
<script>
var target = document.getElementById("target");
for (let prop of ["margin-left", "margin-right"]) {
document.getElementById(prop).addEventListener("input", e => target.style.setProperty(prop, e.target.value + "px"));
}
</script> |
Testing with
Since WebKit and Blink are broken, I plan to align Servo with Gecko. |
Discussing how to spec the alignment of block-level boxes in the presence of floats...
Notes:
The text was updated successfully, but these errors were encountered: