mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
This assumes that there are no ligatures that span across multiple words. Since we have a per-word shape cache, this is a safe assumption as of now. I have left comments to ensure that, if and when this is revisted, we make sure to handle it properly.
26 lines
347 B
HTML
26 lines
347 B
HTML
<html>
|
|
<head>
|
|
<!-- Tests that `word-spacing` works. -->
|
|
<style>
|
|
section, nav, main {
|
|
background-color: chartreuse;
|
|
width: 100px;
|
|
height: 100px;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
section {
|
|
left: 0;
|
|
}
|
|
nav {
|
|
left: 300px;
|
|
}
|
|
main {
|
|
left: 400px;
|
|
}
|
|
</style>
|
|
<body><section></section><nav></nav><main></main></body>
|
|
</head>
|
|
|
|
|
|
|