Meta: Add DOCTYPEs to most text tests

This commit is contained in:
Psychpsyo 2025-03-18 19:28:35 +01:00 committed by Jelle Raaijmakers
commit b3487d8994
Notes: github-actions[bot] 2025-03-20 10:52:03 +00:00
536 changed files with 536 additions and 4 deletions

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script type="text/javascript">
asyncTest(async done => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<!-- https://github.com/SerenityOS/serenity/issues/23633 -->
<style>
div {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<!-- https://github.com/SerenityOS/serenity/issues/23609 -->
<style>
:root {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
#foo {
animation-name: rule1;

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
span {
float: right;

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<div id="foo"></div>
<script>

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
:root { --top: 1px; }
@layer foo { :root { --left: 2px; } }

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
:root { font-size: 1.1rem; }
#whf { width: max-content; }

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
@import "data:text/css;charset=shift_jis;base64,77u/I2RpdjIKewogICAgY29sb3I6IGdyZWVuOwp9Cgoulb2YYQp7CiAgICBjb2xvcjogcmVkOwp9Cg==";
</style>

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
@keyframes foo {
from { color: black; }

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<head><style>
@media only screen { }
@media only screen and (min-width: 20px) and (max-width: 40px) { }

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
let doc = new DOMParser().parseFromString(`<link rel="stylesheet" href="data:text/css,div{}">`, `text/html`);

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
div { all: revert; }
</style>

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<!-- https://github.com/SerenityOS/serenity/issues/24424 -->
<style>
@keyframes anim {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
function testFlexValue(value) {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<style>
div {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
span {
color: purple;

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="style-sheet-with-byte-order-mark.css" />
</head>

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
#theDiv {
width: max-content;

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
@font-face {
unicode-range: U+??;

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {