Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes background-size tests for two values serialization #49388

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/css-backgrounds/background-332.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

test(function() {
assert_equals(cs.getPropertyValue("background-size"),
"160px", "background specified value for background-size");
"160px auto", "background specified value for background-size");
}, "background_specified_size");

test(function() {
Expand Down
18 changes: 9 additions & 9 deletions css/css-backgrounds/background-size-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,43 +39,43 @@
document.getElementById("test").style.backgroundSize = "0px";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"0px", "background-size supporting value");
"0px auto", "background-size supporting value");
}, "background-size_length_zero");

document.getElementById("test").style.backgroundSize = "-0px";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"0px", "background-size supporting value");
"0px auto", "background-size supporting value");
}, "background-size_length_negative_zero");

document.getElementById("test").style.backgroundSize = "+0px";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"0px", "background-size supporting value");
"0px auto", "background-size supporting value");
}, "background-size_length_positive_zero");

document.getElementById("test").style.backgroundSize = "15px";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"15px", "background-size supporting value");
"15px auto", "background-size supporting value");
}, "background-size_length_normal");

document.getElementById("test").style.backgroundSize = "0%";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"0%", "background-size supporting value");
"0% auto", "background-size supporting value");
}, "background-size_percentage_min");

document.getElementById("test").style.backgroundSize = "50%";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"50%", "background-size supporting value");
"50% auto", "background-size supporting value");
}, "background-size_percentage_normal");

document.getElementById("test").style.backgroundSize = "100%";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"100%", "background-size supporting value");
"100% auto", "background-size supporting value");
}, "background-size_percentage_max");

document.getElementById("test").style.backgroundSize = "auto auto";
Expand All @@ -99,7 +99,7 @@
document.getElementById("test").style.backgroundSize = "15px auto";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"15px", "background-size supporting value");
"15px auto", "background-size supporting value");
}, "background-size_length_auto");

document.getElementById("test").style.backgroundSize = "15px 15px";
Expand All @@ -117,7 +117,7 @@
document.getElementById("test").style.backgroundSize = "50% auto";
test(function() {
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
"50%", "background-size supporting value");
"50% auto", "background-size supporting value");
}, "background-size_percentage_auto");

document.getElementById("test").style.backgroundSize = "50% 15px";
Expand Down