-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
A-styloC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueC-has-open-prThere is a PR open that resolves the issueThere is a PR open that resolves the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issVariable effort required; may require a mentor. Recommended solution is clearly described in the iss
Description
Testcase:
<div style="width: 0.33px"></div>
<script>
console.log(document.querySelector("div").style.width);
</script>
In servo this logs "0.31666666px". It should really preserve the original "0.33px" value.
In Gecko, specified values are stored as floating point plus unit, and not converted to 1/60 px integers until computed value time.
And even then, note that servo above is converting by truncation, whereas Gecko uses rounding. Specifically, Gecko does NSToCoordRoundWithClamp which checks for overflow issues, then rounds to nearest via NSToCoordRound.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-styloC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueC-has-open-prThere is a PR open that resolves the issueThere is a PR open that resolves the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issVariable effort required; may require a mentor. Recommended solution is clearly described in the iss