mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 34f3acabcceff6504c38bd826aca9c0728f26234
This commit is contained in:
parent
61cf25c98a
commit
e469d2e43d
56 changed files with 1103 additions and 120 deletions
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<html style="font-size:16px">
|
||||
<head>
|
||||
<title>CSS Values and Units Test: rem subpixel change</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values/#rem">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div style="font-size:16px">
|
||||
<div id="remElement" style="width: 10rem"></div>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(remElement).width, "160px");
|
||||
document.documentElement.style.fontSize = "16.1px";
|
||||
assert_equals(getComputedStyle(remElement).width, "161px");
|
||||
}, "Check that a 0.1px change in root font-size affect rem units.");
|
||||
</script>
|
||||
<body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue