servo/tests/ref/text_align_justify_ref.html
Patrick Walton 5fdaba05a6 layout: Implement text-align: justify and text-justify per
CSS-TEXT-3 § 7.3.

`text-justify: distribute` is not supported.

The behavior of `text-justify: none` does not seem to match what Firefox
and Chrome do, but it seems to match the spec.

Closes #213.
2015-01-29 17:00:41 -08:00

41 lines
500 B
HTML

<!DOCTYPE html>
<html>
<head>
<!-- Tests that basic `text-align: justify` works. -->
<style>
section {
background: blue;
position: absolute;
width: 25px;
height: 25px;
}
#a, #d {
left: 0;
}
#a, #b, #c {
top: 0;
}
#d, #e {
top: 25px;
}
#b {
left: 55px;
}
#c {
left: 110px;
}
#e {
left: 50px;
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
<section id=c></section>
<section id=d></section>
<section id=e></section>
</body>
</html>