Changeset 195529 in webkit
- Timestamp:
- Jan 25, 2016 1:24:19 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r195527 r195529 1 2016-01-22 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-grid] grid shorthand must reset gap properties to their initial values 4 https://bugs.webkit.org/show_bug.cgi?id=153354 5 6 Reviewed by Darin Adler. 7 8 * fast/css-grid-layout/grid-shorthand-get-set-expected.txt: 9 * fast/css-grid-layout/grid-shorthand-get-set.html: 10 1 11 2016-01-24 Brady Eidson <beidson@apple.com> 2 12 -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
r185147 r195529 259 259 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is "auto" 260 260 PASS element.style.webkitGridAutoRows is "initial" 261 262 Test the inherit value on reset-only subproperties (grid-*-gap) 263 PASS getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-column-gap') is "0px" 264 PASS getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-row-gap') is "0px" 265 PASS getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-column-gap') is "20px" 266 PASS getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-row-gap') is "100px" 261 267 PASS successfullyParsed is true 262 268 -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html
r185147 r195529 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">1 <!DOCTYPE html> 2 2 <html> 3 3 <head> … … 179 179 testGridDefinitionsSetJSValues("none", "none", "none", "none", "row", "auto", "auto", "none", "none", "none", "initial", "initial", "initial"); 180 180 181 debug(""); 182 debug("Test the inherit value on reset-only subproperties (grid-*-gap)"); 183 document.body.style.webkitGridRowGap = "100px"; 184 document.body.style.webkitGridColumnGap = "20px"; 185 var anotherElement = document.createElement("div"); 186 document.body.appendChild(anotherElement); 187 shouldBeEqualToString("getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-column-gap')", "0px"); 188 shouldBeEqualToString("getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-row-gap')", "0px"); 189 anotherElement.style.webkitGrid = "inherit"; 190 shouldBeEqualToString("getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-column-gap')", "20px"); 191 shouldBeEqualToString("getComputedStyle(anotherElement, '').getPropertyValue('-webkit-grid-row-gap')", "100px"); 181 192 </script> 182 193 </body> -
trunk/Source/WebCore/ChangeLog
r195527 r195529 1 2016-01-22 Sergio Villar Senin <svillar@igalia.com> 2 3 [css-grid] grid shorthand must reset gap properties to their initial values 4 https://bugs.webkit.org/show_bug.cgi?id=153354 5 6 Reviewed by Darin Adler. 7 8 Both 'grid-row-gap' & 'grid-column-gap' are considered reset-only subproperties of the 9 'grid' shorthand meaning that, even thought the shorthand does not offer a way to set 10 their values, it must in any case reset them to the initial ones. 11 12 * css/CSSParser.cpp: 13 (WebCore::CSSParser::parseGridShorthand): 14 * css/CSSPropertyNames.in: 15 1 16 2016-01-24 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebCore/css/CSSParser.cpp
r195452 r195529 5651 5651 { 5652 5652 ShorthandScope scope(this, CSSPropertyWebkitGrid); 5653 ASSERT(shorthandForProperty(CSSPropertyWebkitGrid).length() == 6);5653 ASSERT(shorthandForProperty(CSSPropertyWebkitGrid).length() == 8); 5654 5654 5655 5655 // 1- <grid-template> … … 5660 5660 addProperty(CSSPropertyWebkitGridAutoColumns, CSSValuePool::singleton().createImplicitInitialValue(), important); 5661 5661 addProperty(CSSPropertyWebkitGridAutoRows, CSSValuePool::singleton().createImplicitInitialValue(), important); 5662 addProperty(CSSPropertyWebkitGridColumnGap, CSSValuePool::singleton().createImplicitInitialValue(), important); 5663 addProperty(CSSPropertyWebkitGridRowGap, CSSValuePool::singleton().createImplicitInitialValue(), important); 5662 5664 return true; 5663 5665 } … … 5704 5706 addProperty(CSSPropertyWebkitGridTemplateRows, CSSValuePool::singleton().createImplicitInitialValue(), important); 5705 5707 addProperty(CSSPropertyWebkitGridTemplateAreas, CSSValuePool::singleton().createImplicitInitialValue(), important); 5708 addProperty(CSSPropertyWebkitGridColumnGap, CSSValuePool::singleton().createImplicitInitialValue(), important); 5709 addProperty(CSSPropertyWebkitGridRowGap, CSSValuePool::singleton().createImplicitInitialValue(), important); 5706 5710 5707 5711 return true; -
trunk/Source/WebCore/css/CSSPropertyNames.in
r194421 r195529 492 492 -webkit-justify-items = justify-items 493 493 #if defined(ENABLE_CSS_GRID_LAYOUT) && ENABLE_CSS_GRID_LAYOUT 494 -webkit-grid [Longhands=-webkit-grid-template-columns|-webkit-grid-template-rows|-webkit-grid-template-areas|-webkit-grid-auto-flow|-webkit-grid-auto-columns|-webkit-grid-auto-rows ]494 -webkit-grid [Longhands=-webkit-grid-template-columns|-webkit-grid-template-rows|-webkit-grid-template-areas|-webkit-grid-auto-flow|-webkit-grid-auto-columns|-webkit-grid-auto-rows|-webkit-grid-column-gap|-webkit-grid-row-gap] 495 495 -webkit-grid-area [Longhands=-webkit-grid-row-start|-webkit-grid-column-start|-webkit-grid-row-end|-webkit-grid-column-end] 496 496 -webkit-grid-auto-columns [Converter=GridTrackSize]
Note: See TracChangeset
for help on using the changeset viewer.