Skip to content

Commit 487384c

Browse files
mrobinsonservo-wpt-sync
authored andcommitted
layout: Use f64 when blending table content sizes
It seems that `f32` doesn't have enough precision to prevent hitting our floating point error limit when blending content sizes during table layout. This change makes more calculations use `f64` preventing a debug assertion from firing. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
1 parent 1985b47 commit 487384c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
3+
<link rel="help" href="https://github.com/servo/servo/issues/46774">
4+
<style>
5+
span {
6+
display: inline-block;
7+
width: 2000000px;
8+
}
9+
table {
10+
border-collapse: collapse;
11+
width: 2060000px
12+
}
13+
td {
14+
padding: 0;
15+
}
16+
</style>
17+
<table><td><span></span><span></span></td></table>
18+

0 commit comments

Comments
 (0)