mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1308636 Part 2 - Convert CSSOM usages of moz-prefixed column properties in tests. r=dbaron
This patch was generated by the following shell script. ``` function remove_column_prefix() { echo "Renaming $1 to $2" find .\ -type f\ ! -path "./obj*"\ ! -path "./.git"\ ! -path "./.hg"\ \( -name "*.html" -or\ -name "*.xhtml" -or\ -name "*.xht" -or\ -name "*.xul" -or\ -name "*.xml" -or\ -name "*.svg" \)\ -exec sed -i -e "s/$1/$2/g" "{}" \; } remove_column_prefix "MozColumn" "column" ``` Differential Revision: https://phabricator.services.mozilla.com/D59563 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
4934b1be3e
commit
ddba50ad62
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body onload="document.getElementById('d').style.MozColumnWidth = '';">
|
||||
<body onload="document.getElementById('d').style.columnWidth = '';">
|
||||
<div id="d" style="height: 1px; column-width: 1px;">d d <span style="position: absolute;"></span></div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -2,5 +2,5 @@
|
||||
<head>
|
||||
<style type="text/css">body:first-letter { float: left; }</style>
|
||||
</head>
|
||||
<body style="column-width: 100000px;" onload="document.body.style.MozColumnWidth='';"> ࣙ</body>
|
||||
<body style="column-width: 100000px;" onload="document.body.style.columnWidth='';"> ࣙ</body>
|
||||
</html>
|
||||
|
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html style="font-size-adjust: 193373343913878; white-space: pre-line;"><body onload="document.documentElement.style.MozColumnGap='1px';"><span>A B C
|
||||
<!DOCTYPE html><html style="font-size-adjust: 193373343913878; white-space: pre-line;"><body onload="document.documentElement.style.columnGap='1px';"><span>A B C
|
||||
ت</span></body></html>
|
||||
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html><head></head><body onload="document.documentElement.offsetHeight; document.body.style.MozColumnWidth='40000px';" style="word-spacing: 200000px; font-size-adjust: 2000; direction: rtl; white-space: pre-wrap; width: 50000px; column-width: 1px; height: 5000px;">  
X䍲Y </body></html>
|
||||
<!DOCTYPE html><html><head></head><body onload="document.documentElement.offsetHeight; document.body.style.columnWidth='40000px';" style="word-spacing: 200000px; font-size-adjust: 2000; direction: rtl; white-space: pre-wrap; width: 50000px; column-width: 1px; height: 5000px;">  
X䍲Y </body></html>
|
||||
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html><head></head><body onload="document.documentElement.offsetHeight; document.body.style.MozColumnWidth='40000px';" style="word-spacing: 200000px; font-size-adjust: 2000; direction: rtl; white-space: pre-wrap; width: 50000px; column-width: 1px; height: 5000px;">  
X䍲Y </body></html>
|
||||
<!DOCTYPE html><html><head></head><body onload="document.documentElement.offsetHeight; document.body.style.columnWidth='40000px';" style="word-spacing: 200000px; font-size-adjust: 2000; direction: rtl; white-space: pre-wrap; width: 50000px; column-width: 1px; height: 5000px;">  
X䍲Y </body></html>
|
||||
|
@ -22,7 +22,7 @@ function boom()
|
||||
setTimeout(function() {
|
||||
setTimeout(function() {
|
||||
setTimeout(function() {
|
||||
document.body.style.MozColumnCount = "2";
|
||||
document.body.style.columnCount = "2";
|
||||
document.documentElement.className = "";
|
||||
}, 20);
|
||||
}, 0);
|
||||
|
@ -18,7 +18,7 @@ function start() {
|
||||
o100.appendChild(o310);
|
||||
o281.appendChild(o418);
|
||||
o135.style.display='table-row-group';
|
||||
document.documentElement.style.MozColumnCount='59';
|
||||
document.documentElement.style.columnCount='59';
|
||||
setTimeout(f2, 4);
|
||||
}
|
||||
function f2() {
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.body.firstChild.style.MozColumnCount = "3";
|
||||
document.body.firstChild.style.columnCount = "3";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.body.firstChild.style.MozColumnCount = "3";
|
||||
document.body.firstChild.style.columnCount = "3";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -10,7 +10,7 @@ div:first-line { }
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.getElementById("a").style.MozColumnWidth = "21120690815in";
|
||||
document.getElementById("a").style.columnWidth = "21120690815in";
|
||||
document.getElementById("s").style.cursor = "pointer";
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body onload="document.body.style.MozColumnWidth = '1px';">
|
||||
<body onload="document.body.style.columnWidth = '1px';">
|
||||
|
||||
<div style="display: inline-block;"></div><div style="float: left;"><div style="height: 32px;"></div></div><div>
|
||||
<div style="clear: both;"><br></div><div style="float: left;"></div></div>
|
||||
|
@ -6,9 +6,9 @@
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.documentElement.style.MozColumnCount = '3';
|
||||
document.documentElement.style.columnCount = '3';
|
||||
document.documentElement.offsetHeight;
|
||||
document.documentElement.style.MozColumnCount = '';
|
||||
document.documentElement.style.columnCount = '';
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -2,5 +2,5 @@
|
||||
<head>
|
||||
<style type="text/css">body:first-letter { float: left; }</style>
|
||||
</head>
|
||||
<body style="column-width: 100000px;" onload="document.body.style.MozColumnWidth='';"> ࣙ</body>
|
||||
<body style="column-width: 100000px;" onload="document.body.style.columnWidth='';"> ࣙ</body>
|
||||
</html>
|
||||
|
@ -16,7 +16,7 @@ allNodes[88] = document.createElementNS("http://www.w3.org/1999/xhtml", "legend"
|
||||
allNodes[89] = document.createTextNode("Your name");
|
||||
allNodes[98] = document.createTextNode("\n ");
|
||||
allNodes[125] = document.createElementNS("http://www.w3.org/1999/xhtml", "option");
|
||||
allNodes[0].style.MozColumnCount = "115";
|
||||
allNodes[0].style.columnCount = "115";
|
||||
aC(allNodes[88], allNodes[98]);
|
||||
iB(allNodes[98], allNodes[63]);
|
||||
allNodes[63].style.cssFloat = "right";
|
||||
|
@ -22,7 +22,7 @@ function boom()
|
||||
|
||||
document.documentElement.offsetHeight;
|
||||
|
||||
document.body.style.MozColumns = "auto";
|
||||
document.body.style.columns = "auto";
|
||||
tbody.style.color = "red";
|
||||
|
||||
document.documentElement.offsetHeight;
|
||||
|
@ -5,7 +5,7 @@
|
||||
<style>p::first-letter { float:left; }</style>
|
||||
</head>
|
||||
|
||||
<body onload="x=document.body.parentNode; x.style.MozColumnWidth='111px'; x.offsetHeight; x.style.display='inline'; x.offsetHeight; "><p style="margin: -562949953421311em;">y
|
||||
<body onload="x=document.body.parentNode; x.style.columnWidth='111px'; x.offsetHeight; x.style.display='inline'; x.offsetHeight; "><p style="margin: -562949953421311em;">y
|
||||
</p><p>'</p></body>
|
||||
|
||||
</html>
|
||||
|
@ -7,7 +7,7 @@
|
||||
</span>
|
||||
<script>
|
||||
document.getElementById("test").style.width =
|
||||
document.defaultView.getComputedStyle(document.getElementById("source")).MozColumnGap;
|
||||
document.defaultView.getComputedStyle(document.getElementById("source")).columnGap;
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -15,7 +15,7 @@
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function test() {
|
||||
document.getElementById('multi-column').style.MozColumnCount = 1;
|
||||
document.getElementById('multi-column').style.columnCount = 1;
|
||||
document.getElementById('multi-column').style.columnCount = 1;
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.documentElement.style.MozColumnWidth = "1px";
|
||||
document.documentElement.style.columnWidth = "1px";
|
||||
document.documentElement.style.MozOutlineRadiusBottomleft = "100%";
|
||||
document.documentElement.style.padding = "2251799813685249em";
|
||||
window.getComputedStyle(document.documentElement).MozOutlineRadiusBottomleft;
|
||||
|
@ -88,7 +88,7 @@ function part1()
|
||||
"border-left-color applies");
|
||||
isnot(cs1.borderBottomColor, cs2.borderBottomColor,
|
||||
"border-top-color applies");
|
||||
isnot(cs1.MozColumnRuleColor, cs2.MozColumnRuleColor,
|
||||
isnot(cs1.columnRuleColor, cs2.columnRuleColor,
|
||||
"column-rule-color applies");
|
||||
isnot(cs1.textShadow, cs2.textShadow,
|
||||
"text-shadow applies");
|
||||
@ -101,7 +101,7 @@ function part1()
|
||||
"border-left-color applies");
|
||||
is(cs1.borderBottomColor, cs3.borderBottomColor,
|
||||
"border-top-color applies");
|
||||
is(cs1.MozColumnRuleColor, cs3.MozColumnRuleColor,
|
||||
is(cs1.columnRuleColor, cs3.columnRuleColor,
|
||||
"column-rule-color applies");
|
||||
is(cs1.textShadow, cs3.textShadow,
|
||||
"text-shadow applies");
|
||||
@ -157,7 +157,7 @@ function part2()
|
||||
"border-inline-end-color is blocked");
|
||||
is(cs1.borderBottomColor, cs2.borderBottomColor,
|
||||
"border-bottom-color is blocked");
|
||||
is(cs1.MozColumnRuleColor, cs2.MozColumnRuleColor,
|
||||
is(cs1.columnRuleColor, cs2.columnRuleColor,
|
||||
"column-rule-color is blocked");
|
||||
is(cs1.textShadow, cs2.textShadow,
|
||||
"text-shadow is blocked");
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.documentElement.style.MozColumnCount = '15';
|
||||
document.documentElement.style.columnCount = '15';
|
||||
}
|
||||
window.onload = function() { setTimeout(boom, 20); };
|
||||
|
||||
|
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 329 B |
@ -7,7 +7,7 @@ function boom()
|
||||
var odiv = document.createElement("div");
|
||||
odiv.style.height = "30px";
|
||||
var idiv = document.createElement("div");
|
||||
idiv.style.MozColumnWidth = "1px";
|
||||
idiv.style.columnWidth = "1px";
|
||||
var table = document.createElement("TABLE");
|
||||
var x = document.createTextNode("x");
|
||||
table.appendChild(x);
|
||||
|
Loading…
Reference in New Issue
Block a user