mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'f0b66362cc5dec54d81e0a56458b48f310a2eba9'
This commit is contained in:
parent
766917ef4f
commit
75286b8eab
467 changed files with 8309 additions and 3209 deletions
|
@ -12,7 +12,12 @@
|
|||
// This creates a test()
|
||||
assert_root_color_scheme("dark", "<meta> set the color-scheme to dark");
|
||||
|
||||
test(() => {
|
||||
assert_equals(document.querySelector(":root:lang(dark)"), document.documentElement);
|
||||
}, "<meta> set the content-language to dark");
|
||||
// We can't test content-language against :lang(), because CSS Selectors 4
|
||||
// references BCP 47 syntax and RFC4647 "Matching of Language Tags", but
|
||||
// "dark" is not a well-formed BCP 47 tag and therefore cannot be matched.
|
||||
// Therefore, the test that content-language gets set is split off to a
|
||||
// separate testcase using a well-formed lang tag as the content.
|
||||
// test(() => {
|
||||
// assert_equals(document.querySelector(":root:lang(dark)"), document.documentElement);
|
||||
// }, "<meta> set the content-language to dark");
|
||||
</script>
|
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<title>Setting both http-equiv and name attributes on a meta element</title>
|
||||
<meta http-equiv=content-language name=color-scheme content=de-DE>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
// We don't attempt to test the color-scheme here because "de-DE" is not a valid
|
||||
// value for it.
|
||||
|
||||
test(() => {
|
||||
assert_equals(document.querySelector(":root:lang(de-DE)"), document.documentElement);
|
||||
}, "<meta> set the content-language to de-DE");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue