mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'544363de4568baf9ae90d71e4822661edc546650'
This commit is contained in:
parent
4d5a804d03
commit
32cc2e03c4
197 changed files with 3539 additions and 2824 deletions
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<title>Setting both http-equiv and name attributes on a meta element</title>
|
||||
<meta http-equiv=content-language name=color-scheme content=dark>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="color-scheme/support/compute-root-color-scheme.js"></script>
|
||||
<!--
|
||||
NOTE: This test assumes that the browser's default color-scheme is "light",
|
||||
see https://github.com/web-platform-tests/wpt/pull/31268 for reasoning
|
||||
-->
|
||||
<script>
|
||||
// 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");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue