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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html

Issue 1889143003: Improve named grid areas parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html
index 98ddb9e7f1c8e4dbc7490015ac39d6f1faec7777..4495c271f489a0ea7fb1bb880217b085bb73eb76 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set.html
@@ -155,6 +155,10 @@
document.body.appendChild(parentElement);
parentElement.style.gridTemplateAreas = "'foo bar'";
shouldBeEqualToString("window.getComputedStyle(parentElement).getPropertyValue('grid-template-areas')", '"foo bar"')
+ parentElement.style.gridTemplateAreas = "'foo" + "\t" + "bar'";
+ shouldBeEqualToString("window.getComputedStyle(parentElement).getPropertyValue('grid-template-areas')", '"foo bar"')
+ parentElement.style.gridTemplateAreas = "'foo" + "\n" + "bar'";
+ shouldBeEqualToString("window.getComputedStyle(parentElement).getPropertyValue('grid-template-areas')", '"foo bar"')
var element = document.createElement("div");
parentElement.appendChild(element);
@@ -186,6 +190,16 @@
element.style.gridTemplateAreas = "'' ''";
shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue('grid-template-areas')", "none")
+ element.style.gridTemplateAreas = "'^nav'";
+ shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue('grid-template-areas')", "none")
+ element.style.gridTemplateAreas = "'n^av'";
+ shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue('grid-template-areas')", "none")
+
+ element.style.gridTemplateAreas = "'\x04nav'";
+ shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue('grid-template-areas')", "none")
+ element.style.gridTemplateAreas = "'n\x04av'";
+ shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue('grid-template-areas')", "none")
+
debug("");
debug("FIXME: We currently don't validate that the named grid areas are <indent>.");
// <ident> only allows a leading '-'.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-areas-get-set-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698