Closed Bug 1356107 Opened 7 years ago Closed 7 years ago

stylo: Lengths are not round-trip sometimes due to rounding difference

Categories

(Core :: CSS Parsing and Computation, defect)

53 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: xidorn, Unassigned)

References

Details

A simple example for this:
<!DOCTYPE HTML>
<div id="test"></div>
<script>
test.style.font = '24px/1.4 serif';
let computed = getComputedStyle(test).lineHeight;
alert(computed);
test.style.lineHeight = computed;
alert(getComputedStyle(test).lineHeight);
</script>

In Gecko, this would consistently return 33.6px, while with Stylo, the first one returns 33.6px, but the second becomes 33.5833px (actually it seems that the issue happens in parsing).
It seems someone has fixed this, and there is no item in test_value_storage.html for this anymore.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.