mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibWeb: Add tests for basic attr() behavior and fallback values
This commit is contained in:
parent
e013306df8
commit
bf8aa33b68
Notes:
sideshowbarker
2024-07-16 23:34:49 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/bf8aa33b68 Pull-request: https://github.com/SerenityOS/serenity/pull/20945 Reviewed-by: https://github.com/shannonbooth
4 changed files with 18 additions and 0 deletions
7
Tests/LibWeb/Ref/css-attr-basic.html
Normal file
7
Tests/LibWeb/Ref/css-attr-basic.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
.foo::before {
|
||||
content: attr(bar);
|
||||
}
|
||||
</style>
|
||||
<div class="foo" bar="Well, hello friends!"></div>
|
7
Tests/LibWeb/Ref/css-attr-fallback.html
Normal file
7
Tests/LibWeb/Ref/css-attr-fallback.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
.foo::before {
|
||||
content: attr(bar, "Well, hello friends!");
|
||||
}
|
||||
</style>
|
||||
<div class="foo"></div>
|
2
Tests/LibWeb/Ref/css-attr-ref.html
Normal file
2
Tests/LibWeb/Ref/css-attr-ref.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!doctype html>
|
||||
<div>Well, hello friends!</div>
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue