Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js

Issue 1168453002: [CSSGridLayout] Switch from parentheses to brackets for grid line names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing v2 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js
diff --git a/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js b/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js
index ac8b6b6f133f0e2694dbe8f8b32e6556c1793a5f..6b1757c8bd480747b39e4129c88067d6c24cb1df 100644
--- a/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js
+++ b/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js
@@ -84,15 +84,15 @@ function testInherit()
{
var parentElement = document.createElement("div");
document.body.appendChild(parentElement);
- parentElement.style.gridTemplateColumns = "50px (last)";
- parentElement.style.gridTemplateRows = "(first) 101%";
+ parentElement.style.gridTemplateColumns = "50px [last]";
+ parentElement.style.gridTemplateRows = "[first] 101%";
element = document.createElement("div");
parentElement.appendChild(element);
element.style.gridTemplateColumns = "inherit";
element.style.gridTemplateRows = "inherit";
- shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-columns')", "'50px (last)'");
- shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-rows')", "'(first) 101%'");
+ shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-columns')", "'50px [last]'");
+ shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-rows')", "'[first] 101%'");
document.body.removeChild(parentElement);
}
@@ -104,10 +104,10 @@ function testInitial()
{
element = document.createElement("div");
document.body.appendChild(element);
- element.style.gridTemplateColumns = "150% (last)";
- element.style.gridTemplateRows = "(first) 1fr";
- shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-columns')", "'150% (last)'");
- shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-rows')", "'(first) 1fr'");
+ element.style.gridTemplateColumns = "150% [last]";
+ element.style.gridTemplateRows = "[first] 1fr";
+ shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-columns')", "'150% [last]'");
+ shouldBe("getComputedStyle(element, '').getPropertyValue('grid-template-rows')", "'[first] 1fr'");
element.style.gridTemplateColumns = "initial";
element.style.gridTemplateRows = "initial";

Powered by Google App Engine
This is Rietveld 408576698