Meta: Add DOCTYPEs to ref tests
Author: https://github.com/Psychpsyo
Commit: fed0d6b892
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3456
Reviewed-by: https://github.com/gmta ✅
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This page is intentionally left blank. -->
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="example.com" style="color: orange">Link</a>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
div {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com" style="color: orange"><em><span class="nice"><em>Link</em></span></em></a>
|
||||
<a href="https://example.com"><em>Link</em></a>
|
||||
<a href="https://example.com"><em><span class="hello"><em>Link</em></span></em></a>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com" style="color: orange"><em><span class="nice"><em>Link</em></span></em></a>
|
||||
<a href="https://example.com"><em>Link</em></a>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com" style="color: orange"><span>Link</span></a>
|
||||
<a href="https://example.com"><em><span>Link</span></em></a>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com" style="color: orange">Link</a><span>Hello!</span>
|
||||
<a href="https://example.com">Link</a><em>Hello!</em>
|
||||
<a href="https://example.com">Link</a><em>Hello</em><span>world!</span>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<div>
|
||||
<a href="https://example.com" style="color: orange">Link</a><span>Hello!</span>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<style>
|
||||
div {
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="" style="color: orange">Local</a>
|
||||
<a href="example.com">Not local</a>
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com"><em><span><strong>Link</strong></span></em></a>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.placeholder-shown {
|
||||
background-color: yellow;
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<a href="https://example.com"><span>foo<span style="color: red">bar</span></span></a>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.read-write {
|
||||
background-color: green;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
#text {
|
||||
z-index: 10;
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<span>hello friends</span>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<svg width="22" height="22" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="5" y="5" width="12" height="12" fill="red" />
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 202 B |
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<select><option>text</option></select>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel="match" href="../expected/positioned-elements-in-scroll-container-ref.html" />
|
||||
<style>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
scrollbar-width: none;
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This page intentionally left blank -->
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style type="text/css">
|
||||
td {
|
||||
border: 5px solid blue;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<rect x="-10" y="-10" width="120" height="120" fill="blue" />
|
||||
<rect x="50" y="10" width="40" height="80" fill="red" />
|
||||
|
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 191 B |
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.box {
|
||||
width: 100px;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
scrollbar-width: 0;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="reference/sticky-positioned-box-with-border-ref.html" />
|
||||
<style>
|
||||
* {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<svg width="200" viewBox="0 0 100 100">
|
||||
<link rel="match" href="../expected/svg-maskContentUnits-ref.html" />
|
||||
<clipPath id="myClip1" clipPathUnits="userSpaceOnUse">
|
||||
|
|
Before Width: | Height: | Size: 988 B After Width: | Height: | Size: 1,004 B |
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<svg width="120" viewBox="0 0 100 100">
|
||||
<circle cx="25" cy="25" fill="blue" r="25" />
|
||||
<g><circle cx="75" cy="25" fill="red" r="25" /></g>
|
||||
|
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 166 B |
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
svg {
|
||||
height: 200px;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
svg {
|
||||
height: 200px;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<svg><symbol fill="green" id="dot" width="500" height="500" viewBox="0 0 2 10">
|
||||
<circle cx="1" cy="1" r="1"/>
|
||||
<circle fill="blue" cx="1.5" cy="1" r="1"/>
|
||||
|
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 199 B |
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<p style="color: lime; text-decoration: underline black;">Well, hello friends!</p>
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This page is intentionally left blank. -->
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/border-radius-shrink-zero-sized-box-ref.html" />
|
||||
<style>
|
||||
#test {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/css-any-link-selector-ref.html" />
|
||||
<style>
|
||||
:any-link {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel="match" href="../expected/css-gradient-currentcolor-ref.html" />
|
||||
<style>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<link rel="match" href="../expected/css-lang-selector-ref.html" />
|
||||
<style>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/css-local-link-selector-ref.html" />
|
||||
<style>
|
||||
:local-link {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/css-placeholder-shown-selector-ref.html" />
|
||||
<style>
|
||||
:placeholder-shown {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/css-read-only-read-write-selectors-ref.html" />
|
||||
<style>
|
||||
body :read-write {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/inline-stacking-context-ref.html" /><style>
|
||||
span {
|
||||
z-index: 10;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/inline-visibility-hidden-ref.html" />
|
||||
<span>hello friends<span style="visibility: hidden"> and enemies</span></span>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
img { border: 1px solid black; }
|
||||
</style>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/options-set-index.html" />
|
||||
<select id="select"></select>
|
||||
<script>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel="match" href="../expected/positioned-elements-in-scroll-container-ref.html" />
|
||||
<style>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/scrollable-box-with-nested-stacking-context-ref.html" />
|
||||
<style>
|
||||
* {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/separate-borders-ref.html" />
|
||||
<style type="text/css">
|
||||
td {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/simple-svg-mask-ref.html" />
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<mask id="myMask">
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/square-ref.html" />
|
||||
<style>
|
||||
.box {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/sticky-box-with-percentage-insets-ref.html" />
|
||||
<style>
|
||||
* {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/sticky-positioned-box-with-border-ref.html" />
|
||||
<style>
|
||||
* {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/simple-svg-mask-ref.html" />
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<defs>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/simple-svg-mask-ref.html" />
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<defs>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/svg-display-attr.html" />
|
||||
<svg width="120" viewBox="0 0 100 100">
|
||||
<circle cx="25" cy="25" fill="blue" r="25" />
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/simple-svg-mask-ref.html" />
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<defs>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/simple-svg-mask-ref.html" />
|
||||
<svg width="120" viewBox="-10 -10 120 120">
|
||||
<defs>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/svg-overflow-hidden-ref.html" />
|
||||
<style>
|
||||
svg {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/svg-overflow-visible-ref.html" />
|
||||
<style>
|
||||
svg {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/svg-symbol-ref.html" />
|
||||
<svg><symbol id="dot" width="500" height="500" viewBox="0 0 2 10">
|
||||
<circle fill="green" cx="1" cy="1" r="1"/>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- matches against itself because the only thing being tested is that this does not crash. -->
|
||||
<link rel="match" href="./svg-text-crash.html" />
|
||||
<svg>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/webkit-text-fill-color.html" />
|
||||
<p style="text-decoration: underline; -webkit-text-fill-color: lime">Well, hello friends!</p>
|
||||
|
|