Files
firefox/testing/web-platform/tests/css/motion/inheritance.html
T
Yi Xu 20c773374e Bug 1846387 [wpt PR 41264] - CanvasRenderingContext2D does not return a numeric font weight, a=testonly
Automatic update from web-platform-tests
CanvasRenderingContext2D does not return a numeric font weight

If ctx.font is set to `italic 300 12px serif`, ctx.font returns `italic
12px serif`. It doesn't return the correct font weight with getFont().

This cl fixes the return value of font.
ref: https://html.spec.whatwg.org/#text-styles:dom-context-2d-font-2

Bug: 1202489

Change-Id: I428e3941f2a3f59bbaec6585290829fc29e836a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4734077
Reviewed-by: Justin Novosad <[email protected]>
Commit-Queue: Yi Xu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1178255}

--

wpt-commits: 304bb272752937944c938b6aeec47289210944ca
wpt-pr: 41264
2023-08-10 14:59:15 +00:00

27 lines
981 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Inheritance of CSS Motion Path properties</title>
<link rel="help" href="https://drafts.fxtf.org/motion-1/#property-index">
<meta name="assert" content="Properties inherit or not according to the spec.">
<meta name="assert" content="Properties have initial values according to the spec.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/inheritance-testcommon.js"></script>
</head>
<body>
<div id="container">
<div id="target"></div>
</div>
<script>
assert_not_inherited('offset-anchor', 'auto', '2px 3px');
assert_not_inherited('offset-distance', '0px', '4px');
assert_not_inherited('offset-path', 'none', 'path("M 5 6 H 7")');
assert_not_inherited('offset-position', 'normal', '8px 9px');
// https://github.com/w3c/fxtf-drafts/issues/340
assert_not_inherited('offset-rotate', ['auto 0deg', 'auto'], '90deg');
</script>
</body>
</html>