Bug 1693425 [wpt PR 27668] - [advance-override] Rename advance-proportional-override to advance-override, a=testonly

Automatic update from web-platform-tests
[advance-override] Rename advance-proportional-override to advance-override

This is the follow up of crrev.com/c/2702291

Now that the CSSWG has standardized a descriptor 'advance-override' [1],
which works exactly the same as the 'advance-proportional-override', this
patch renames it to 'advance-override' to match the spec.

There's also a test moved from wpt_internal to wpt since it has been
standardized now.

[1] https://github.com/w3c/csswg-drafts/pull/5991

Bug: 1137633
Change-Id: I85d8cc5e3fef0315c36d1436cb21f1d4be85b04b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2702477
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#855390}

--

wpt-commits: 7e4c574291142087f00efa00f782be03cebda75a
wpt-pr: 27668
This commit is contained in:
Xiaocheng Hu 2021-02-22 21:48:37 +00:00 коммит произвёл moz-wptsync-bot
Родитель f1cabb6afc
Коммит 7051cc16df
2 изменённых файлов: 77 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,34 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-fonts-5/#descdef-font-face-advance-override">
<link rel="assert" title="Tests that advance-override sets advance to characters rendered with the font face only">
<title>Tests the advance-override descriptor of @font-face</title>
<style>
@font-face {
font-family: custom-font;
src: local(Ahem), url(/fonts/Ahem.ttf);
unicode-range: U+0-7F; /* ASCII only */
}
.target {
font: 20px custom-font, sans-serif;
}
.letter-spacing {
letter-spacing: 1em;
}
</style>
<p>advance-override should affect Ahem characters only.</p>
<div class="target">
<span class="letter-spacing">XXX</span>一二三<span class="letter-spacing">XXX</span>
</div>
<p>advance-override: 100% should be the same as no override.</p>
<div class="target">
XXX一二三XXX
</div>

Просмотреть файл

@ -0,0 +1,43 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-fonts-5/#descdef-font-face-advance-override">
<link rel="match" href="advance-override-ref.html">
<link rel="assert" title="Tests that advance-override sets advance to characters rendered with the font face only">
<title>Tests the advance-override descriptor of @font-face</title>
<style>
@font-face {
font-family: custom-font;
src: local(Ahem), url(/fonts/Ahem.ttf);
advance-override: 200%;
unicode-range: U+0-7F; /* ASCII only */
}
.target {
font: 20px custom-font, sans-serif;
}
@font-face {
font-family: reference-font;
src: local(Ahem), url(/fonts/Ahem.ttf);
advance-override: 100%;
unicode-range: U+0-7F; /* ASCII only */
}
.reference {
font: 20px reference-font, sans-serif;
}
</style>
<p>advance-override should affect Ahem characters only.</p>
<div class="target">
XXX一二三XXX
</div>
<p>advance-override: 100% should be the same as no override.</p>
<div class="reference">
XXX一二三XXX
</div>