mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-21 11:40:34 -10:00
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
27 lines
981 B
HTML
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>
|