mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 2660fc486f7027c913863d48a8843942f0c0365e
This commit is contained in:
parent
96de31b463
commit
c413a1139e
455 changed files with 8535 additions and 2067 deletions
|
@ -49,14 +49,13 @@ If you are behind a proxy, you also need to make sure the domains above are
|
|||
excluded from your proxy lookups.
|
||||
|
||||
[The Ahem font](../writing-tests/ahem) is used to test precise rendering
|
||||
behavior. [Download the font][download-ahem] and install it using the
|
||||
appropriate steps for your platform:
|
||||
behavior. This font should be loaded as a web font in tests, using the
|
||||
`/fonts/ahem.css` stylesheet, as follows:
|
||||
|
||||
```
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
||||
```
|
||||
|
||||
- On Windows, right-click the downloaded file in File Explorer/Windows Explorer
|
||||
(depending on Windows version) and select "Install" from the menu.
|
||||
- On macOS, open the downloaded file in Font Book (the default application for
|
||||
font files) and then click install.
|
||||
- On Linux, copy the file to `~/.local/share/fonts` and then run `fc-cache`.
|
||||
|
||||
### Windows Notes
|
||||
|
||||
|
@ -147,5 +146,3 @@ Additional browser-specific documentation:
|
|||
android_webview
|
||||
safari
|
||||
```
|
||||
|
||||
[download-ahem]: https://github.com/web-platform-tests/wpt/raw/master/fonts/Ahem.ttf
|
||||
|
|
|
@ -11,7 +11,6 @@ tests can freely rely on these assumptions being true:
|
|||
* The initial value of `color` is `black`.
|
||||
* The user stylesheet is empty (except where indicated by the tests).
|
||||
* The device is interactive and uses scroll bars.
|
||||
* The device has the Ahem font installed.
|
||||
* The HTML `div` element is assigned `display: block;`, the
|
||||
`unicode-bidi` property may be declared, and no other property
|
||||
declarations.
|
||||
|
|
|
@ -121,10 +121,10 @@ assumptions that can be relied on are documented [here][assumptions];
|
|||
tests that rely on anything else should be manual tests that document
|
||||
their assumptions.
|
||||
|
||||
Aside from the [Ahem font][ahem], fonts cannot be relied on to be
|
||||
either installed or to have specific metrics. As such, in most cases
|
||||
when a known font is needed Ahem should be used. In other cases,
|
||||
`@font-face` should be used.
|
||||
Fonts cannot be relied on to be either installed or to have specific
|
||||
metrics. As such, in most cases when a known font is needed, [Ahem][ahem]
|
||||
should be used and loaded as a web font. In other cases, `@font-face`
|
||||
should be used.
|
||||
|
||||
|
||||
### Be Self-Contained
|
||||
|
|
|
@ -20,8 +20,8 @@ two ways:
|
|||
renders a green square when it passes; these can mostly be written to
|
||||
match [this][ref-filled-green-100px-square] reference. This green square is
|
||||
often rendered over a red square, such that when the test fails there is red
|
||||
visible on the page; this can even be done using text by using the [Ahem][]
|
||||
font.
|
||||
visible on the page; this can even be done using text by using the
|
||||
[Ahem][ahem] font.
|
||||
|
||||
More occasionally, the entire canvas is rendered green, typically when
|
||||
testing parts of CSS that affect the entire page. Care has to be taken
|
||||
|
@ -81,3 +81,4 @@ color-related functionality will necessitate using some of these
|
|||
colors!
|
||||
|
||||
[ref-filled-green-100px-square]: https://github.com/w3c/csswg-test/blob/master/reference/ref-filled-green-100px-square.xht
|
||||
[ahem]: ahem
|
Loading…
Add table
Add a link
Reference in a new issue