Changeset 194104 in webkit
- Timestamp:
- Dec 15, 2015 4:11:56 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r194091 r194104 1 2015-12-15 Javier Fernandez <jfernandez@igalia.com> 2 3 [css-align][css-grid] Overflow alignment value 'true' renamed to 'unsafe' 4 https://bugs.webkit.org/show_bug.cgi?id=152251 5 6 The 'True' Overflow Alignment keyword is known now as 'Unsafe', so adapting 7 layout tests using such keyword. 8 9 Reviewed by Darin Adler. 10 11 * css3/overwrite-content-alignment-expected.txt: 12 * css3/overwrite-content-alignment.html: 13 * css3/overwrite-self-alignment-expected.txt: 14 * css3/overwrite-self-alignment.html: 15 * css3/parse-align-content-expected.txt: 16 * css3/parse-align-content.html: 17 * css3/parse-align-items-expected.txt: 18 * css3/parse-align-items.html: 19 * css3/parse-align-self-expected.txt: 20 * css3/parse-align-self.html: 21 * css3/parse-justify-content-expected.txt: 22 * css3/parse-justify-content.html: 23 * fast/css-grid-layout/grid-align-justify-overflow.html: 24 * fast/css-grid-layout/grid-content-alignment-overflow.html: 25 * fast/css/parse-justify-items-expected.txt: 26 * fast/css/parse-justify-items.html: 27 * fast/css/parse-justify-self-expected.txt: 28 * fast/css/parse-justify-self.html: 29 1 30 2015-12-14 Ryan Haddad <ryanhaddad@apple.com> 2 31 -
trunk/LayoutTests/css3/overwrite-content-alignment-expected.txt
r190484 r194104 4 4 5 5 6 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content') is "flex-end true"6 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content') is "flex-end unsafe" 7 7 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-content') is "center safe" 8 8 PASS getComputedStyle(childOfParentId, '').getPropertyValue('justify-content') is "space-between" -
trunk/LayoutTests/css3/overwrite-content-alignment.html
r190484 r194104 6 6 .parent .child { 7 7 display: -webkit-flex; 8 justify-content: flex-end true;8 justify-content: flex-end unsafe; 9 9 align-content: center safe; 10 10 } … … 26 26 27 27 var childOfDefaultParent = document.getElementById("childOfDefaultParent"); 28 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content')", "flex-end true");28 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-content')", "flex-end unsafe"); 29 29 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-content')", "center safe"); 30 30 -
trunk/LayoutTests/css3/overwrite-self-alignment-expected.txt
r190484 r194104 6 6 PASS getComputedStyle(parent, '').getPropertyValue('justify-items') is "center" 7 7 PASS getComputedStyle(parent, '').getPropertyValue('align-items') is "stretch" 8 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-self') is "flex-end true"8 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-self') is "flex-end unsafe" 9 9 PASS getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-self') is "flex-start safe" 10 10 PASS getComputedStyle(childOfParentId, '').getPropertyValue('justify-self') is "center" -
trunk/LayoutTests/css3/overwrite-self-alignment.html
r190484 r194104 3 3 .parent { 4 4 display: -webkit-flex; 5 justify-items: flex-end true;5 justify-items: flex-end unsafe; 6 6 align-items: flex-start safe; 7 7 } 8 8 .parent .child { 9 9 display: -webkit-flex; 10 justify-self: flex-end true;10 justify-self: flex-end unsafe; 11 11 align-self: flex-start safe; 12 12 } … … 36 36 37 37 var childOfDefaultParent = document.getElementById("childOfDefaultParent"); 38 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-self')", "flex-end true");38 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('justify-self')", "flex-end unsafe"); 39 39 shouldBeEqualToString("getComputedStyle(childOfDefaultParent, '').getPropertyValue('align-self')", "flex-start safe"); 40 40 -
trunk/LayoutTests/css3/parse-align-content-expected.txt
r183805 r194104 19 19 PASS getComputedStyle(alignContentFlexStart, '').getPropertyValue('align-content') is "flex-start" 20 20 PASS getComputedStyle(alignContentFlexEnd, '').getPropertyValue('align-content') is "flex-end" 21 PASS getComputedStyle(alignContentEnd True, '').getPropertyValue('align-content') is "end true"22 PASS getComputedStyle(alignContentCenter True, '').getPropertyValue('align-content') is "center true"21 PASS getComputedStyle(alignContentEndUnsafe, '').getPropertyValue('align-content') is "end unsafe" 22 PASS getComputedStyle(alignContentCenterUnsafe, '').getPropertyValue('align-content') is "center unsafe" 23 23 PASS getComputedStyle(alignContentRightSafe, '').getPropertyValue('align-content') is "right safe" 24 PASS getComputedStyle(alignContentLeft True, '').getPropertyValue('align-content') is "left true"25 PASS getComputedStyle(alignContentFlexStart True, '').getPropertyValue('align-content') is "flex-start true"24 PASS getComputedStyle(alignContentLeftUnsafe, '').getPropertyValue('align-content') is "left unsafe" 25 PASS getComputedStyle(alignContentFlexStartUnsafe, '').getPropertyValue('align-content') is "flex-start unsafe" 26 26 PASS getComputedStyle(alignContentFlexEndSafe, '').getPropertyValue('align-content') is "flex-end safe" 27 27 PASS getComputedStyle(alignContentSpaceBetweenLeft, '').getPropertyValue('align-content') is "space-between left" … … 29 29 PASS getComputedStyle(alignContentSpaceEvenlyRight, '').getPropertyValue('align-content') is "space-evenly right" 30 30 PASS getComputedStyle(alignContentStretchStartSafe, '').getPropertyValue('align-content') is "stretch start safe" 31 PASS getComputedStyle(alignContentSpaceAroundEnd True, '').getPropertyValue('align-content') is "space-around end true"31 PASS getComputedStyle(alignContentSpaceAroundEndUnsafe, '').getPropertyValue('align-content') is "space-around end unsafe" 32 32 PASS getComputedStyle(alignContentSpaceEvenlyFlexStartSafe, '').getPropertyValue('align-content') is "space-evenly flex-start safe" 33 33 PASS getComputedStyle(alignContentSpaceBetweenSafe, '').getPropertyValue('align-content') is "start" 34 34 PASS getComputedStyle(alignContentSpaceBetweenStretch, '').getPropertyValue('align-content') is "start" 35 35 PASS getComputedStyle(alignContentSafe, '').getPropertyValue('align-content') is "start" 36 PASS getComputedStyle(alignContentRightSafe True, '').getPropertyValue('align-content') is "start"36 PASS getComputedStyle(alignContentRightSafeUnsafe, '').getPropertyValue('align-content') is "start" 37 37 PASS getComputedStyle(alignContentCenterLeft, '').getPropertyValue('align-content') is "start" 38 38 … … 43 43 PASS element.style.alignContent is "center" 44 44 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "center" 45 PASS element.style.alignContent is "start true"46 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "start true"45 PASS element.style.alignContent is "start unsafe" 46 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "start unsafe" 47 47 PASS element.style.alignContent is "flex-end safe" 48 48 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "flex-end safe" … … 51 51 PASS element.style.alignContent is "stretch center" 52 52 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "stretch center" 53 PASS element.style.alignContent is "right true"54 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "right true"53 PASS element.style.alignContent is "right unsafe" 54 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "right unsafe" 55 55 PASS element.style.alignContent is "auto" 56 56 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "start" … … 119 119 120 120 Test the value 'initial' for flex containers 121 PASS element.style.alignContent is "right true"122 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "right true"121 PASS element.style.alignContent is "right unsafe" 122 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "right unsafe" 123 123 PASS element.style.alignContent is "initial" 124 124 PASS window.getComputedStyle(element, '').getPropertyValue('align-content') is "stretch" -
trunk/LayoutTests/css3/parse-align-content.html
r183805 r194104 59 59 } 60 60 61 #alignContentEnd True {62 align-content: end true;63 } 64 65 #alignContentCenter True {66 align-content: center true;61 #alignContentEndUnsafe { 62 align-content: end unsafe; 63 } 64 65 #alignContentCenterUnsafe { 66 align-content: center unsafe; 67 67 } 68 68 … … 71 71 } 72 72 73 #alignContentLeft True {74 align-content: left true;75 } 76 77 #alignContentFlexStart True {78 align-content: flex-start true;73 #alignContentLeftUnsafe { 74 align-content: left unsafe; 75 } 76 77 #alignContentFlexStartUnsafe { 78 align-content: flex-start unsafe; 79 79 } 80 80 … … 99 99 } 100 100 101 #alignContentSpaceAroundEnd True {102 align-content: space-around end true;101 #alignContentSpaceAroundEndUnsafe { 102 align-content: space-around end unsafe; 103 103 } 104 104 … … 120 120 } 121 121 122 #alignContentRightSafe True {123 align-content: right safe true;122 #alignContentRightSafeUnsafe { 123 align-content: right safe unsafe; 124 124 } 125 125 … … 139 139 <div id="alignContentStretch"></div> 140 140 <div id="alignContentSpaceBetweenSafe"></div> 141 <div id="alignContentSpaceAround True"></div>142 <div id="alignContentStretch True"></div>141 <div id="alignContentSpaceAroundUnsafe"></div> 142 <div id="alignContentStretchUnsafe"></div> 143 143 <div id="alignContentStretchrue"></div> 144 144 <div id="alignContentStart"></div> … … 149 149 <div id="alignContentFlexStart"></div> 150 150 <div id="alignContentFlexEnd"></div> 151 <div id="alignContentEnd True"></div>152 <div id="alignContentCenter True"></div>151 <div id="alignContentEndUnsafe"></div> 152 <div id="alignContentCenterUnsafe"></div> 153 153 <div id="alignContentRightSafe"></div> 154 <div id="alignContentLeft True"></div>155 <div id="alignContentFlexStart True"></div>154 <div id="alignContentLeftUnsafe"></div> 155 <div id="alignContentFlexStartUnsafe"></div> 156 156 <div id="alignContentFlexEndSafe"></div> 157 157 <div id="alignContentSpaceBetweenLeft"></div> … … 159 159 <div id="alignContentSpaceEvenlyRight"></div> 160 160 <div id="alignContentStretchStartSafe"></div> 161 <div id="alignContentSpaceAroundEnd True"></div>161 <div id="alignContentSpaceAroundEndUnsafe"></div> 162 162 <div id="alignContentSpaceEvenlyFlexStartSafe"></div> 163 163 … … 165 165 <div id="alignContentSpaceBetweenStretch"></div> 166 166 <div id="alignContentSafe"></div> 167 <div id="alignContentRightSafe True"></div>167 <div id="alignContentRightSafeUnsafe"></div> 168 168 <div id="alignContentCenterLeft"></div> 169 169 … … 215 215 shouldBeEqualToString("getComputedStyle(alignContentFlexEnd, '').getPropertyValue('align-content')", "flex-end"); 216 216 217 var alignContentEnd True = document.getElementById("alignContentEndTrue");218 shouldBeEqualToString("getComputedStyle(alignContentEnd True, '').getPropertyValue('align-content')", "end true");219 220 var alignContentCenter True = document.getElementById("alignContentCenterTrue");221 shouldBeEqualToString("getComputedStyle(alignContentCenter True, '').getPropertyValue('align-content')", "center true");217 var alignContentEndUnsafe = document.getElementById("alignContentEndUnsafe"); 218 shouldBeEqualToString("getComputedStyle(alignContentEndUnsafe, '').getPropertyValue('align-content')", "end unsafe"); 219 220 var alignContentCenterUnsafe = document.getElementById("alignContentCenterUnsafe"); 221 shouldBeEqualToString("getComputedStyle(alignContentCenterUnsafe, '').getPropertyValue('align-content')", "center unsafe"); 222 222 223 223 var alignContentRightSafe = document.getElementById("alignContentRightSafe"); 224 224 shouldBeEqualToString("getComputedStyle(alignContentRightSafe, '').getPropertyValue('align-content')", "right safe"); 225 225 226 var alignContentLeft True = document.getElementById("alignContentLeftTrue");227 shouldBeEqualToString("getComputedStyle(alignContentLeft True, '').getPropertyValue('align-content')", "left true");228 229 var alignContentFlexStart True = document.getElementById("alignContentFlexStartTrue");230 shouldBeEqualToString("getComputedStyle(alignContentFlexStart True, '').getPropertyValue('align-content')", "flex-start true");226 var alignContentLeftUnsafe = document.getElementById("alignContentLeftUnsafe"); 227 shouldBeEqualToString("getComputedStyle(alignContentLeftUnsafe, '').getPropertyValue('align-content')", "left unsafe"); 228 229 var alignContentFlexStartUnsafe = document.getElementById("alignContentFlexStartUnsafe"); 230 shouldBeEqualToString("getComputedStyle(alignContentFlexStartUnsafe, '').getPropertyValue('align-content')", "flex-start unsafe"); 231 231 232 232 var alignContentFlexEndSafe = document.getElementById("alignContentFlexEndSafe"); … … 245 245 shouldBeEqualToString("getComputedStyle(alignContentStretchStartSafe, '').getPropertyValue('align-content')", "stretch start safe"); 246 246 247 var alignContentSpaceAroundEnd True = document.getElementById("alignContentSpaceAroundEndTrue");248 shouldBeEqualToString("getComputedStyle(alignContentSpaceAroundEnd True, '').getPropertyValue('align-content')", "space-around end true");247 var alignContentSpaceAroundEndUnsafe = document.getElementById("alignContentSpaceAroundEndUnsafe"); 248 shouldBeEqualToString("getComputedStyle(alignContentSpaceAroundEndUnsafe, '').getPropertyValue('align-content')", "space-around end unsafe"); 249 249 250 250 var alignContentSpaceEvenlyFlexStartSafe = document.getElementById("alignContentSpaceEvenlyFlexStartSafe"); … … 254 254 shouldBeEqualToString("getComputedStyle(alignContentSpaceBetweenSafe, '').getPropertyValue('align-content')", "start"); 255 255 256 var alignContentSpaceAround True = document.getElementById("alignContentSpaceBetweenStretch");256 var alignContentSpaceAroundUnsafe = document.getElementById("alignContentSpaceBetweenStretch"); 257 257 shouldBeEqualToString("getComputedStyle(alignContentSpaceBetweenStretch, '').getPropertyValue('align-content')", "start"); 258 258 259 var alignContentSpaceAround True = document.getElementById("alignContentSafe");259 var alignContentSpaceAroundUnsafe = document.getElementById("alignContentSafe"); 260 260 shouldBeEqualToString("getComputedStyle(alignContentSafe, '').getPropertyValue('align-content')", "start"); 261 261 262 var alignContentSpaceAround True = document.getElementById("alignContentRightSafeTrue");263 shouldBeEqualToString("getComputedStyle(alignContentRightSafe True, '').getPropertyValue('align-content')", "start");264 265 var alignContentSpaceAround True = document.getElementById("alignContentCenterLeft");262 var alignContentSpaceAroundUnsafe = document.getElementById("alignContentRightSafeUnsafe"); 263 shouldBeEqualToString("getComputedStyle(alignContentRightSafeUnsafe, '').getPropertyValue('align-content')", "start"); 264 265 var alignContentSpaceAroundUnsafe = document.getElementById("alignContentCenterLeft"); 266 266 shouldBeEqualToString("getComputedStyle(alignContentCenterLeft, '').getPropertyValue('align-content')", "start"); 267 267 … … 279 279 checkValues(element, "alignContent", "align-content", "center", "center"); 280 280 281 element.style.alignContent = " true start";282 checkValues(element, "alignContent", "align-content", "start true", "start true");281 element.style.alignContent = "unsafe start"; 282 checkValues(element, "alignContent", "align-content", "start unsafe", "start unsafe"); 283 283 284 284 element.style.alignContent = "flex-end safe"; … … 291 291 checkValues(element, "alignContent", "align-content", "stretch center", "stretch center"); 292 292 293 element.style.alignContent = "right true";294 checkValues(element, "alignContent", "align-content", "right true", "right true");293 element.style.alignContent = "right unsafe"; 294 checkValues(element, "alignContent", "align-content", "right unsafe", "right unsafe"); 295 295 296 296 element.style.alignContent = "auto"; … … 314 314 315 315 checkBadValues(element, "alignContent", "align-content", ""); 316 checkBadValues(element, "alignContent", "align-content", " true auto");316 checkBadValues(element, "alignContent", "align-content", "unsafe auto"); 317 317 checkBadValues(element, "alignContent", "align-content", "auto safe"); 318 318 checkBadValues(element, "alignContent", "align-content", "auto left"); 319 319 checkBadValues(element, "alignContent", "align-content", "baseline safe"); 320 320 checkBadValues(element, "alignContent", "align-content", "last baseline center"); 321 checkBadValues(element, "alignContent", "align-content", " true true");322 checkBadValues(element, "alignContent", "align-content", " true safe");321 checkBadValues(element, "alignContent", "align-content", "unsafe unsafe"); 322 checkBadValues(element, "alignContent", "align-content", "unsafe safe"); 323 323 checkBadValues(element, "alignContent", "align-content", "center start"); 324 324 checkBadValues(element, "alignContent", "align-content", "baseline safe"); 325 checkBadValues(element, "alignContent", "align-content", " true baseline");326 checkBadValues(element, "alignContent", "align-content", " true safe left");327 checkBadValues(element, "alignContent", "align-content", " true left safe");328 checkBadValues(element, "alignContent", "align-content", "left safe true safe");325 checkBadValues(element, "alignContent", "align-content", "unsafe baseline"); 326 checkBadValues(element, "alignContent", "align-content", "unsafe safe left"); 327 checkBadValues(element, "alignContent", "align-content", "unsafe left safe"); 328 checkBadValues(element, "alignContent", "align-content", "left safe unsafe safe"); 329 329 checkBadValues(element, "alignContent", "align-content", "start right space-between"); 330 330 checkBadValues(element, "alignContent", "align-content", "safe stretch"); … … 332 332 checkBadValues(element, "alignContent", "align-content", "end space-between start"); 333 333 checkBadValues(element, "alignContent", "align-content", "right safe left"); 334 checkBadValues(element, "alignContent", "align-content", " true");334 checkBadValues(element, "alignContent", "align-content", "unsafe"); 335 335 checkBadValues(element, "alignContent", "align-content", "safe"); 336 336 … … 348 348 debug("Test the value 'initial' for flex containers"); 349 349 element.style.display = "-webkit-flex"; 350 checkInitialValues(element, "alignContent", "align-content", "right true", "stretch");350 checkInitialValues(element, "alignContent", "align-content", "right unsafe", "stretch"); 351 351 352 352 debug(""); -
trunk/LayoutTests/css3/parse-align-items-expected.txt
r182147 r194104 17 17 PASS getComputedStyle(alignItemsFlexStart, '').getPropertyValue('-webkit-align-items') is 'flex-start' 18 18 PASS getComputedStyle(alignItemsFlexEnd, '').getPropertyValue('-webkit-align-items') is 'flex-end' 19 PASS getComputedStyle(alignItemsEnd True, '').getPropertyValue('-webkit-align-items') is 'end true'20 PASS getComputedStyle(alignItemsCenter True, '').getPropertyValue('-webkit-align-items') is 'center true'19 PASS getComputedStyle(alignItemsEndUnsafe, '').getPropertyValue('-webkit-align-items') is 'end unsafe' 20 PASS getComputedStyle(alignItemsCenterUnsafe, '').getPropertyValue('-webkit-align-items') is 'center unsafe' 21 21 PASS getComputedStyle(alignItemsSelfEndSafe, '').getPropertyValue('-webkit-align-items') is 'self-end safe' 22 22 PASS getComputedStyle(alignItemsSelfStartSafe, '').getPropertyValue('-webkit-align-items') is 'self-start safe' 23 23 PASS getComputedStyle(alignItemsRightSafe, '').getPropertyValue('-webkit-align-items') is 'right safe' 24 PASS getComputedStyle(alignItemsLeft True, '').getPropertyValue('-webkit-align-items') is 'left true'25 PASS getComputedStyle(alignItemsFlexStart True, '').getPropertyValue('-webkit-align-items') is 'flex-start true'24 PASS getComputedStyle(alignItemsLeftUnsafe, '').getPropertyValue('-webkit-align-items') is 'left unsafe' 25 PASS getComputedStyle(alignItemsFlexStartUnsafe, '').getPropertyValue('-webkit-align-items') is 'flex-start unsafe' 26 26 PASS getComputedStyle(alignItemsFlexEndSafe, '').getPropertyValue('-webkit-align-items') is 'flex-end safe' 27 27 … … 32 32 PASS element.style.webkitAlignItems is "center" 33 33 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "center" 34 PASS element.style.webkitAlignItems is "start true"35 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "start true"34 PASS element.style.webkitAlignItems is "start unsafe" 35 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "start unsafe" 36 36 PASS element.style.webkitAlignItems is "flex-end safe" 37 37 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "flex-end safe" … … 114 114 115 115 Test the value 'initial' for flex containers 116 PASS element.style.webkitAlignItems is "right true"117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "right true"116 PASS element.style.webkitAlignItems is "right unsafe" 117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "right unsafe" 118 118 PASS element.style.webkitAlignItems is "initial" 119 119 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "stretch" … … 128 128 PASS element.style.webkitAlignItems is "inherit" 129 129 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "left safe" 130 PASS element.style.webkitAlignItems is "center true"131 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "center true"130 PASS element.style.webkitAlignItems is "center unsafe" 131 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "center unsafe" 132 132 PASS element.style.webkitAlignItems is "inherit" 133 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "center true"133 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-items') is "center unsafe" 134 134 PASS successfullyParsed is true 135 135 -
trunk/LayoutTests/css3/parse-align-items.html
r182147 r194104 51 51 } 52 52 53 #alignItemsEnd True {54 -webkit-align-items: end true;55 } 56 57 #alignItemsCenter True {58 -webkit-align-items: center true;53 #alignItemsEndUnsafe { 54 -webkit-align-items: end unsafe; 55 } 56 57 #alignItemsCenterUnsafe { 58 -webkit-align-items: center unsafe; 59 59 } 60 60 … … 71 71 } 72 72 73 #alignItemsLeft True {74 -webkit-align-items: left true;75 } 76 77 #alignItemsFlexStart True {78 -webkit-align-items: flex-start true;73 #alignItemsLeftUnsafe { 74 -webkit-align-items: left unsafe; 75 } 76 77 #alignItemsFlexStartUnsafe { 78 -webkit-align-items: flex-start unsafe; 79 79 } 80 80 … … 100 100 <div id="alignItemsFlexEnd"></div> 101 101 102 <div id="alignItemsEnd True"></div>103 <div id="alignItemsCenter True"></div>102 <div id="alignItemsEndUnsafe"></div> 103 <div id="alignItemsCenterUnsafe"></div> 104 104 <div id="alignItemsSelfEndSafe"></div> 105 105 <div id="alignItemsSelfStartSafe"></div> 106 106 <div id="alignItemsRightSafe"></div> 107 <div id="alignItemsLeft True"></div>108 <div id="alignItemsFlexStart True"></div>107 <div id="alignItemsLeftUnsafe"></div> 108 <div id="alignItemsFlexStartUnsafe"></div> 109 109 <div id="alignItemsFlexEndSafe"></div> 110 110 <script src="resources/alignment-parsing-utils.js"></script> … … 149 149 shouldBe("getComputedStyle(alignItemsFlexEnd, '').getPropertyValue('-webkit-align-items')", "'flex-end'"); 150 150 151 var alignItemsEnd True = document.getElementById("alignItemsEndTrue");152 shouldBe("getComputedStyle(alignItemsEnd True, '').getPropertyValue('-webkit-align-items')", "'end true'");153 154 var alignItemsCenter True = document.getElementById("alignItemsCenterTrue");155 shouldBe("getComputedStyle(alignItemsCenter True, '').getPropertyValue('-webkit-align-items')", "'center true'");151 var alignItemsEndUnsafe = document.getElementById("alignItemsEndUnsafe"); 152 shouldBe("getComputedStyle(alignItemsEndUnsafe, '').getPropertyValue('-webkit-align-items')", "'end unsafe'"); 153 154 var alignItemsCenterUnsafe = document.getElementById("alignItemsCenterUnsafe"); 155 shouldBe("getComputedStyle(alignItemsCenterUnsafe, '').getPropertyValue('-webkit-align-items')", "'center unsafe'"); 156 156 157 157 var alignItemsSelfEndSafe = document.getElementById("alignItemsSelfEndSafe"); … … 164 164 shouldBe("getComputedStyle(alignItemsRightSafe, '').getPropertyValue('-webkit-align-items')", "'right safe'"); 165 165 166 var alignItemsLeft True = document.getElementById("alignItemsLeftTrue");167 shouldBe("getComputedStyle(alignItemsLeft True, '').getPropertyValue('-webkit-align-items')", "'left true'");168 169 var alignItemsFlexStart True = document.getElementById("alignItemsFlexStartTrue");170 shouldBe("getComputedStyle(alignItemsFlexStart True, '').getPropertyValue('-webkit-align-items')", "'flex-start true'");166 var alignItemsLeftUnsafe = document.getElementById("alignItemsLeftUnsafe"); 167 shouldBe("getComputedStyle(alignItemsLeftUnsafe, '').getPropertyValue('-webkit-align-items')", "'left unsafe'"); 168 169 var alignItemsFlexStartUnsafe = document.getElementById("alignItemsFlexStartUnsafe"); 170 shouldBe("getComputedStyle(alignItemsFlexStartUnsafe, '').getPropertyValue('-webkit-align-items')", "'flex-start unsafe'"); 171 171 172 172 var alignItemsFlexEndSafe = document.getElementById("alignItemsFlexEndSafe"); … … 186 186 checkValues(element, "webkitAlignItems", "-webkit-align-items", "center", "center"); 187 187 188 element.style.webkitAlignItems = " true start";189 checkValues(element, "webkitAlignItems", "-webkit-align-items", "start true", "start true");188 element.style.webkitAlignItems = "unsafe start"; 189 checkValues(element, "webkitAlignItems", "-webkit-align-items", "start unsafe", "start unsafe"); 190 190 191 191 element.style.webkitAlignItems = "flex-end safe"; … … 220 220 document.body.appendChild(element); 221 221 222 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true auto");222 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe auto"); 223 223 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "auto safe"); 224 224 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "auto left"); 225 225 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "baseline safe"); 226 226 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "baseline center"); 227 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "stretch true");227 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "stretch unsafe"); 228 228 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "stretch right"); 229 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true true");230 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true safe");229 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe unsafe"); 230 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe safe"); 231 231 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "center start"); 232 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "stretch true");232 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "stretch unsafe"); 233 233 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "safe stretch"); 234 234 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "baseline safe"); 235 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true baseline");236 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true safe left");237 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", " true left safe");238 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "left safe true safe");235 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe baseline"); 236 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe safe left"); 237 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "unsafe left safe"); 238 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "left safe unsafe safe"); 239 239 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy start"); 240 240 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy end"); 241 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy right true");241 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy right unsafe"); 242 242 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy auto"); 243 243 checkBadValues(element, "webkitAlignItems", "-webkit-align-items", "legacy stretch"); … … 258 258 debug("Test the value 'initial' for flex containers"); 259 259 element.style.display = "-webkit-flex"; 260 checkInitialValues(element, "webkitAlignItems", "-webkit-align-items", "right true", "stretch");260 checkInitialValues(element, "webkitAlignItems", "-webkit-align-items", "right unsafe", "stretch"); 261 261 262 262 debug(""); … … 264 264 checkInheritValues("webkitAlignItems", "-webkit-align-items", "end"); 265 265 checkInheritValues("webkitAlignItems", "-webkit-align-items", "left safe"); 266 checkInheritValues("webkitAlignItems", "-webkit-align-items", "center true");266 checkInheritValues("webkitAlignItems", "-webkit-align-items", "center unsafe"); 267 267 268 268 </script> -
trunk/LayoutTests/css3/parse-align-self-expected.txt
r182147 r194104 17 17 PASS getComputedStyle(alignSelfFlexStart, '').getPropertyValue('-webkit-align-self') is 'flex-start' 18 18 PASS getComputedStyle(alignSelfFlexEnd, '').getPropertyValue('-webkit-align-self') is 'flex-end' 19 PASS getComputedStyle(alignSelfEnd True, '').getPropertyValue('-webkit-align-self') is 'end true'20 PASS getComputedStyle(alignSelfCenter True, '').getPropertyValue('-webkit-align-self') is 'center true'19 PASS getComputedStyle(alignSelfEndUnsafe, '').getPropertyValue('-webkit-align-self') is 'end unsafe' 20 PASS getComputedStyle(alignSelfCenterUnsafe, '').getPropertyValue('-webkit-align-self') is 'center unsafe' 21 21 PASS getComputedStyle(alignSelfSelfEndSafe, '').getPropertyValue('-webkit-align-self') is 'self-end safe' 22 22 PASS getComputedStyle(alignSelfSelfStartSafe, '').getPropertyValue('-webkit-align-self') is 'self-start safe' 23 23 PASS getComputedStyle(alignSelfRightSafe, '').getPropertyValue('-webkit-align-self') is 'right safe' 24 PASS getComputedStyle(alignSelfLeft True, '').getPropertyValue('-webkit-align-self') is 'left true'25 PASS getComputedStyle(alignSelfFlexStart True, '').getPropertyValue('-webkit-align-self') is 'flex-start true'24 PASS getComputedStyle(alignSelfLeftUnsafe, '').getPropertyValue('-webkit-align-self') is 'left unsafe' 25 PASS getComputedStyle(alignSelfFlexStartUnsafe, '').getPropertyValue('-webkit-align-self') is 'flex-start unsafe' 26 26 PASS getComputedStyle(alignSelfFlexEndSafe, '').getPropertyValue('-webkit-align-self') is 'flex-end safe' 27 27 … … 32 32 PASS element.style.webkitAlignSelf is "center" 33 33 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "center" 34 PASS element.style.webkitAlignSelf is "start true"35 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "start true"34 PASS element.style.webkitAlignSelf is "start unsafe" 35 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "start unsafe" 36 36 PASS element.style.webkitAlignSelf is "flex-end safe" 37 37 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "flex-end safe" … … 114 114 115 115 Test the value 'initial' for flex containers 116 PASS element.style.webkitAlignSelf is "right true"117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "right true"116 PASS element.style.webkitAlignSelf is "right unsafe" 117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "right unsafe" 118 118 PASS element.style.webkitAlignSelf is "initial" 119 119 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "stretch" … … 146 146 PASS element.style.webkitAlignSelf is "inherit" 147 147 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "left safe" 148 PASS element.style.webkitAlignSelf is "center true"149 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "center true"148 PASS element.style.webkitAlignSelf is "center unsafe" 149 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "center unsafe" 150 150 PASS element.style.webkitAlignSelf is "inherit" 151 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "center true"151 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-align-self') is "center unsafe" 152 152 PASS successfullyParsed is true 153 153 -
trunk/LayoutTests/css3/parse-align-self.html
r182147 r194104 51 51 } 52 52 53 #alignSelfEnd True {54 -webkit-align-self: end true;55 } 56 57 #alignSelfCenter True {58 -webkit-align-self: center true;53 #alignSelfEndUnsafe { 54 -webkit-align-self: end unsafe; 55 } 56 57 #alignSelfCenterUnsafe { 58 -webkit-align-self: center unsafe; 59 59 } 60 60 … … 71 71 } 72 72 73 #alignSelfLeft True {74 -webkit-align-self: left true;75 } 76 77 #alignSelfFlexStart True {78 -webkit-align-self: flex-start true;73 #alignSelfLeftUnsafe { 74 -webkit-align-self: left unsafe; 75 } 76 77 #alignSelfFlexStartUnsafe { 78 -webkit-align-self: flex-start unsafe; 79 79 } 80 80 … … 99 99 <div id="alignSelfFlexEnd"></div> 100 100 101 <div id="alignSelfEnd True"></div>102 <div id="alignSelfCenter True"></div>101 <div id="alignSelfEndUnsafe"></div> 102 <div id="alignSelfCenterUnsafe"></div> 103 103 <div id="alignSelfSelfEndSafe"></div> 104 104 <div id="alignSelfSelfStartSafe"></div> 105 105 <div id="alignSelfRightSafe"></div> 106 <div id="alignSelfLeft True"></div>107 <div id="alignSelfFlexStart True"></div>106 <div id="alignSelfLeftUnsafe"></div> 107 <div id="alignSelfFlexStartUnsafe"></div> 108 108 <div id="alignSelfFlexEndSafe"></div> 109 109 <script src="resources/alignment-parsing-utils.js"></script> … … 148 148 shouldBe("getComputedStyle(alignSelfFlexEnd, '').getPropertyValue('-webkit-align-self')", "'flex-end'"); 149 149 150 var alignSelfEnd True = document.getElementById("alignSelfEndTrue");151 shouldBe("getComputedStyle(alignSelfEnd True, '').getPropertyValue('-webkit-align-self')", "'end true'");152 153 var alignSelfCenter True = document.getElementById("alignSelfCenterTrue");154 shouldBe("getComputedStyle(alignSelfCenter True, '').getPropertyValue('-webkit-align-self')", "'center true'");150 var alignSelfEndUnsafe = document.getElementById("alignSelfEndUnsafe"); 151 shouldBe("getComputedStyle(alignSelfEndUnsafe, '').getPropertyValue('-webkit-align-self')", "'end unsafe'"); 152 153 var alignSelfCenterUnsafe = document.getElementById("alignSelfCenterUnsafe"); 154 shouldBe("getComputedStyle(alignSelfCenterUnsafe, '').getPropertyValue('-webkit-align-self')", "'center unsafe'"); 155 155 156 156 var alignSelfSelfEndSafe = document.getElementById("alignSelfSelfEndSafe"); … … 163 163 shouldBe("getComputedStyle(alignSelfRightSafe, '').getPropertyValue('-webkit-align-self')", "'right safe'"); 164 164 165 var alignSelfLeft True = document.getElementById("alignSelfLeftTrue");166 shouldBe("getComputedStyle(alignSelfLeft True, '').getPropertyValue('-webkit-align-self')", "'left true'");167 168 var alignSelfFlexStart True = document.getElementById("alignSelfFlexStartTrue");169 shouldBe("getComputedStyle(alignSelfFlexStart True, '').getPropertyValue('-webkit-align-self')", "'flex-start true'");165 var alignSelfLeftUnsafe = document.getElementById("alignSelfLeftUnsafe"); 166 shouldBe("getComputedStyle(alignSelfLeftUnsafe, '').getPropertyValue('-webkit-align-self')", "'left unsafe'"); 167 168 var alignSelfFlexStartUnsafe = document.getElementById("alignSelfFlexStartUnsafe"); 169 shouldBe("getComputedStyle(alignSelfFlexStartUnsafe, '').getPropertyValue('-webkit-align-self')", "'flex-start unsafe'"); 170 170 171 171 var alignSelfFlexEndSafe = document.getElementById("alignSelfFlexEndSafe"); … … 187 187 checkValues(element, "webkitAlignSelf", "-webkit-align-self", "center", "center"); 188 188 189 element.style.webkitAlignSelf = " true start";190 checkValues(element, "webkitAlignSelf", "-webkit-align-self", "start true", "start true");189 element.style.webkitAlignSelf = "unsafe start"; 190 checkValues(element, "webkitAlignSelf", "-webkit-align-self", "start unsafe", "start unsafe"); 191 191 192 192 element.style.webkitAlignSelf = "flex-end safe"; … … 223 223 document.body.appendChild(container); 224 224 225 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true auto");225 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe auto"); 226 226 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "auto safe"); 227 227 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "auto left"); 228 228 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "baseline safe"); 229 229 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "baseline center"); 230 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "stretch true");230 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "stretch unsafe"); 231 231 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "stretch right"); 232 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true true");233 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true safe");232 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe unsafe"); 233 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe safe"); 234 234 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "center start"); 235 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "stretch true");235 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "stretch unsafe"); 236 236 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "safe stretch"); 237 237 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "baseline safe"); 238 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true baseline");239 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true safe left");240 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", " true left safe");241 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "left safe true safe");238 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe baseline"); 239 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe safe left"); 240 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "unsafe left safe"); 241 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "left safe unsafe safe"); 242 242 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy start"); 243 243 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy end"); 244 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy right true");244 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy right unsafe"); 245 245 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy auto"); 246 246 checkBadValues(element, "webkitAlignSelf", "-webkit-align-self", "legacy stretch"); … … 261 261 debug("Test the value 'initial' for flex containers"); 262 262 container.style.display = "-webkit-flex"; 263 checkInitialValues(element, "webkitAlignSelf", "-webkit-align-self", "right true", "stretch");263 checkInitialValues(element, "webkitAlignSelf", "-webkit-align-self", "right unsafe", "stretch"); 264 264 265 265 debug(""); … … 285 285 checkInheritValues("webkitAlignSelf", "-webkit-align-self", "end"); 286 286 checkInheritValues("webkitAlignSelf", "-webkit-align-self", "left safe"); 287 checkInheritValues("webkitAlignSelf", "-webkit-align-self", "center true");287 checkInheritValues("webkitAlignSelf", "-webkit-align-self", "center unsafe"); 288 288 289 289 </script> -
trunk/LayoutTests/css3/parse-justify-content-expected.txt
r183805 r194104 19 19 PASS getComputedStyle(justifyContentFlexStart, '').getPropertyValue('justify-content') is "flex-start" 20 20 PASS getComputedStyle(justifyContentFlexEnd, '').getPropertyValue('justify-content') is "flex-end" 21 PASS getComputedStyle(justifyContentEnd True, '').getPropertyValue('justify-content') is "end true"22 PASS getComputedStyle(justifyContentCenter True, '').getPropertyValue('justify-content') is "center true"21 PASS getComputedStyle(justifyContentEndUnsafe, '').getPropertyValue('justify-content') is "end unsafe" 22 PASS getComputedStyle(justifyContentCenterUnsafe, '').getPropertyValue('justify-content') is "center unsafe" 23 23 PASS getComputedStyle(justifyContentRightSafe, '').getPropertyValue('justify-content') is "right safe" 24 PASS getComputedStyle(justifyContentLeft True, '').getPropertyValue('justify-content') is "left true"25 PASS getComputedStyle(justifyContentFlexStart True, '').getPropertyValue('justify-content') is "flex-start true"24 PASS getComputedStyle(justifyContentLeftUnsafe, '').getPropertyValue('justify-content') is "left unsafe" 25 PASS getComputedStyle(justifyContentFlexStartUnsafe, '').getPropertyValue('justify-content') is "flex-start unsafe" 26 26 PASS getComputedStyle(justifyContentFlexEndSafe, '').getPropertyValue('justify-content') is "flex-end safe" 27 27 PASS getComputedStyle(justifyContentSpaceBetweenLeft, '').getPropertyValue('justify-content') is "space-between left" … … 29 29 PASS getComputedStyle(justifyContentSpaceEvenlyRight, '').getPropertyValue('justify-content') is "space-evenly right" 30 30 PASS getComputedStyle(justifyContentStretchStartSafe, '').getPropertyValue('justify-content') is "stretch start safe" 31 PASS getComputedStyle(justifyContentSpaceAroundEnd True, '').getPropertyValue('justify-content') is "space-around end true"31 PASS getComputedStyle(justifyContentSpaceAroundEndUnsafe, '').getPropertyValue('justify-content') is "space-around end unsafe" 32 32 PASS getComputedStyle(justifyContentSpaceEvenlyFlexStartSafe, '').getPropertyValue('justify-content') is "space-evenly flex-start safe" 33 33 PASS getComputedStyle(justifyContentSpaceBetweenSafe, '').getPropertyValue('justify-content') is "start" 34 34 PASS getComputedStyle(justifyContentSpaceBetweenStretch, '').getPropertyValue('justify-content') is "start" 35 35 PASS getComputedStyle(justifyContentSafe, '').getPropertyValue('justify-content') is "start" 36 PASS getComputedStyle(justifyContentRightSafe True, '').getPropertyValue('justify-content') is "start"36 PASS getComputedStyle(justifyContentRightSafeUnsafe, '').getPropertyValue('justify-content') is "start" 37 37 PASS getComputedStyle(justifyContentCenterLeft, '').getPropertyValue('justify-content') is "start" 38 38 … … 43 43 PASS element.style.justifyContent is "center" 44 44 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "center" 45 PASS element.style.justifyContent is "start true"46 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start true"45 PASS element.style.justifyContent is "start unsafe" 46 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start unsafe" 47 47 PASS element.style.justifyContent is "flex-end safe" 48 48 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "flex-end safe" … … 51 51 PASS element.style.justifyContent is "stretch center" 52 52 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch center" 53 PASS element.style.justifyContent is "right true"54 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "right true"53 PASS element.style.justifyContent is "right unsafe" 54 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "right unsafe" 55 55 PASS element.style.justifyContent is "auto" 56 56 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start" … … 119 119 120 120 Test the value 'initial' for flex containers 121 PASS element.style.justifyContent is "right true"122 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "right true"121 PASS element.style.justifyContent is "right unsafe" 122 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "right unsafe" 123 123 PASS element.style.justifyContent is "initial" 124 124 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch" -
trunk/LayoutTests/css3/parse-justify-content.html
r183805 r194104 59 59 } 60 60 61 #justifyContentEnd True {62 justify-content: end true;63 } 64 65 #justifyContentCenter True {66 justify-content: center true;61 #justifyContentEndUnsafe { 62 justify-content: end unsafe; 63 } 64 65 #justifyContentCenterUnsafe { 66 justify-content: center unsafe; 67 67 } 68 68 … … 71 71 } 72 72 73 #justifyContentLeft True {74 justify-content: left true;75 } 76 77 #justifyContentFlexStart True {78 justify-content: flex-start true;73 #justifyContentLeftUnsafe { 74 justify-content: left unsafe; 75 } 76 77 #justifyContentFlexStartUnsafe { 78 justify-content: flex-start unsafe; 79 79 } 80 80 … … 99 99 } 100 100 101 #justifyContentSpaceAroundEnd True {102 justify-content: space-around end true;101 #justifyContentSpaceAroundEndUnsafe { 102 justify-content: space-around end unsafe; 103 103 } 104 104 … … 120 120 } 121 121 122 #justifyContentRightSafe True {123 justify-content: right safe true;122 #justifyContentRightSafeUnsafe { 123 justify-content: right safe unsafe; 124 124 } 125 125 … … 145 145 <div id="justifyContentFlexStart"></div> 146 146 <div id="justifyContentFlexEnd"></div> 147 <div id="justifyContentEnd True"></div>148 <div id="justifyContentCenter True"></div>147 <div id="justifyContentEndUnsafe"></div> 148 <div id="justifyContentCenterUnsafe"></div> 149 149 <div id="justifyContentRightSafe"></div> 150 <div id="justifyContentLeft True"></div>151 <div id="justifyContentFlexStart True"></div>150 <div id="justifyContentLeftUnsafe"></div> 151 <div id="justifyContentFlexStartUnsafe"></div> 152 152 <div id="justifyContentFlexEndSafe"></div> 153 153 <div id="justifyContentSpaceBetweenLeft"></div> … … 155 155 <div id="justifyContentSpaceEvenlyRight"></div> 156 156 <div id="justifyContentStretchStartSafe"></div> 157 <div id="justifyContentSpaceAroundEnd True"></div>157 <div id="justifyContentSpaceAroundEndUnsafe"></div> 158 158 <div id="justifyContentSpaceEvenlyFlexStartSafe"></div> 159 159 … … 161 161 <div id="justifyContentSpaceBetweenStretch"></div> 162 162 <div id="justifyContentSafe"></div> 163 <div id="justifyContentRightSafe True"></div>163 <div id="justifyContentRightSafeUnsafe"></div> 164 164 <div id="justifyContentCenterLeft"></div> 165 165 … … 211 211 shouldBeEqualToString("getComputedStyle(justifyContentFlexEnd, '').getPropertyValue('justify-content')", "flex-end"); 212 212 213 var justifyContentEnd True = document.getElementById("justifyContentEndTrue");214 shouldBeEqualToString("getComputedStyle(justifyContentEnd True, '').getPropertyValue('justify-content')", "end true");215 216 var justifyContentCenter True = document.getElementById("justifyContentCenterTrue");217 shouldBeEqualToString("getComputedStyle(justifyContentCenter True, '').getPropertyValue('justify-content')", "center true");213 var justifyContentEndUnsafe = document.getElementById("justifyContentEndUnsafe"); 214 shouldBeEqualToString("getComputedStyle(justifyContentEndUnsafe, '').getPropertyValue('justify-content')", "end unsafe"); 215 216 var justifyContentCenterUnsafe = document.getElementById("justifyContentCenterUnsafe"); 217 shouldBeEqualToString("getComputedStyle(justifyContentCenterUnsafe, '').getPropertyValue('justify-content')", "center unsafe"); 218 218 219 219 var justifyContentRightSafe = document.getElementById("justifyContentRightSafe"); 220 220 shouldBeEqualToString("getComputedStyle(justifyContentRightSafe, '').getPropertyValue('justify-content')", "right safe"); 221 221 222 var justifyContentLeft True = document.getElementById("justifyContentLeftTrue");223 shouldBeEqualToString("getComputedStyle(justifyContentLeft True, '').getPropertyValue('justify-content')", "left true");224 225 var justifyContentFlexStart True = document.getElementById("justifyContentFlexStartTrue");226 shouldBeEqualToString("getComputedStyle(justifyContentFlexStart True, '').getPropertyValue('justify-content')", "flex-start true");222 var justifyContentLeftUnsafe = document.getElementById("justifyContentLeftUnsafe"); 223 shouldBeEqualToString("getComputedStyle(justifyContentLeftUnsafe, '').getPropertyValue('justify-content')", "left unsafe"); 224 225 var justifyContentFlexStartUnsafe = document.getElementById("justifyContentFlexStartUnsafe"); 226 shouldBeEqualToString("getComputedStyle(justifyContentFlexStartUnsafe, '').getPropertyValue('justify-content')", "flex-start unsafe"); 227 227 228 228 var justifyContentFlexEndSafe = document.getElementById("justifyContentFlexEndSafe"); … … 241 241 shouldBeEqualToString("getComputedStyle(justifyContentStretchStartSafe, '').getPropertyValue('justify-content')", "stretch start safe"); 242 242 243 var justifyContentSpaceAroundEnd True = document.getElementById("justifyContentSpaceAroundEndTrue");244 shouldBeEqualToString("getComputedStyle(justifyContentSpaceAroundEnd True, '').getPropertyValue('justify-content')", "space-around end true");243 var justifyContentSpaceAroundEndUnsafe = document.getElementById("justifyContentSpaceAroundEndUnsafe"); 244 shouldBeEqualToString("getComputedStyle(justifyContentSpaceAroundEndUnsafe, '').getPropertyValue('justify-content')", "space-around end unsafe"); 245 245 246 246 var justifyContentSpaceEvenlyFlexStartSafe = document.getElementById("justifyContentSpaceEvenlyFlexStartSafe"); … … 250 250 shouldBeEqualToString("getComputedStyle(justifyContentSpaceBetweenSafe, '').getPropertyValue('justify-content')", "start"); 251 251 252 var justifyContentSpaceAround True = document.getElementById("justifyContentSpaceBetweenStretch");252 var justifyContentSpaceAroundUnsafe = document.getElementById("justifyContentSpaceBetweenStretch"); 253 253 shouldBeEqualToString("getComputedStyle(justifyContentSpaceBetweenStretch, '').getPropertyValue('justify-content')", "start"); 254 254 255 var justifyContentSpaceAround True = document.getElementById("justifyContentSafe");255 var justifyContentSpaceAroundUnsafe = document.getElementById("justifyContentSafe"); 256 256 shouldBeEqualToString("getComputedStyle(justifyContentSafe, '').getPropertyValue('justify-content')", "start"); 257 257 258 var justifyContentSpaceAround True = document.getElementById("justifyContentRightSafeTrue");259 shouldBeEqualToString("getComputedStyle(justifyContentRightSafe True, '').getPropertyValue('justify-content')", "start");260 261 var justifyContentSpaceAround True = document.getElementById("justifyContentCenterLeft");258 var justifyContentSpaceAroundUnsafe = document.getElementById("justifyContentRightSafeUnsafe"); 259 shouldBeEqualToString("getComputedStyle(justifyContentRightSafeUnsafe, '').getPropertyValue('justify-content')", "start"); 260 261 var justifyContentSpaceAroundUnsafe = document.getElementById("justifyContentCenterLeft"); 262 262 shouldBeEqualToString("getComputedStyle(justifyContentCenterLeft, '').getPropertyValue('justify-content')", "start"); 263 263 … … 275 275 checkValues(element, "justifyContent", "justify-content", "center", "center"); 276 276 277 element.style.justifyContent = " true start";278 checkValues(element, "justifyContent", "justify-content", "start true", "start true");277 element.style.justifyContent = "unsafe start"; 278 checkValues(element, "justifyContent", "justify-content", "start unsafe", "start unsafe"); 279 279 280 280 element.style.justifyContent = "flex-end safe"; … … 287 287 checkValues(element, "justifyContent", "justify-content", "stretch center", "stretch center"); 288 288 289 element.style.justifyContent = "right true";290 checkValues(element, "justifyContent", "justify-content", "right true", "right true");289 element.style.justifyContent = "right unsafe"; 290 checkValues(element, "justifyContent", "justify-content", "right unsafe", "right unsafe"); 291 291 292 292 element.style.justifyContent = "auto"; … … 310 310 311 311 checkBadValues(element, "justifyContent", "justify-content", ""); 312 checkBadValues(element, "justifyContent", "justify-content", " true auto");312 checkBadValues(element, "justifyContent", "justify-content", "unsafe auto"); 313 313 checkBadValues(element, "justifyContent", "justify-content", "auto safe"); 314 314 checkBadValues(element, "justifyContent", "justify-content", "auto left"); 315 315 checkBadValues(element, "justifyContent", "justify-content", "baseline safe"); 316 316 checkBadValues(element, "justifyContent", "justify-content", "last baseline center"); 317 checkBadValues(element, "justifyContent", "justify-content", " true true");318 checkBadValues(element, "justifyContent", "justify-content", " true safe");317 checkBadValues(element, "justifyContent", "justify-content", "unsafe unsafe"); 318 checkBadValues(element, "justifyContent", "justify-content", "unsafe safe"); 319 319 checkBadValues(element, "justifyContent", "justify-content", "center start"); 320 320 checkBadValues(element, "justifyContent", "justify-content", "baseline safe"); 321 checkBadValues(element, "justifyContent", "justify-content", " true baseline");322 checkBadValues(element, "justifyContent", "justify-content", " true safe left");323 checkBadValues(element, "justifyContent", "justify-content", " true left safe");324 checkBadValues(element, "justifyContent", "justify-content", "left safe true safe");321 checkBadValues(element, "justifyContent", "justify-content", "unsafe baseline"); 322 checkBadValues(element, "justifyContent", "justify-content", "unsafe safe left"); 323 checkBadValues(element, "justifyContent", "justify-content", "unsafe left safe"); 324 checkBadValues(element, "justifyContent", "justify-content", "left safe unsafe safe"); 325 325 checkBadValues(element, "justifyContent", "justify-content", "start right space-between"); 326 326 checkBadValues(element, "justifyContent", "justify-content", "safe stretch"); … … 328 328 checkBadValues(element, "justifyContent", "justify-content", "end space-between start"); 329 329 checkBadValues(element, "justifyContent", "justify-content", "right safe left"); 330 checkBadValues(element, "justifyContent", "justify-content", " true");330 checkBadValues(element, "justifyContent", "justify-content", "unsafe"); 331 331 checkBadValues(element, "justifyContent", "justify-content", "safe"); 332 332 … … 344 344 debug("Test the value 'initial' for flex containers"); 345 345 element.style.display = "-webkit-flex"; 346 checkInitialValues(element, "justifyContent", "justify-content", "right true", "stretch");346 checkInitialValues(element, "justifyContent", "justify-content", "right unsafe", "stretch"); 347 347 348 348 debug(""); -
trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html
r183660 r194104 28 28 .alignItemsCenter { align-items: center; } 29 29 .alignItemsCenterSafe { align-items: center safe; } 30 .alignItemsCenter True { align-items: center true; }30 .alignItemsCenterUnsafe { align-items: center unsafe; } 31 31 .alignItemsEnd { align-items: end; } 32 32 .alignItemsEndSafe { align-items: end safe; } 33 .alignItemsEnd True { align-items: end true; }33 .alignItemsEndUnsafe { align-items: end unsafe; } 34 34 .alignSelfCenter { align-self: center; } 35 35 .alignSelfCenterSafe { align-self: center safe; } 36 .alignSelfCenter True { align-self: center true; }36 .alignSelfCenterUnsafe { align-self: center unsafe; } 37 37 .alignSelfEnd { align-self: end; } 38 38 .alignSelfEndSafe { align-self: end safe; } 39 .alignSelfEnd True { align-self: end true; }39 .alignSelfEndUnsafe { align-self: end unsafe; } 40 40 .justifyItemsCenter { justify-items: center; } 41 41 .justifyItemsCenterSafe { justify-items: center safe; } 42 .justifyItemsCenter True { justify-items: center true; }42 .justifyItemsCenterUnsafe { justify-items: center unsafe; } 43 43 .justifyItemsEnd { justify-items: end; } 44 44 .justifyItemsEndSafe { justify-items: end safe; } 45 .justifyItemsEnd True { justify-items: end true; }45 .justifyItemsEndUnsafe { justify-items: end unsafe; } 46 46 .justifySelfCenter { justify-self: center; } 47 47 .justifySelfCenterSafe { justify-self: center safe; } 48 .justifySelfCenter True { justify-self: center true; }48 .justifySelfCenterUnsafe { justify-self: center unsafe; } 49 49 .justifySelfEnd { justify-self: end; } 50 50 .thirdRowFirstColumn { … … 71 71 72 72 <div style="position: relative"> 73 <div class="grid alignItemsCenter True justifyItemsCenterTrue" data-expected-width="300" data-expected-height="360">73 <div class="grid alignItemsCenterUnsafe justifyItemsCenterUnsafe" data-expected-width="300" data-expected-height="360"> 74 74 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="50" data-offset-y="-15" data-expected-width="50" data-expected-height="150"></div> 75 75 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> … … 115 115 116 116 <div style="position: relative"> 117 <div class="grid alignItemsEnd True justifyItemsEndTrue" data-expected-width="300" data-expected-height="360">117 <div class="grid alignItemsEndUnsafe justifyItemsEndUnsafe" data-expected-width="300" data-expected-height="360"> 118 118 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="100" data-offset-y="-30" data-expected-width="50" data-expected-height="150"></div> 119 119 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> … … 128 128 <div class="grid alignItemsEndSafe justifyItemsEndSafe" data-expected-width="300" data-expected-height="360"> 129 129 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="0" data-offset-y="80" data-expected-width="180" data-expected-height="40"></div> 130 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenter True" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div>130 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenterUnsafe" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> 131 131 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 132 132 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div> … … 141 141 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> 142 142 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 143 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenter True" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div>143 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenterUnsafe" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> 144 144 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="250" data-offset-y="120" data-expected-width="50" data-expected-height="150"></div> 145 145 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> -
trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html
r190484 r194104 34 34 } 35 35 36 .center True {37 align-content: center true;38 justify-content: center true;36 .centerUnsafe { 37 align-content: center unsafe; 38 justify-content: center unsafe; 39 39 } 40 40 … … 49 49 } 50 50 51 .end True {52 align-content: end true;53 justify-content: end true;51 .endUnsafe { 52 align-content: end unsafe; 53 justify-content: end unsafe; 54 54 } 55 55 … … 70 70 71 71 <div style="position: relative"> 72 <div class="grid overflowHeight center True" data-expected-width="200" data-expected-height="150">72 <div class="grid overflowHeight centerUnsafe" data-expected-width="200" data-expected-height="150"> 73 73 <div class="firstRowFirstColumn" data-offset-x="50" data-offset-y="-25" data-expected-width="50" data-expected-height="100"></div> 74 74 <div class="secondRowFirstColumn" data-offset-x="50" data-offset-y="75" data-expected-width="50" data-expected-height="100"></div> … … 106 106 107 107 <div style="position: relative"> 108 <div class="grid overflowHeight end True" data-expected-width="200" data-expected-height="150">108 <div class="grid overflowHeight endUnsafe" data-expected-width="200" data-expected-height="150"> 109 109 <div class="firstRowFirstColumn" data-offset-x="100" data-offset-y="-50" data-expected-width="50" data-expected-height="100"></div> 110 110 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="50" data-expected-width="50" data-expected-height="100"></div> -
trunk/LayoutTests/fast/css/parse-justify-items-expected.txt
r182613 r194104 17 17 PASS getComputedStyle(justifyItemsFlexStart, '').getPropertyValue('justify-items') is 'flex-start' 18 18 PASS getComputedStyle(justifyItemsFlexEnd, '').getPropertyValue('justify-items') is 'flex-end' 19 PASS getComputedStyle(justifyItemsEnd True, '').getPropertyValue('justify-items') is 'end true'20 PASS getComputedStyle(justifyItemsCenter True, '').getPropertyValue('justify-items') is 'center true'19 PASS getComputedStyle(justifyItemsEndUnsafe, '').getPropertyValue('justify-items') is 'end unsafe' 20 PASS getComputedStyle(justifyItemsCenterUnsafe, '').getPropertyValue('justify-items') is 'center unsafe' 21 21 PASS getComputedStyle(justifyItemsSelfEndSafe, '').getPropertyValue('justify-items') is 'self-end safe' 22 22 PASS getComputedStyle(justifyItemsSelfStartSafe, '').getPropertyValue('justify-items') is 'self-start safe' 23 23 PASS getComputedStyle(justifyItemsRightSafe, '').getPropertyValue('justify-items') is 'right safe' 24 PASS getComputedStyle(justifyItemsLeft True, '').getPropertyValue('justify-items') is 'left true'25 PASS getComputedStyle(justifyItemsFlexStart True, '').getPropertyValue('justify-items') is 'flex-start true'24 PASS getComputedStyle(justifyItemsLeftUnsafe, '').getPropertyValue('justify-items') is 'left unsafe' 25 PASS getComputedStyle(justifyItemsFlexStartUnsafe, '').getPropertyValue('justify-items') is 'flex-start unsafe' 26 26 PASS getComputedStyle(justifyItemsFlexEndSafe, '').getPropertyValue('justify-items') is 'flex-end safe' 27 27 PASS getComputedStyle(justifyItemsLegacyLeft, '').getPropertyValue('justify-items') is 'legacy left' … … 38 38 PASS element.style.justifyItems is "center" 39 39 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center" 40 PASS element.style.justifyItems is "start true"41 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "start true"40 PASS element.style.justifyItems is "start unsafe" 41 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "start unsafe" 42 42 PASS element.style.justifyItems is "flex-end safe" 43 43 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "flex-end safe" … … 122 122 123 123 Test the value 'initial' for flex containers 124 PASS element.style.justifyItems is "right true"125 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right true"124 PASS element.style.justifyItems is "right unsafe" 125 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "right unsafe" 126 126 PASS element.style.justifyItems is "initial" 127 127 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "stretch" … … 136 136 PASS element.style.justifyItems is "inherit" 137 137 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "left safe" 138 PASS element.style.justifyItems is "center true"139 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center true"138 PASS element.style.justifyItems is "center unsafe" 139 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center unsafe" 140 140 PASS element.style.justifyItems is "inherit" 141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center true"141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-items') is "center unsafe" 142 142 143 143 Test the value 'legacy' -
trunk/LayoutTests/fast/css/parse-justify-items.html
r182613 r194104 51 51 } 52 52 53 #justifyItemsEnd True {54 justify-items: end true;55 } 56 57 #justifyItemsCenter True {58 justify-items: center true;53 #justifyItemsEndUnsafe { 54 justify-items: end unsafe; 55 } 56 57 #justifyItemsCenterUnsafe { 58 justify-items: center unsafe; 59 59 } 60 60 … … 71 71 } 72 72 73 #justifyItemsLeft True {74 justify-items: left true;75 } 76 77 #justifyItemsFlexStart True {78 justify-items: flex-start true;73 #justifyItemsLeftUnsafe { 74 justify-items: left unsafe; 75 } 76 77 #justifyItemsFlexStartUnsafe { 78 justify-items: flex-start unsafe; 79 79 } 80 80 … … 123 123 <div id="justifyItemsFlexEnd"></div> 124 124 125 <div id="justifyItemsEnd True"></div>126 <div id="justifyItemsCenter True"></div>125 <div id="justifyItemsEndUnsafe"></div> 126 <div id="justifyItemsCenterUnsafe"></div> 127 127 <div id="justifyItemsSelfEndSafe"></div> 128 128 <div id="justifyItemsSelfStartSafe"></div> 129 129 <div id="justifyItemsRightSafe"></div> 130 <div id="justifyItemsLeft True"></div>131 <div id="justifyItemsFlexStart True"></div>130 <div id="justifyItemsLeftUnsafe"></div> 131 <div id="justifyItemsFlexStartUnsafe"></div> 132 132 <div id="justifyItemsFlexEndSafe"></div> 133 133 <div id="justifyItemsLegacyLeft"></div> … … 178 178 shouldBe("getComputedStyle(justifyItemsFlexEnd, '').getPropertyValue('justify-items')", "'flex-end'"); 179 179 180 var justifyItemsEnd True = document.getElementById("justifyItemsEndTrue");181 shouldBe("getComputedStyle(justifyItemsEnd True, '').getPropertyValue('justify-items')", "'end true'");182 183 var justifyItemsCenter True = document.getElementById("justifyItemsCenterTrue");184 shouldBe("getComputedStyle(justifyItemsCenter True, '').getPropertyValue('justify-items')", "'center true'");180 var justifyItemsEndUnsafe = document.getElementById("justifyItemsEndUnsafe"); 181 shouldBe("getComputedStyle(justifyItemsEndUnsafe, '').getPropertyValue('justify-items')", "'end unsafe'"); 182 183 var justifyItemsCenterUnsafe = document.getElementById("justifyItemsCenterUnsafe"); 184 shouldBe("getComputedStyle(justifyItemsCenterUnsafe, '').getPropertyValue('justify-items')", "'center unsafe'"); 185 185 186 186 var justifyItemsSelfEndSafe = document.getElementById("justifyItemsSelfEndSafe"); … … 193 193 shouldBe("getComputedStyle(justifyItemsRightSafe, '').getPropertyValue('justify-items')", "'right safe'"); 194 194 195 var justifyItemsLeft True = document.getElementById("justifyItemsLeftTrue");196 shouldBe("getComputedStyle(justifyItemsLeft True, '').getPropertyValue('justify-items')", "'left true'");197 198 var justifyItemsFlexStart True = document.getElementById("justifyItemsFlexStartTrue");199 shouldBe("getComputedStyle(justifyItemsFlexStart True, '').getPropertyValue('justify-items')", "'flex-start true'");195 var justifyItemsLeftUnsafe = document.getElementById("justifyItemsLeftUnsafe"); 196 shouldBe("getComputedStyle(justifyItemsLeftUnsafe, '').getPropertyValue('justify-items')", "'left unsafe'"); 197 198 var justifyItemsFlexStartUnsafe = document.getElementById("justifyItemsFlexStartUnsafe"); 199 shouldBe("getComputedStyle(justifyItemsFlexStartUnsafe, '').getPropertyValue('justify-items')", "'flex-start unsafe'"); 200 200 201 201 var justifyItemsFlexEndSafe = document.getElementById("justifyItemsFlexEndSafe"); … … 233 233 checkValues(element, "justifyItems", "justify-items", "center", "center"); 234 234 235 element.style.justifyItems = " true start";236 checkValues(element, "justifyItems", "justify-items", "start true", "start true");235 element.style.justifyItems = "unsafe start"; 236 checkValues(element, "justifyItems", "justify-items", "start unsafe", "start unsafe"); 237 237 238 238 element.style.justifyItems = "flex-end safe"; … … 269 269 document.body.appendChild(element); 270 270 271 checkBadValues(element, "justifyItems", "justify-items", " true auto");271 checkBadValues(element, "justifyItems", "justify-items", "unsafe auto"); 272 272 checkBadValues(element, "justifyItems", "justify-items", "auto safe"); 273 273 checkBadValues(element, "justifyItems", "justify-items", "auto left"); 274 274 checkBadValues(element, "justifyItems", "justify-items", "baseline safe"); 275 275 checkBadValues(element, "justifyItems", "justify-items", "baseline center"); 276 checkBadValues(element, "justifyItems", "justify-items", "stretch true");276 checkBadValues(element, "justifyItems", "justify-items", "stretch unsafe"); 277 277 checkBadValues(element, "justifyItems", "justify-items", "stretch right"); 278 checkBadValues(element, "justifyItems", "justify-items", " true true");279 checkBadValues(element, "justifyItems", "justify-items", " true safe");278 checkBadValues(element, "justifyItems", "justify-items", "unsafe unsafe"); 279 checkBadValues(element, "justifyItems", "justify-items", "unsafe safe"); 280 280 checkBadValues(element, "justifyItems", "justify-items", "center start"); 281 checkBadValues(element, "justifyItems", "justify-items", "stretch true");281 checkBadValues(element, "justifyItems", "justify-items", "stretch unsafe"); 282 282 checkBadValues(element, "justifyItems", "justify-items", "safe stretch"); 283 283 checkBadValues(element, "justifyItems", "justify-items", "baseline safe"); 284 checkBadValues(element, "justifyItems", "justify-items", " true baseline");285 checkBadValues(element, "justifyItems", "justify-items", " true safe left");286 checkBadValues(element, "justifyItems", "justify-items", " true left safe");287 checkBadValues(element, "justifyItems", "justify-items", "left safe true safe");284 checkBadValues(element, "justifyItems", "justify-items", "unsafe baseline"); 285 checkBadValues(element, "justifyItems", "justify-items", "unsafe safe left"); 286 checkBadValues(element, "justifyItems", "justify-items", "unsafe left safe"); 287 checkBadValues(element, "justifyItems", "justify-items", "left safe unsafe safe"); 288 288 checkBadValues(element, "justifyItems", "justify-items", "legacy start"); 289 289 checkBadValues(element, "justifyItems", "justify-items", "legacy end"); 290 checkBadValues(element, "justifyItems", "justify-items", "legacy right true");290 checkBadValues(element, "justifyItems", "justify-items", "legacy right unsafe"); 291 291 checkBadValues(element, "justifyItems", "justify-items", "legacy auto"); 292 292 checkBadValues(element, "justifyItems", "justify-items", "legacy stretch"); … … 307 307 debug("Test the value 'initial' for flex containers"); 308 308 element.style.display = "-webkit-flex"; 309 checkInitialValues(element, "justifyItems", "justify-items", "right true", "stretch");309 checkInitialValues(element, "justifyItems", "justify-items", "right unsafe", "stretch"); 310 310 311 311 debug(""); … … 314 314 checkInheritValues("justifyItems", "justify-items", "end"); 315 315 checkInheritValues("justifyItems", "justify-items", "left safe"); 316 checkInheritValues("justifyItems", "justify-items", "center true");316 checkInheritValues("justifyItems", "justify-items", "center unsafe"); 317 317 318 318 debug(""); -
trunk/LayoutTests/fast/css/parse-justify-self-expected.txt
r182147 r194104 14 14 PASS getComputedStyle(justifySelfLeft, '').getPropertyValue('justify-self') is 'left' 15 15 PASS getComputedStyle(justifySelfRight, '').getPropertyValue('justify-self') is 'right' 16 PASS getComputedStyle(justifySelfEnd True, '').getPropertyValue('justify-self') is 'end true'17 PASS getComputedStyle(justifySelfCenter True, '').getPropertyValue('justify-self') is 'center true'16 PASS getComputedStyle(justifySelfEndUnsafe, '').getPropertyValue('justify-self') is 'end unsafe' 17 PASS getComputedStyle(justifySelfCenterUnsafe, '').getPropertyValue('justify-self') is 'center unsafe' 18 18 PASS getComputedStyle(justifySelfSelfEndSafe, '').getPropertyValue('justify-self') is 'self-end safe' 19 19 PASS getComputedStyle(justifySelfSelfStartSafe, '').getPropertyValue('justify-self') is 'self-start safe' 20 20 PASS getComputedStyle(justifySelfRightSafe, '').getPropertyValue('justify-self') is 'right safe' 21 PASS getComputedStyle(justifySelfLeft True, '').getPropertyValue('justify-self') is 'left true'21 PASS getComputedStyle(justifySelfLeftUnsafe, '').getPropertyValue('justify-self') is 'left unsafe' 22 22 23 23 Test initial value of justify-self through JS … … 26 26 Test getting and setting justify-self through JS 27 27 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'center' 28 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'start true'28 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'start unsafe' 29 29 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'start' 30 30 -
trunk/LayoutTests/fast/css/parse-justify-self.html
r182147 r194104 39 39 } 40 40 41 #justifySelfEnd True {42 justify-self: end true;43 } 44 45 #justifySelfCenter True {46 justify-self: center true;41 #justifySelfEndUnsafe { 42 justify-self: end unsafe; 43 } 44 45 #justifySelfCenterUnsafe { 46 justify-self: center unsafe; 47 47 } 48 48 … … 59 59 } 60 60 61 #justifySelfLeft True {62 justify-self: left true;61 #justifySelfLeftUnsafe { 62 justify-self: left unsafe; 63 63 } 64 64 </style> … … 76 76 <div id="justifySelfRight"></div> 77 77 78 <div id="justifySelfEnd True"></div>79 <div id="justifySelfCenter True"></div>78 <div id="justifySelfEndUnsafe"></div> 79 <div id="justifySelfCenterUnsafe"></div> 80 80 <div id="justifySelfSelfEndSafe"></div> 81 81 <div id="justifySelfSelfStartSafe"></div> 82 82 <div id="justifySelfRightSafe"></div> 83 <div id="justifySelfLeft True"></div>83 <div id="justifySelfLeftUnsafe"></div> 84 84 <script> 85 85 description('Test that setting and getting justify-self works as expected'); … … 113 113 shouldBe("getComputedStyle(justifySelfRight, '').getPropertyValue('justify-self')", "'right'"); 114 114 115 var justifySelfEnd True = document.getElementById("justifySelfEndTrue");116 shouldBe("getComputedStyle(justifySelfEnd True, '').getPropertyValue('justify-self')", "'end true'");117 118 var justifySelfCenter True = document.getElementById("justifySelfCenterTrue");119 shouldBe("getComputedStyle(justifySelfCenter True, '').getPropertyValue('justify-self')", "'center true'");115 var justifySelfEndUnsafe = document.getElementById("justifySelfEndUnsafe"); 116 shouldBe("getComputedStyle(justifySelfEndUnsafe, '').getPropertyValue('justify-self')", "'end unsafe'"); 117 118 var justifySelfCenterUnsafe = document.getElementById("justifySelfCenterUnsafe"); 119 shouldBe("getComputedStyle(justifySelfCenterUnsafe, '').getPropertyValue('justify-self')", "'center unsafe'"); 120 120 121 121 var justifySelfSelfEndSafe = document.getElementById("justifySelfSelfEndSafe"); … … 128 128 shouldBe("getComputedStyle(justifySelfRightSafe, '').getPropertyValue('justify-self')", "'right safe'"); 129 129 130 var justifySelfLeft True = document.getElementById("justifySelfLeftTrue");131 shouldBe("getComputedStyle(justifySelfLeft True, '').getPropertyValue('justify-self')", "'left true'");130 var justifySelfLeftUnsafe = document.getElementById("justifySelfLeftUnsafe"); 131 shouldBe("getComputedStyle(justifySelfLeftUnsafe, '').getPropertyValue('justify-self')", "'left unsafe'"); 132 132 133 133 debug(""); … … 146 146 element = document.createElement("div"); 147 147 document.body.appendChild(element); 148 element.style.justifySelf = " true start";149 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start true'");148 element.style.justifySelf = "unsafe start"; 149 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start unsafe'"); 150 150 151 151 element.style.justifySelf = "start"; … … 165 165 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 166 166 167 element.style.justifySelf = "stretch true";167 element.style.justifySelf = "stretch unsafe"; 168 168 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 169 169 … … 171 171 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 172 172 173 element.style.justifySelf = " true true";174 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 175 176 element.style.justifySelf = " true";177 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 178 179 element.style.justifySelf = " true safe";173 element.style.justifySelf = "unsafe unsafe"; 174 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 175 176 element.style.justifySelf = "unsafe"; 177 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 178 179 element.style.justifySelf = "unsafe safe"; 180 180 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 181 181 … … 183 183 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 184 184 185 element.style.justifySelf = "stretch true";185 element.style.justifySelf = "stretch unsafe"; 186 186 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 187 187 … … 192 192 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 193 193 194 element.style.justifySelf = " true baseline";195 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 196 197 element.style.justifySelf = " true safe";198 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 199 200 element.style.justifySelf = " true safe left";201 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 202 203 element.style.justifySelf = " true left safe";204 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 205 206 element.style.justifySelf = "left safe true safe";194 element.style.justifySelf = "unsafe baseline"; 195 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 196 197 element.style.justifySelf = "unsafe safe"; 198 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 199 200 element.style.justifySelf = "unsafe safe left"; 201 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 202 203 element.style.justifySelf = "unsafe left safe"; 204 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 205 206 element.style.justifySelf = "left safe unsafe safe"; 207 207 shouldBe("getComputedStyle(element, '').getPropertyValue('justify-self')", "'start'"); 208 208 -
trunk/LayoutTests/fast/repaint/align-items-overflow-change.html
r189910 r194104 14 14 display: -webkit-grid; 15 15 -webkit-grid: 200px / 150px 150px; 16 align-items: end true;16 align-items: end unsafe; 17 17 width: 200px; 18 18 height: 300px; -
trunk/LayoutTests/fast/repaint/align-self-overflow-change.html
r189910 r194104 22 22 -webkit-grid-row: 1; 23 23 -webkit-grid-column: 1; 24 align-self: end true;24 align-self: end unsafe; 25 25 background-color: green; 26 26 } … … 28 28 -webkit-grid-row: 2; 29 29 -webkit-grid-column: 1; 30 align-self: end true;30 align-self: end unsafe; 31 31 background-color: green; 32 32 </style> -
trunk/LayoutTests/fast/repaint/justify-items-overflow-change.html
r189910 r194104 14 14 display: -webkit-grid; 15 15 -webkit-grid: 100px 100px / 300px; 16 justify-items: end true;16 justify-items: end unsafe; 17 17 width: 200px; 18 18 height: 300px; -
trunk/LayoutTests/fast/repaint/justify-self-overflow-change.html
r189910 r194104 22 22 -webkit-grid-row: 1; 23 23 -webkit-grid-column: 1; 24 justify-self: end true;24 justify-self: end unsafe; 25 25 background-color: green; 26 26 width: 150px; … … 30 30 -webkit-grid-column: 2; 31 31 background-color: green; 32 justify-self: end true;32 justify-self: end unsafe; 33 33 width: 50px; 34 34 </style> -
trunk/Source/WebCore/ChangeLog
r194103 r194104 1 2015-12-15 Javier Fernandez <jfernandez@igalia.com> 2 3 [css-align][css-grid] Overflow alignment value 'true' renamed to 'unsafe' 4 https://bugs.webkit.org/show_bug.cgi?id=152251 5 6 Reviewed by Darin Adler. 7 8 The 'True' Overflow Alignment keyword is now defined in the Box Alignment 9 specification as 'Unsafe'. 10 11 This patch applies the required changes in the CSS parsing logic, as well 12 Grid Layout specific codebase, so it complies with the last version of the 13 spec. 14 15 No new tests, no change in functionality. 16 17 * css/CSSParser.cpp: 18 (WebCore::isAlignmentOverflowKeyword): 19 (WebCore::CSSParser::parseItemPositionOverflowPosition): 20 * css/CSSPrimitiveValueMappings.h: 21 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 22 (WebCore::CSSPrimitiveValue::operator OverflowAlignment): 23 * css/CSSValueKeywords.in: 24 * rendering/RenderGrid.cpp: 25 (WebCore::computeOverflowAlignmentOffset): 26 * rendering/style/RenderStyleConstants.h: 27 1 28 2015-12-15 Zan Dobersek <zdobersek@igalia.com> 2 29 -
trunk/Source/WebCore/css/CSSParser.cpp
r192992 r194104 3376 3376 static bool isAlignmentOverflowKeyword(CSSValueID id) 3377 3377 { 3378 return id == CSSValue True || id == CSSValueSafe;3378 return id == CSSValueUnsafe || id == CSSValueSafe; 3379 3379 } 3380 3380 … … 3487 3487 value = m_valueList->next(); 3488 3488 if (value) { 3489 if (value->id != CSSValue True && value->id != CSSValueSafe)3489 if (value->id != CSSValueUnsafe && value->id != CSSValueSafe) 3490 3490 return false; 3491 3491 overflowAlignmentKeyword = CSSValuePool::singleton().createIdentifierValue(value->id); -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r191953 r194104 5086 5086 m_value.valueID = CSSValueDefault; 5087 5087 break; 5088 case OverflowAlignment True:5089 m_value.valueID = CSSValue True;5088 case OverflowAlignmentUnsafe: 5089 m_value.valueID = CSSValueUnsafe; 5090 5090 break; 5091 5091 case OverflowAlignmentSafe: … … 5098 5098 { 5099 5099 switch (m_value.valueID) { 5100 case CSSValue True:5101 return OverflowAlignment True;5100 case CSSValueUnsafe: 5101 return OverflowAlignmentUnsafe; 5102 5102 case CSSValueSafe: 5103 5103 return OverflowAlignmentSafe; … … 5106 5106 } 5107 5107 ASSERT_NOT_REACHED(); 5108 return OverflowAlignment True;5108 return OverflowAlignmentUnsafe; 5109 5109 } 5110 5110 -
trunk/Source/WebCore/css/CSSValueKeywords.in
r191935 r194104 624 624 // left 625 625 // right 626 true626 unsafe 627 627 safe 628 628 legacy -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r193413 r194104 1591 1591 // edge (potentially cause some data loss as the overflow is unreachable). 1592 1592 return std::max<LayoutUnit>(0, offset); 1593 case OverflowAlignment True:1593 case OverflowAlignmentUnsafe: 1594 1594 case OverflowAlignmentDefault: 1595 1595 // If we overflow our alignment container and overflow is 'true' (default), we -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.h
r191953 r194104 253 253 enum EFlexWrap { FlexNoWrap, FlexWrap, FlexWrapReverse }; 254 254 enum ItemPosition {ItemPositionAuto, ItemPositionStretch, ItemPositionBaseline, ItemPositionLastBaseline, ItemPositionCenter, ItemPositionStart, ItemPositionEnd, ItemPositionSelfStart, ItemPositionSelfEnd, ItemPositionFlexStart, ItemPositionFlexEnd, ItemPositionLeft, ItemPositionRight}; 255 enum OverflowAlignment {OverflowAlignmentDefault, OverflowAlignment True, OverflowAlignmentSafe};255 enum OverflowAlignment {OverflowAlignmentDefault, OverflowAlignmentUnsafe, OverflowAlignmentSafe}; 256 256 enum ItemPositionType {NonLegacyPosition, LegacyPosition}; 257 257 enum ContentPosition {ContentPositionAuto, ContentPositionBaseline, ContentPositionLastBaseline, ContentPositionCenter, ContentPositionStart, ContentPositionEnd, ContentPositionFlexStart, ContentPositionFlexEnd, ContentPositionLeft, ContentPositionRight};
Note: See TracChangeset
for help on using the changeset viewer.