LibWeb: Add tests for basic attr() behavior and fallback values

This commit is contained in:
Sam Atkins 2023-08-31 12:42:14 +01:00 committed by Andreas Kling
parent e013306df8
commit bf8aa33b68
4 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<!doctype html>
<style>
.foo::before {
content: attr(bar);
}
</style>
<div class="foo" bar="Well, hello friends!"></div>

View file

@ -0,0 +1,7 @@
<!doctype html>
<style>
.foo::before {
content: attr(bar, "Well, hello friends!");
}
</style>
<div class="foo"></div>

View file

@ -0,0 +1,2 @@
<!doctype html>
<div>Well, hello friends!</div>

View file

@ -2,6 +2,8 @@
"clip.html": "clip-ref.html",
"clip-abspos-children.html": "clip-abspos-children-ref.html",
"css-any-link-selector.html": "css-any-link-selector-ref.html",
"css-attr-basic.html": "css-attr-ref.html",
"css-attr-fallback.html": "css-attr-ref.html",
"css-gradient-currentcolor.html": "css-gradient-currentcolor-ref.html",
"css-gradients.html": "css-gradients-ref.html",
"css-invalid-var.html": "css-invalid-var-ref.html",