Skip to content
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

[LayoutNG] Fix incorrect rounding in ShapingLineBreaker #19002

Merged
merged 1 commit into from Sep 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions css/css-text/line-breaking/line-breaking-020.html
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: Simple line breaking test</title>
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<link rel="help" href="https://crbug.com/1002442">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
p {
width: 460px;
}
</style>
<body>
<p>
abschließend geklärt. Allerdings scheint eine gewisse <b>genetische Veranlagung</b> eine
Zahl der Typ-1-Diabetiker gerade unter Kleinkindern stetig wächst. Daher rücken auch <b>Virusinfektionen</b> in den Fokus
</p>
<script>
test(() => {
for (let e of document.getElementsByTagName('b')) {
let bounds = e.getBoundingClientRect();
assert_less_than_equal(bounds.x + bounds.width, 460);
}
});
</script>
</body>