mirror of
https://github.com/servo/servo.git
synced 2025-07-19 05:13:55 +01:00
I had to change the test a little bit to avoid some failures due to color and text both having a sanitizedValue which was making the test use the first assertion instead of the second one in some cases. The sanitize_value implementation is pretty simple, we iterate over the content and checks that the content is 7 characters long, that the first character is a `#` and then that all the following characters are hexadecimal. If all those requirements are met, we lowercase the content, otherwise we put `#000000` in it. |
||
---|---|---|
.. | ||
browsers | ||
dom | ||
editing | ||
iana | ||
infrastructure | ||
introduction | ||
obsolete | ||
rendering | ||
resources | ||
semantics | ||
syntax | ||
the-xhtml-syntax | ||
tools | ||
webappapis | ||
OWNERS | ||
README.md |
HTML
This directory contains tests for HTML.
Sub-directory names should be based on the URL of the corresponding part of the multipage-version specification. For example, The URL of "8.3 Base64 utility methods" is https://html.spec.whatwg.org/multipage/webappapis.html#atob. So the directory in WPT is webappapis/atob/.
For historical reasons, parts of HTML have their own directories: