[wpt-sync] Sync PR 28315 - font-stretch should use keywords for computed style when possible
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 28315 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/28315
Details from upstream follow.
b'Antoine Quint <graouts@apple.com>' wrote:
font-stretch should use keywords for computed style when possible
According to the css-fonts-4 definition for
font-stretch
:For compatibility with [CSS-FONTS-3],
getComputedStyle()
serializes values that correspond to one of thefont-stretch
keywords as that keyword (instead of as a<percentage>
).Given that
150%
matchesextra-expanded
and75%
matchescondensed
, these should be the expected values reported by the computed style in those tests.Note that this makes this test fail in Firefox and Chrome which returns
<percentage>
in this case, while Safari will only pass the first of the two assertions.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 185 subtests
Status Summary
Firefox
OK : 1
PASS: 184
FAIL: 1
Chrome
OK : 1
PASS: 184
FAIL: 1
Safari
OK : 1
PASS: 172
FAIL: 13
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/css/css-fonts/animations/font-stretch-interpolation.html
An interpolation to inherit updates correctly on a parent style change.: FAIL (Chrome: FAIL, Safari: FAIL)
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4108952a02f9
https://hg.mozilla.org/mozilla-central/rev/b509fe877f2e
Description
•