mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bug 675711 - test_computed_style.html fails partly on Fennec because of lack of scrollbars. r=dbaron, a=test-only
This commit is contained in:
parent
4a0fbd62ca
commit
8e24d4abed
@ -94,10 +94,18 @@ var noframe_container = document.getElementById("content");
|
||||
p.style.overflowY = "scroll";
|
||||
is(cs.borderTopLeftRadius, "50px",
|
||||
"computed value of clamped border radius (top left, overflow-y)");
|
||||
is(cs.borderTopRightRadius, "5px",
|
||||
"computed value of clamped border radius (top right, overflow-y)");
|
||||
is(cs.borderBottomRightRadius, "5px",
|
||||
"computed value of clamped border radius (bottom right, overflow-y)");
|
||||
// Fennec doesn't have scrollbars for overflow:scroll content
|
||||
if (p.clientWidth == p.offsetWidth - 10) {
|
||||
is(cs.borderTopRightRadius, "50px",
|
||||
"computed value of border radius (top right, overflow-y)");
|
||||
is(cs.borderBottomRightRadius, "50px",
|
||||
"computed value of border radius (bottom right, overflow-y)");
|
||||
} else {
|
||||
is(cs.borderTopRightRadius, "5px",
|
||||
"computed value of clamped border radius (top right, overflow-y)");
|
||||
is(cs.borderBottomRightRadius, "5px",
|
||||
"computed value of clamped border radius (bottom right, overflow-y)");
|
||||
}
|
||||
is(cs.borderBottomLeftRadius, "50px",
|
||||
"computed value of clamped border radius (bottom left, overflow-y)");
|
||||
|
||||
@ -107,10 +115,18 @@ var noframe_container = document.getElementById("content");
|
||||
"computed value of clamped border radius (top left, overflow-x)");
|
||||
is(cs.borderTopRightRadius, "50px",
|
||||
"computed value of clamped border radius (top right, overflow-x)");
|
||||
is(cs.borderBottomRightRadius, "5px",
|
||||
"computed value of clamped border radius (bottom right, overflow-x)");
|
||||
is(cs.borderBottomLeftRadius, "5px",
|
||||
"computed value of clamped border radius (bottom left, overflow-x)");
|
||||
// Fennec doesn't have scrollbars for overflow:scroll content
|
||||
if (p.clientHeight == p.offsetHeight - 10) {
|
||||
is(cs.borderBottomRightRadius, "50px",
|
||||
"computed value of border radius (bottom right, overflow-x)");
|
||||
is(cs.borderBottomLeftRadius, "50px",
|
||||
"computed value of border radius (bottom left, overflow-x)");
|
||||
} else {
|
||||
is(cs.borderBottomRightRadius, "5px",
|
||||
"computed value of clamped border radius (bottom right, overflow-x)");
|
||||
is(cs.borderBottomLeftRadius, "5px",
|
||||
"computed value of clamped border radius (bottom left, overflow-x)");
|
||||
}
|
||||
|
||||
p.parentNode.removeChild(p);
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user