mirror of
https://github.com/servo/servo.git
synced 2025-06-14 03:14:29 +00:00
I had to use a somewhat unconventional method of computing text indentation (propagating from blocks down to inlines) because of the way containing blocks are handled in Servo. (As a side note, neither Gecko nor WebKit correctly handles percentages in `text-align`, at least incrementally -- i.e. when the percentages are relative to the viewport and the viewport is resized.)
46 lines
706 B
HTML
46 lines
706 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Tests that `text-indent` works, in particular when combined with `text-align`. -->
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
|
<style>
|
|
section {
|
|
background: blue;
|
|
position: absolute;
|
|
width: 100px;
|
|
}
|
|
#a {
|
|
top: 0;
|
|
left: 100px;
|
|
height: 100px;
|
|
}
|
|
#b {
|
|
top: 100px;
|
|
left: 0;
|
|
height: 100px;
|
|
}
|
|
#c {
|
|
top: 200px;
|
|
left: 100px;
|
|
height: 100px;
|
|
}
|
|
#d {
|
|
top: 300px;
|
|
left: 0;
|
|
height: 100px;
|
|
}
|
|
#e {
|
|
top: 0;
|
|
left: 300px;
|
|
height: 200px;
|
|
}
|
|
</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>
|