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

Unified Diff: third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements-expected.txt

Issue 1709963002: [css-align] New CSS Value 'normal' for Self Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed repaint tests. Created 4 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: third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements-expected.txt b/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..316db3d40370ddb1d1eae3afbeb3bdf24fdae861
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements-expected.txt
@@ -0,0 +1,218 @@
+Test to verify auto value resolution works as expected in root elements (eg. document root / shadow roots / slotted elements / elements inside
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+*** Test 'auto' value resolution for the document root node. ***
+
+Check out how the DOM's root element resolves the align-self 'auto' values.
+PASS element.style.alignSelf is "center"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "center"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "normal"
+
+Check out how the DOM's root element align-items's value is used to resolve its children's align-self 'auto' values.
+PASS element.style.alignItems is "center"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "center"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "center"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(host, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('align-self') is "normal"
+
+Check out how the DOM's root element deals with 'auto' value in align-items.
+PASS element.style.alignItems is "center"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "center"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "normal"
+
+Check out how the DOM's root element resolves the justify-self 'auto' values.
+PASS element.style.justifySelf is "left"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "left"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "normal"
+
+Check out how the DOM's root element align-items's value is used to resolve its children's align-self 'auto' values.
+PASS element.style.justifyItems is "center"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-self') is "normal"
+
+Check out how the DOM's root element deals with 'auto' value in justify-items.
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-self') is "normal"
+
+Check out how the DOM's root element justify-items's value with 'legacy' keyword is used to resolve any descendant's justify-items 'auto' values.
+PASS element.style.justifyItems is "legacy center"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-self') is "center"
+
+Check out how the DOM's root element recomputes its descendant's style when 'legacy' keyword is removed from its justify-items value.
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "normal"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-self') is "normal"
+
+*** Test 'auto' value resolution for the shadow DOM root node. ***
+
+Shadow Node inherits from ShadowHost to resolve the 'auto' values.
+PASS element.style.alignItems is "center"
+PASS window.getComputedStyle(host, '').getPropertyValue('align-items') is "center"
+PASS element.style.alignItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "right"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "center"
+PASS element.style.justifyItems is "center"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "center"
+PASS element.style.justifyItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right"
+PASS element.style.justifyItems is ""
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "center"
+
+Check out how the 'legacy' keyword from propagates from the DOM Tree to the Shadow Node.
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifyItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "normal"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifyItems is "legacy center"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+
+*** Test 'auto' value resolution for the shadow DOM 'slotted' elements. ***
+
+The 'slotted' element's parent is 'shadowHost' while 'slot' is not assigned.
+PASS element.style.alignItems is "left"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-items') is "left"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "start"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-self') is "start"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-self') is "center"
+PASS element.style.justifyItems is "left"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "left"
+PASS element.style.justifyItems is ""
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "start"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "start"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "center"
+
+Check out how the 'legacy' keyword affects the 'slotted' elements while 'slot' is not assigned.
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifyItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right"
+PASS element.style.justifyItems is "legacy center"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "center"
+
+The 'slotted' element uses the 'slot' element's parent (Shadow Node) after the 'slot' is assigned.
+PASS element.style.alignItems is "left"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-items') is "left"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "start"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-self') is "start"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('align-self') is "right"
+PASS element.style.justifyItems is "left"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "left"
+PASS element.style.justifyItems is ""
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "start"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "start"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "right"
+
+Check out how the 'legacy' keyword affects the 'slotted' elements after the 'slot' is assigned.
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifyItems is "right"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right"
+PASS element.style.justifyItems is "legacy center"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(host, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "right"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-items') is "legacy center"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(slotted, '').getPropertyValue('justify-self') is "center"
+
+The 'slot' element uses its parent inside the ShadowDOM tree to resolve the 'auto' values .
+PASS element.style.alignItems is "left"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "left"
+PASS element.style.alignItems is ""
+PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "normal"
+PASS element.style.alignSelf is "left"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "left"
+PASS element.style.alignSelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "right"
+PASS element.style.justifyItems is "left"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "left"
+PASS element.style.justifyItems is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "normal"
+PASS element.style.justifySelf is "left"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "left"
+PASS element.style.justifySelf is "auto"
+PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "right"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698