Changeset 272035 in webkit
- Timestamp:
- Jan 28, 2021 2:24:21 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 32 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/css3/scroll-snap/scroll-snap-inherit-expected.txt (modified) (1 diff)
-
LayoutTests/css3/scroll-snap/scroll-snap-inherit.html (modified) (1 diff)
-
LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt (modified) (2 diffs)
-
LayoutTests/css3/scroll-snap/scroll-snap-initial.html (modified) (2 diffs)
-
LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt (modified) (2 diffs)
-
LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js (modified) (2 diffs)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/inheritance-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-shorthand-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-valid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-shorthand-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-valid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-invalid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-shorthand-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-valid-expected.txt (modified) (6 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (3 diffs)
-
Source/WebCore/css/CSSProperties.json (modified) (11 diffs)
-
Source/WebCore/css/CSSProperty.cpp (modified) (2 diffs)
-
Source/WebCore/css/StyleProperties.cpp (modified) (3 diffs)
-
Source/WebCore/css/parser/CSSPropertyParser.cpp (modified) (4 diffs)
-
Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (1 diff)
-
Source/WebCore/rendering/style/StyleRareNonInheritedData.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r272030 r272035 1 2021-01-28 Martin Robinson <mrobinson@webkit.org> 2 3 Add support for logical variants of 'scroll-padding' and 'scroll-margin' 4 https://bugs.webkit.org/show_bug.cgi?id=220766 5 <rdar://problem/73661278> 6 7 Reviewed by Darin Adler. 8 9 Update test expectations. 10 11 * css3/scroll-snap/scroll-snap-inherit-expected.txt: 12 * css3/scroll-snap/scroll-snap-inherit.html: 13 * css3/scroll-snap/scroll-snap-initial-expected.txt: 14 * css3/scroll-snap/scroll-snap-initial.html: 15 * css3/scroll-snap/scroll-snap-property-computed-style-expected.txt: 16 * css3/scroll-snap/scroll-snap-property-computed-style.js: 17 * platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: 18 1 19 2021-01-28 Lauro Moura <lmoura@igalia.com> 2 20 -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-inherit-expected.txt
r268348 r272035 115 115 PASS inheritNone.style['scroll-padding-top'] is "" 116 116 PASS inheritNone.style['scroll-padding-bottom'] is "" 117 PASS window.getComputedStyle(inheritNone).getPropertyValue('scroll-padding') is " 0px"117 PASS window.getComputedStyle(inheritNone).getPropertyValue('scroll-padding') is "auto" 118 118 PASS inheritNone.style['scroll-snap-margin'] is "" 119 119 PASS inheritNone.style['scroll-snap-margin-left'] is "" -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-inherit.html
r268665 r272035 283 283 shouldBeEmptyString("inheritNone.style['scroll-padding-top']"); 284 284 shouldBeEmptyString("inheritNone.style['scroll-padding-bottom']"); 285 shouldBeEqualToString("window.getComputedStyle(inheritNone).getPropertyValue('scroll-padding')", " 0px");285 shouldBeEqualToString("window.getComputedStyle(inheritNone).getPropertyValue('scroll-padding')", "auto"); 286 286 shouldBeEmptyString("inheritNone.style['scroll-snap-margin']"); 287 287 shouldBeEmptyString("inheritNone.style['scroll-snap-margin-left']"); -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt
r268348 r272035 23 23 PASS window.getComputedStyle(initialPadding).getPropertyValue('scroll-snap-type') is "both" 24 24 PASS initialPadding.style['scroll-padding'] is "initial" 25 PASS window.getComputedStyle(initialPadding).getPropertyValue('scroll-padding') is " 0px"25 PASS window.getComputedStyle(initialPadding).getPropertyValue('scroll-padding') is "auto" 26 26 PASS initialPadding.style['scroll-snap-margin'] is "" 27 27 PASS window.getComputedStyle(initialPadding).getPropertyValue('scroll-snap-margin') is "1px" … … 47 47 PASS window.getComputedStyle(allInitial).getPropertyValue('scroll-snap-type') is "none" 48 48 PASS allInitial.style['scroll-padding'] is "initial" 49 PASS window.getComputedStyle(allInitial).getPropertyValue('scroll-padding') is " 0px"49 PASS window.getComputedStyle(allInitial).getPropertyValue('scroll-padding') is "auto" 50 50 PASS allInitial.style['scroll-snap-margin'] is "initial" 51 51 PASS window.getComputedStyle(allInitial).getPropertyValue('scroll-snap-margin') is "0px" -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial.html
r268348 r272035 182 182 shouldBeEqualToString("window.getComputedStyle(initialPadding).getPropertyValue('scroll-snap-type')", "both"); 183 183 shouldBeEqualToString("initialPadding.style['scroll-padding']", "initial"); 184 shouldBeEqualToString("window.getComputedStyle(initialPadding).getPropertyValue('scroll-padding')", " 0px");184 shouldBeEqualToString("window.getComputedStyle(initialPadding).getPropertyValue('scroll-padding')", "auto"); 185 185 shouldBeEmptyString("initialPadding.style['scroll-snap-margin']"); 186 186 shouldBeEqualToString("window.getComputedStyle(initialPadding).getPropertyValue('scroll-snap-margin')", "1px"); … … 212 212 shouldBeEqualToString("window.getComputedStyle(allInitial).getPropertyValue('scroll-snap-type')", "none"); 213 213 shouldBeEqualToString("allInitial.style['scroll-padding']", "initial"); 214 shouldBeEqualToString("window.getComputedStyle(allInitial).getPropertyValue('scroll-padding')", " 0px");214 shouldBeEqualToString("window.getComputedStyle(allInitial).getPropertyValue('scroll-padding')", "auto"); 215 215 shouldBeEqualToString("allInitial.style['scroll-snap-margin']", "initial"); 216 216 shouldBeEqualToString("window.getComputedStyle(allInitial).getPropertyValue('scroll-snap-margin')", "0px"); -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt
r268665 r272035 72 72 73 73 invalid scroll padding: `potato` 74 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is ' 0px'75 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is ' 0px'76 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is ' 0px'77 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is ' 0px'78 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is ' 0px'74 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is 'auto' 75 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is 'auto' 76 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is 'auto' 77 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is 'auto' 78 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is 'auto' 79 79 80 80 empty string: `` 81 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is ' 0px'82 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is ' 0px'83 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is ' 0px'84 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is ' 0px'85 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is ' 0px'81 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is 'auto' 82 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is 'auto' 83 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is 'auto' 84 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is 'auto' 85 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is 'auto' 86 86 87 87 too many values: `1px 2px 3px 4px 5px` 88 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is ' 0px'89 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is ' 0px'90 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is ' 0px'91 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is ' 0px'92 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is ' 0px'88 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is 'auto' 89 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is 'auto' 90 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is 'auto' 91 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is 'auto' 92 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is 'auto' 93 93 94 94 attempt to use auto: `auto auto` 95 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is ' 0px'96 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is ' 0px'97 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is ' 0px'98 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is ' 0px'99 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is ' 0px'95 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding') is 'auto' 96 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-top') is 'auto' 97 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-left') is 'auto' 98 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-right') is 'auto' 99 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is 'auto' 100 100 101 101 single length: `10px` … … 148 148 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-padding-bottom') is '10.4375px' 149 149 150 invalid scroll padding: `potato`150 invalid scroll margin: `potato` 151 151 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-snap-margin') is '0px' 152 152 PASS window.getComputedStyle(document.body).getPropertyValue('scroll-snap-margin-top') is '0px' -
trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js
r268665 r272035 51 51 // Test the scroll-padding property 52 52 // Invalid declarations 53 testComputedScrollSnapRule("invalid scroll padding", "scroll-padding", "potato", " 0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" });54 testComputedScrollSnapRule("empty string", "scroll-padding", "", " 0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" });55 testComputedScrollSnapRule("too many values", "scroll-padding", "1px 2px 3px 4px 5px", " 0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" });56 testComputedScrollSnapRule("attempt to use auto", "scroll-padding", "auto auto", " 0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" });53 testComputedScrollSnapRule("invalid scroll padding", "scroll-padding", "potato", "auto", { top: "auto", left: "auto", right: "auto", bottom: "auto" }); 54 testComputedScrollSnapRule("empty string", "scroll-padding", "", "auto", { top: "auto", left: "auto", right: "auto", bottom: "auto" }); 55 testComputedScrollSnapRule("too many values", "scroll-padding", "1px 2px 3px 4px 5px", "auto", { top: "auto", left: "auto", right: "auto", bottom: "auto" }); 56 testComputedScrollSnapRule("attempt to use auto", "scroll-padding", "auto auto", "auto", { top: "auto", left: "auto", right: "auto", bottom: "auto" }); 57 57 // Valid declarations 58 58 testComputedScrollSnapRule("single length", "scroll-padding", "10px", "10px", { top: "10px", left: "10px", right: "10px", bottom: "10px" }); … … 66 66 // Test the scroll-snap-margin property 67 67 // Invalid declarations 68 testComputedScrollSnapRule("invalid scroll padding", "scroll-snap-margin", "potato", "0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" });68 testComputedScrollSnapRule("invalid scroll margin", "scroll-snap-margin", "potato", "0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" }); 69 69 testComputedScrollSnapRule("empty string", "scroll-snap-margin", "", "0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" }); 70 70 testComputedScrollSnapRule("too many values", "scroll-snap-margin", "1px 2px 3px 4px 5px", "0px", { top: "0px", left: "0px", right: "0px", bottom: "0px" }); -
trunk/LayoutTests/imported/w3c/ChangeLog
r272007 r272035 1 2021-01-28 Martin Robinson <mrobinson@webkit.org> 2 3 Add support for logical variants of 'scroll-padding' and 'scroll-margin' 4 https://bugs.webkit.org/show_bug.cgi?id=220766 5 <rdar://problem/73661278> 6 7 Reviewed by Darin Adler. 8 9 Update test expectations for this change. 10 11 * web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: 12 * web-platform-tests/css/css-scroll-snap/inheritance-expected.txt: 13 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-computed-expected.txt: 14 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-shorthand-expected.txt: 15 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-valid-expected.txt: 16 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-computed-expected.txt: 17 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-shorthand-expected.txt: 18 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-valid-expected.txt: 19 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-computed-expected.txt: 20 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-invalid-expected.txt: 21 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-shorthand-expected.txt: 22 * web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-valid-expected.txt: 23 * web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: 24 1 25 2021-01-28 Manuel Rego Casasnovas <rego@igalia.com> 2 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
r271447 r272035 229 229 PASS scale 230 230 PASS scroll-behavior 231 PASS scroll-margin-block 231 232 PASS scroll-margin-bottom 233 PASS scroll-margin-inline 232 234 PASS scroll-margin-left 233 235 PASS scroll-margin-right 234 236 PASS scroll-margin-top 237 PASS scroll-padding-block 235 238 PASS scroll-padding-bottom 239 PASS scroll-padding-inline 236 240 PASS scroll-padding-left 237 241 PASS scroll-padding-right -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/inheritance-expected.txt
r268889 r272035 1 1 2 FAIL Property scroll-margin-block-end has initial value 0px assert_true: scroll-margin-block-end doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-margin-block-end does not inherit assert_true: expected true got false 4 FAIL Property scroll-margin-block-start has initial value 0px assert_true: scroll-margin-block-start doesn't seem to be supported in the computed style expected true got false 5 FAIL Property scroll-margin-block-start does not inherit assert_true: expected true got false 2 PASS Property scroll-margin-block-end has initial value 0px 3 PASS Property scroll-margin-block-end does not inherit 4 PASS Property scroll-margin-block-start has initial value 0px 5 PASS Property scroll-margin-block-start does not inherit 6 6 PASS Property scroll-margin-bottom has initial value 0px 7 7 PASS Property scroll-margin-bottom does not inherit 8 FAIL Property scroll-margin-inline-end has initial value 0px assert_true: scroll-margin-inline-end doesn't seem to be supported in the computed style expected true got false 9 FAIL Property scroll-margin-inline-end does not inherit assert_true: expected true got false 10 FAIL Property scroll-margin-inline-start has initial value 0px assert_true: scroll-margin-inline-start doesn't seem to be supported in the computed style expected true got false 11 FAIL Property scroll-margin-inline-start does not inherit assert_true: expected true got false 8 PASS Property scroll-margin-inline-end has initial value 0px 9 PASS Property scroll-margin-inline-end does not inherit 10 PASS Property scroll-margin-inline-start has initial value 0px 11 PASS Property scroll-margin-inline-start does not inherit 12 12 PASS Property scroll-margin-left has initial value 0px 13 13 PASS Property scroll-margin-left does not inherit … … 16 16 PASS Property scroll-margin-top has initial value 0px 17 17 PASS Property scroll-margin-top does not inherit 18 FAIL Property scroll-padding-block-end has initial value auto assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 19 FAIL Property scroll-padding-block-end does not inherit assert_true: expected true got false 20 FAIL Property scroll-padding-block-start has initial value auto assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 21 FAIL Property scroll-padding-block-start does not inherit assert_true: expected true got false 22 FAIL Property scroll-padding-bottom has initial value auto assert_equals: expected "auto" but got "0px" 18 PASS Property scroll-padding-block-end has initial value auto 19 PASS Property scroll-padding-block-end does not inherit 20 PASS Property scroll-padding-block-start has initial value auto 21 PASS Property scroll-padding-block-start does not inherit 22 PASS Property scroll-padding-bottom has initial value auto 23 23 PASS Property scroll-padding-bottom does not inherit 24 FAIL Property scroll-padding-inline-end has initial value auto assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 25 FAIL Property scroll-padding-inline-end does not inherit assert_true: expected true got false 26 FAIL Property scroll-padding-inline-start has initial value auto assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 27 FAIL Property scroll-padding-inline-start does not inherit assert_true: expected true got false 28 FAIL Property scroll-padding-left has initial value auto assert_equals: expected "auto" but got "0px" 24 PASS Property scroll-padding-inline-end has initial value auto 25 PASS Property scroll-padding-inline-end does not inherit 26 PASS Property scroll-padding-inline-start has initial value auto 27 PASS Property scroll-padding-inline-start does not inherit 28 PASS Property scroll-padding-left has initial value auto 29 29 PASS Property scroll-padding-left does not inherit 30 FAIL Property scroll-padding-right has initial value auto assert_equals: expected "auto" but got "0px" 30 PASS Property scroll-padding-right has initial value auto 31 31 PASS Property scroll-padding-right does not inherit 32 FAIL Property scroll-padding-top has initial value auto assert_equals: expected "auto" but got "0px" 32 PASS Property scroll-padding-top has initial value auto 33 33 PASS Property scroll-padding-top does not inherit 34 34 FAIL Property scroll-snap-align has initial value none assert_equals: expected "none" but got "none none" -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-computed-expected.txt
r268250 r272035 1 1 2 FAIL Property scroll-margin-block-start value '10px' assert_true: scroll-margin-block-start doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-margin-block-start value 'calc(10px - 0.5em)' assert_true: scroll-margin-block-start doesn't seem to be supported in the computed style expected true got false 4 FAIL Property scroll-margin-block-end value '10px' assert_true: scroll-margin-block-end doesn't seem to be supported in the computed style expected true got false 5 FAIL Property scroll-margin-block-end value 'calc(10px - 0.5em)' assert_true: scroll-margin-block-end doesn't seem to be supported in the computed style expected true got false 6 FAIL Property scroll-margin-inline-start value '10px' assert_true: scroll-margin-inline-start doesn't seem to be supported in the computed style expected true got false 7 FAIL Property scroll-margin-inline-start value 'calc(10px - 0.5em)' assert_true: scroll-margin-inline-start doesn't seem to be supported in the computed style expected true got false 8 FAIL Property scroll-margin-inline-end value '10px' assert_true: scroll-margin-inline-end doesn't seem to be supported in the computed style expected true got false 9 FAIL Property scroll-margin-inline-end value 'calc(10px - 0.5em)' assert_true: scroll-margin-inline-end doesn't seem to be supported in the computed style expected true got false 10 FAIL Property scroll-margin-block value '10px' assert_true: scroll-margin-block doesn't seem to be supported in the computed style expected true got false 11 FAIL Property scroll-margin-block value 'calc(10px - 0.5em)' assert_true: scroll-margin-block doesn't seem to be supported in the computed style expected true got false 12 FAIL Property scroll-margin-block value '1px 2px' assert_true: scroll-margin-block doesn't seem to be supported in the computed style expected true got false 13 FAIL Property scroll-margin-inline value '10px' assert_true: scroll-margin-inline doesn't seem to be supported in the computed style expected true got false 14 FAIL Property scroll-margin-inline value 'calc(10px - 0.5em)' assert_true: scroll-margin-inline doesn't seem to be supported in the computed style expected true got false 15 FAIL Property scroll-margin-inline value '1px 2px' assert_true: scroll-margin-inline doesn't seem to be supported in the computed style expected true got false 2 PASS Property scroll-margin-block-start value '10px' 3 PASS Property scroll-margin-block-start value 'calc(10px - 0.5em)' 4 PASS Property scroll-margin-block-end value '10px' 5 PASS Property scroll-margin-block-end value 'calc(10px - 0.5em)' 6 PASS Property scroll-margin-inline-start value '10px' 7 PASS Property scroll-margin-inline-start value 'calc(10px - 0.5em)' 8 PASS Property scroll-margin-inline-end value '10px' 9 PASS Property scroll-margin-inline-end value 'calc(10px - 0.5em)' 10 PASS Property scroll-margin-block value '10px' 11 PASS Property scroll-margin-block value 'calc(10px - 0.5em)' 12 PASS Property scroll-margin-block value '1px 2px' 13 PASS Property scroll-margin-inline value '10px' 14 PASS Property scroll-margin-inline value 'calc(10px - 0.5em)' 15 PASS Property scroll-margin-inline value '1px 2px' 16 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-shorthand-expected.txt
r268250 r272035 1 1 2 FAIL e.style['scroll-margin-block'] = "10px 20px" should set scroll-margin-block-end assert_equals: scroll-margin-block-end should be canonical expected (string) "20px" but got (undefined) undefined3 FAIL e.style['scroll-margin-block'] = "10px 20px" should set scroll-margin-block-start assert_equals: scroll-margin-block-start should be canonical expected (string) "10px" but got (undefined) undefined 4 FAIL e.style['scroll-margin-block'] = "10px 20px" should not set unrelated longhands assert_true: expected true got false 5 FAIL e.style['scroll-margin-block'] = "30px" should set scroll-margin-block-end assert_equals: scroll-margin-block-end should be canonical expected (string) "30px" but got (undefined) undefined6 FAIL e.style['scroll-margin-block'] = "30px" should set scroll-margin-block-start assert_equals: scroll-margin-block-start should be canonical expected (string) "30px" but got (undefined) undefined 7 FAIL e.style['scroll-margin-block'] = "30px" should not set unrelated longhands assert_true: expected true got false 8 FAIL e.style['scroll-margin-inline'] = "50px 60px" should set scroll-margin-inline-end assert_equals: scroll-margin-inline-end should be canonical expected (string) "60px" but got (undefined) undefined9 FAIL e.style['scroll-margin-inline'] = "50px 60px" should set scroll-margin-inline-start assert_equals: scroll-margin-inline-start should be canonical expected (string) "50px" but got (undefined) undefined 10 FAIL e.style['scroll-margin-inline'] = "50px 60px" should not set unrelated longhands assert_true: expected true got false 11 FAIL e.style['scroll-margin-inline'] = "-40px" should set scroll-margin-inline-end assert_equals: scroll-margin-inline-end should be canonical expected (string) "-40px" but got (undefined) undefined12 FAIL e.style['scroll-margin-inline'] = "-40px" should set scroll-margin-inline-start assert_equals: scroll-margin-inline-start should be canonical expected (string) "-40px" but got (undefined) undefined 13 FAIL e.style['scroll-margin-inline'] = "-40px" should not set unrelated longhands assert_true: expected true got false 2 PASS e.style['scroll-margin-block'] = "10px 20px" should set scroll-margin-block-end 3 PASS e.style['scroll-margin-block'] = "10px 20px" should set scroll-margin-block-start 4 PASS e.style['scroll-margin-block'] = "10px 20px" should not set unrelated longhands 5 PASS e.style['scroll-margin-block'] = "30px" should set scroll-margin-block-end 6 PASS e.style['scroll-margin-block'] = "30px" should set scroll-margin-block-start 7 PASS e.style['scroll-margin-block'] = "30px" should not set unrelated longhands 8 PASS e.style['scroll-margin-inline'] = "50px 60px" should set scroll-margin-inline-end 9 PASS e.style['scroll-margin-inline'] = "50px 60px" should set scroll-margin-inline-start 10 PASS e.style['scroll-margin-inline'] = "50px 60px" should not set unrelated longhands 11 PASS e.style['scroll-margin-inline'] = "-40px" should set scroll-margin-inline-end 12 PASS e.style['scroll-margin-inline'] = "-40px" should set scroll-margin-inline-start 13 PASS e.style['scroll-margin-inline'] = "-40px" should not set unrelated longhands 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-block-inline-valid-expected.txt
r268250 r272035 1 1 2 FAIL e.style['scroll-margin-block-start'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 3 FAIL e.style['scroll-margin-block-start'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 4 FAIL e.style['scroll-margin-block-end'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 5 FAIL e.style['scroll-margin-block-end'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 6 FAIL e.style['scroll-margin-inline-start'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 7 FAIL e.style['scroll-margin-inline-start'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 8 FAIL e.style['scroll-margin-inline-end'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 9 FAIL e.style['scroll-margin-inline-end'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 10 FAIL e.style['scroll-margin-block'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 11 FAIL e.style['scroll-margin-block'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 12 FAIL e.style['scroll-margin-block'] = "1px 2px" should set the property value assert_not_equals: property should be set got disallowed value "" 13 FAIL e.style['scroll-margin-inline'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 14 FAIL e.style['scroll-margin-inline'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 15 FAIL e.style['scroll-margin-inline'] = "1px 2px" should set the property value assert_not_equals: property should be set got disallowed value "" 2 PASS e.style['scroll-margin-block-start'] = "-10px" should set the property value 3 PASS e.style['scroll-margin-block-start'] = "calc(2em + 3ex)" should set the property value 4 PASS e.style['scroll-margin-block-end'] = "-10px" should set the property value 5 PASS e.style['scroll-margin-block-end'] = "calc(2em + 3ex)" should set the property value 6 PASS e.style['scroll-margin-inline-start'] = "-10px" should set the property value 7 PASS e.style['scroll-margin-inline-start'] = "calc(2em + 3ex)" should set the property value 8 PASS e.style['scroll-margin-inline-end'] = "-10px" should set the property value 9 PASS e.style['scroll-margin-inline-end'] = "calc(2em + 3ex)" should set the property value 10 PASS e.style['scroll-margin-block'] = "-10px" should set the property value 11 PASS e.style['scroll-margin-block'] = "calc(2em + 3ex)" should set the property value 12 PASS e.style['scroll-margin-block'] = "1px 2px" should set the property value 13 PASS e.style['scroll-margin-inline'] = "-10px" should set the property value 14 PASS e.style['scroll-margin-inline'] = "calc(2em + 3ex)" should set the property value 15 PASS e.style['scroll-margin-inline'] = "1px 2px" should set the property value 16 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-computed-expected.txt
r268250 r272035 1 1 2 FAIL Property scroll-padding-block-start value 'auto' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-padding-block-start value '10px' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 4 FAIL Property scroll-padding-block-start value '20%' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 5 FAIL Property scroll-padding-block-start value 'calc(10px + 0.5em)' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 6 FAIL Property scroll-padding-block-start value 'calc(10px - 0.5em)' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 7 FAIL Property scroll-padding-block-start value 'calc(50% + 60px)' assert_true: scroll-padding-block-start doesn't seem to be supported in the computed style expected true got false 8 FAIL Property scroll-padding-block-end value 'auto' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 9 FAIL Property scroll-padding-block-end value '10px' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 10 FAIL Property scroll-padding-block-end value '20%' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 11 FAIL Property scroll-padding-block-end value 'calc(10px + 0.5em)' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 12 FAIL Property scroll-padding-block-end value 'calc(10px - 0.5em)' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 13 FAIL Property scroll-padding-block-end value 'calc(50% + 60px)' assert_true: scroll-padding-block-end doesn't seem to be supported in the computed style expected true got false 14 FAIL Property scroll-padding-inline-start value 'auto' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 15 FAIL Property scroll-padding-inline-start value '10px' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 16 FAIL Property scroll-padding-inline-start value '20%' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 17 FAIL Property scroll-padding-inline-start value 'calc(10px + 0.5em)' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 18 FAIL Property scroll-padding-inline-start value 'calc(10px - 0.5em)' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 19 FAIL Property scroll-padding-inline-start value 'calc(50% + 60px)' assert_true: scroll-padding-inline-start doesn't seem to be supported in the computed style expected true got false 20 FAIL Property scroll-padding-inline-end value 'auto' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 21 FAIL Property scroll-padding-inline-end value '10px' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 22 FAIL Property scroll-padding-inline-end value '20%' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 23 FAIL Property scroll-padding-inline-end value 'calc(10px + 0.5em)' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 24 FAIL Property scroll-padding-inline-end value 'calc(10px - 0.5em)' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 25 FAIL Property scroll-padding-inline-end value 'calc(50% + 60px)' assert_true: scroll-padding-inline-end doesn't seem to be supported in the computed style expected true got false 26 FAIL Property scroll-padding-block value 'auto' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 27 FAIL Property scroll-padding-block value '10px' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 28 FAIL Property scroll-padding-block value '20%' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 29 FAIL Property scroll-padding-block value 'calc(10px + 0.5em)' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 30 FAIL Property scroll-padding-block value 'calc(10px - 0.5em)' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 31 FAIL Property scroll-padding-block value 'calc(50% + 60px)' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 32 FAIL Property scroll-padding-block value '1px 2px' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 33 FAIL Property scroll-padding-block value '1px auto' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 34 FAIL Property scroll-padding-block value 'auto auto' assert_true: scroll-padding-block doesn't seem to be supported in the computed style expected true got false 35 FAIL Property scroll-padding-inline value 'auto' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 36 FAIL Property scroll-padding-inline value '10px' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 37 FAIL Property scroll-padding-inline value '20%' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 38 FAIL Property scroll-padding-inline value 'calc(10px + 0.5em)' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 39 FAIL Property scroll-padding-inline value 'calc(10px - 0.5em)' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 40 FAIL Property scroll-padding-inline value 'calc(50% + 60px)' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 41 FAIL Property scroll-padding-inline value '1px 2px' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 42 FAIL Property scroll-padding-inline value '1px auto' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 43 FAIL Property scroll-padding-inline value 'auto auto' assert_true: scroll-padding-inline doesn't seem to be supported in the computed style expected true got false 2 PASS Property scroll-padding-block-start value 'auto' 3 PASS Property scroll-padding-block-start value '10px' 4 PASS Property scroll-padding-block-start value '20%' 5 PASS Property scroll-padding-block-start value 'calc(10px + 0.5em)' 6 PASS Property scroll-padding-block-start value 'calc(10px - 0.5em)' 7 PASS Property scroll-padding-block-start value 'calc(50% + 60px)' 8 PASS Property scroll-padding-block-end value 'auto' 9 PASS Property scroll-padding-block-end value '10px' 10 PASS Property scroll-padding-block-end value '20%' 11 PASS Property scroll-padding-block-end value 'calc(10px + 0.5em)' 12 PASS Property scroll-padding-block-end value 'calc(10px - 0.5em)' 13 PASS Property scroll-padding-block-end value 'calc(50% + 60px)' 14 PASS Property scroll-padding-inline-start value 'auto' 15 PASS Property scroll-padding-inline-start value '10px' 16 PASS Property scroll-padding-inline-start value '20%' 17 PASS Property scroll-padding-inline-start value 'calc(10px + 0.5em)' 18 PASS Property scroll-padding-inline-start value 'calc(10px - 0.5em)' 19 PASS Property scroll-padding-inline-start value 'calc(50% + 60px)' 20 PASS Property scroll-padding-inline-end value 'auto' 21 PASS Property scroll-padding-inline-end value '10px' 22 PASS Property scroll-padding-inline-end value '20%' 23 PASS Property scroll-padding-inline-end value 'calc(10px + 0.5em)' 24 PASS Property scroll-padding-inline-end value 'calc(10px - 0.5em)' 25 PASS Property scroll-padding-inline-end value 'calc(50% + 60px)' 26 PASS Property scroll-padding-block value 'auto' 27 PASS Property scroll-padding-block value '10px' 28 PASS Property scroll-padding-block value '20%' 29 PASS Property scroll-padding-block value 'calc(10px + 0.5em)' 30 PASS Property scroll-padding-block value 'calc(10px - 0.5em)' 31 PASS Property scroll-padding-block value 'calc(50% + 60px)' 32 PASS Property scroll-padding-block value '1px 2px' 33 PASS Property scroll-padding-block value '1px auto' 34 PASS Property scroll-padding-block value 'auto auto' 35 PASS Property scroll-padding-inline value 'auto' 36 PASS Property scroll-padding-inline value '10px' 37 PASS Property scroll-padding-inline value '20%' 38 PASS Property scroll-padding-inline value 'calc(10px + 0.5em)' 39 PASS Property scroll-padding-inline value 'calc(10px - 0.5em)' 40 PASS Property scroll-padding-inline value 'calc(50% + 60px)' 41 PASS Property scroll-padding-inline value '1px 2px' 42 PASS Property scroll-padding-inline value '1px auto' 43 PASS Property scroll-padding-inline value 'auto auto' 44 44 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-shorthand-expected.txt
r268250 r272035 1 1 2 FAIL e.style['scroll-padding-block'] = "auto 10px" should set scroll-padding-block-end assert_equals: scroll-padding-block-end should be canonical expected (string) "10px" but got (undefined) undefined3 FAIL e.style['scroll-padding-block'] = "auto 10px" should set scroll-padding-block-start assert_equals: scroll-padding-block-start should be canonical expected (string) "auto" but got (undefined) undefined 4 FAIL e.style['scroll-padding-block'] = "auto 10px" should not set unrelated longhands assert_true: expected true got false 5 FAIL e.style['scroll-padding-block'] = "20%" should set scroll-padding-block-end assert_equals: scroll-padding-block-end should be canonical expected (string) "20%" but got (undefined) undefined6 FAIL e.style['scroll-padding-block'] = "20%" should set scroll-padding-block-start assert_equals: scroll-padding-block-start should be canonical expected (string) "20%" but got (undefined) undefined 7 FAIL e.style['scroll-padding-block'] = "20%" should not set unrelated longhands assert_true: expected true got false 8 FAIL e.style['scroll-padding-inline'] = "10px auto" should set scroll-padding-inline-end assert_equals: scroll-padding-inline-end should be canonical expected (string) "auto" but got (undefined) undefined9 FAIL e.style['scroll-padding-inline'] = "10px auto" should set scroll-padding-inline-start assert_equals: scroll-padding-inline-start should be canonical expected (string) "10px" but got (undefined) undefined 10 FAIL e.style['scroll-padding-inline'] = "10px auto" should not set unrelated longhands assert_true: expected true got false 11 FAIL e.style['scroll-padding-inline'] = "0%" should set scroll-padding-inline-end assert_equals: scroll-padding-inline-end should be canonical expected (string) "0%" but got (undefined) undefined12 FAIL e.style['scroll-padding-inline'] = "0%" should set scroll-padding-inline-start assert_equals: scroll-padding-inline-start should be canonical expected (string) "0%" but got (undefined) undefined 13 FAIL e.style['scroll-padding-inline'] = "0%" should not set unrelated longhands assert_true: expected true got false 2 PASS e.style['scroll-padding-block'] = "auto 10px" should set scroll-padding-block-end 3 PASS e.style['scroll-padding-block'] = "auto 10px" should set scroll-padding-block-start 4 PASS e.style['scroll-padding-block'] = "auto 10px" should not set unrelated longhands 5 PASS e.style['scroll-padding-block'] = "20%" should set scroll-padding-block-end 6 PASS e.style['scroll-padding-block'] = "20%" should set scroll-padding-block-start 7 PASS e.style['scroll-padding-block'] = "20%" should not set unrelated longhands 8 PASS e.style['scroll-padding-inline'] = "10px auto" should set scroll-padding-inline-end 9 PASS e.style['scroll-padding-inline'] = "10px auto" should set scroll-padding-inline-start 10 PASS e.style['scroll-padding-inline'] = "10px auto" should not set unrelated longhands 11 PASS e.style['scroll-padding-inline'] = "0%" should set scroll-padding-inline-end 12 PASS e.style['scroll-padding-inline'] = "0%" should set scroll-padding-inline-start 13 PASS e.style['scroll-padding-inline'] = "0%" should not set unrelated longhands 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-block-inline-valid-expected.txt
r268250 r272035 1 1 2 FAIL e.style['scroll-padding-block-start'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 3 FAIL e.style['scroll-padding-block-start'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 4 FAIL e.style['scroll-padding-block-start'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 5 FAIL e.style['scroll-padding-block-start'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 6 FAIL e.style['scroll-padding-block-start'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 7 FAIL e.style['scroll-padding-block-end'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 8 FAIL e.style['scroll-padding-block-end'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 9 FAIL e.style['scroll-padding-block-end'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 10 FAIL e.style['scroll-padding-block-end'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 11 FAIL e.style['scroll-padding-block-end'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 12 FAIL e.style['scroll-padding-inline-start'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 13 FAIL e.style['scroll-padding-inline-start'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 14 FAIL e.style['scroll-padding-inline-start'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 15 FAIL e.style['scroll-padding-inline-start'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 16 FAIL e.style['scroll-padding-inline-start'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 17 FAIL e.style['scroll-padding-inline-end'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 18 FAIL e.style['scroll-padding-inline-end'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 19 FAIL e.style['scroll-padding-inline-end'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 20 FAIL e.style['scroll-padding-inline-end'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 21 FAIL e.style['scroll-padding-inline-end'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 22 FAIL e.style['scroll-padding-block'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 23 FAIL e.style['scroll-padding-block'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 24 FAIL e.style['scroll-padding-block'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 25 FAIL e.style['scroll-padding-block'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 26 FAIL e.style['scroll-padding-block'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 27 FAIL e.style['scroll-padding-block'] = "1px 2px" should set the property value assert_not_equals: property should be set got disallowed value "" 28 FAIL e.style['scroll-padding-block'] = "1px auto" should set the property value assert_not_equals: property should be set got disallowed value "" 29 FAIL e.style['scroll-padding-block'] = "auto auto" should set the property value assert_not_equals: property should be set got disallowed value "" 30 FAIL e.style['scroll-padding-inline'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 31 FAIL e.style['scroll-padding-inline'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value "" 32 FAIL e.style['scroll-padding-inline'] = "20%" should set the property value assert_not_equals: property should be set got disallowed value "" 33 FAIL e.style['scroll-padding-inline'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 34 FAIL e.style['scroll-padding-inline'] = "calc(50% + 60px)" should set the property value assert_not_equals: property should be set got disallowed value "" 35 FAIL e.style['scroll-padding-inline'] = "1px 2px" should set the property value assert_not_equals: property should be set got disallowed value "" 36 FAIL e.style['scroll-padding-inline'] = "1px auto" should set the property value assert_not_equals: property should be set got disallowed value "" 37 FAIL e.style['scroll-padding-inline'] = "auto auto" should set the property value assert_not_equals: property should be set got disallowed value "" 2 PASS e.style['scroll-padding-block-start'] = "auto" should set the property value 3 PASS e.style['scroll-padding-block-start'] = "10px" should set the property value 4 PASS e.style['scroll-padding-block-start'] = "20%" should set the property value 5 PASS e.style['scroll-padding-block-start'] = "calc(2em + 3ex)" should set the property value 6 PASS e.style['scroll-padding-block-start'] = "calc(50% + 60px)" should set the property value 7 PASS e.style['scroll-padding-block-end'] = "auto" should set the property value 8 PASS e.style['scroll-padding-block-end'] = "10px" should set the property value 9 PASS e.style['scroll-padding-block-end'] = "20%" should set the property value 10 PASS e.style['scroll-padding-block-end'] = "calc(2em + 3ex)" should set the property value 11 PASS e.style['scroll-padding-block-end'] = "calc(50% + 60px)" should set the property value 12 PASS e.style['scroll-padding-inline-start'] = "auto" should set the property value 13 PASS e.style['scroll-padding-inline-start'] = "10px" should set the property value 14 PASS e.style['scroll-padding-inline-start'] = "20%" should set the property value 15 PASS e.style['scroll-padding-inline-start'] = "calc(2em + 3ex)" should set the property value 16 PASS e.style['scroll-padding-inline-start'] = "calc(50% + 60px)" should set the property value 17 PASS e.style['scroll-padding-inline-end'] = "auto" should set the property value 18 PASS e.style['scroll-padding-inline-end'] = "10px" should set the property value 19 PASS e.style['scroll-padding-inline-end'] = "20%" should set the property value 20 PASS e.style['scroll-padding-inline-end'] = "calc(2em + 3ex)" should set the property value 21 PASS e.style['scroll-padding-inline-end'] = "calc(50% + 60px)" should set the property value 22 PASS e.style['scroll-padding-block'] = "auto" should set the property value 23 PASS e.style['scroll-padding-block'] = "10px" should set the property value 24 PASS e.style['scroll-padding-block'] = "20%" should set the property value 25 PASS e.style['scroll-padding-block'] = "calc(2em + 3ex)" should set the property value 26 PASS e.style['scroll-padding-block'] = "calc(50% + 60px)" should set the property value 27 PASS e.style['scroll-padding-block'] = "1px 2px" should set the property value 28 PASS e.style['scroll-padding-block'] = "1px auto" should set the property value 29 PASS e.style['scroll-padding-block'] = "auto auto" should set the property value 30 PASS e.style['scroll-padding-inline'] = "auto" should set the property value 31 PASS e.style['scroll-padding-inline'] = "10px" should set the property value 32 PASS e.style['scroll-padding-inline'] = "20%" should set the property value 33 PASS e.style['scroll-padding-inline'] = "calc(2em + 3ex)" should set the property value 34 PASS e.style['scroll-padding-inline'] = "calc(50% + 60px)" should set the property value 35 PASS e.style['scroll-padding-inline'] = "1px 2px" should set the property value 36 PASS e.style['scroll-padding-inline'] = "1px auto" should set the property value 37 PASS e.style['scroll-padding-inline'] = "auto auto" should set the property value 38 38 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-computed-expected.txt
r268250 r272035 1 1 2 FAIL Property scroll-padding-top value 'auto' assert_true: 'auto' is a supported value for scroll-padding-top. expected true got false 2 PASS Property scroll-padding-top value 'auto' 3 3 PASS Property scroll-padding-top value '0' 4 4 PASS Property scroll-padding-top value '10px' 5 5 PASS Property scroll-padding-top value '20%' 6 6 PASS Property scroll-padding-top value 'calc(10px + 0.5em)' 7 FAIL Property scroll-padding-top value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "-10px" 7 PASS Property scroll-padding-top value 'calc(10px - 0.5em)' 8 8 PASS Property scroll-padding-top value 'calc(50% + 60px)' 9 FAIL Property scroll-padding-right value 'auto' assert_true: 'auto' is a supported value for scroll-padding-right. expected true got false 9 PASS Property scroll-padding-right value 'auto' 10 10 PASS Property scroll-padding-right value '0' 11 11 PASS Property scroll-padding-right value '10px' 12 12 PASS Property scroll-padding-right value '20%' 13 13 PASS Property scroll-padding-right value 'calc(10px + 0.5em)' 14 FAIL Property scroll-padding-right value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "-10px" 14 PASS Property scroll-padding-right value 'calc(10px - 0.5em)' 15 15 PASS Property scroll-padding-right value 'calc(50% + 60px)' 16 FAIL Property scroll-padding-bottom value 'auto' assert_true: 'auto' is a supported value for scroll-padding-bottom. expected true got false 16 PASS Property scroll-padding-bottom value 'auto' 17 17 PASS Property scroll-padding-bottom value '0' 18 18 PASS Property scroll-padding-bottom value '10px' 19 19 PASS Property scroll-padding-bottom value '20%' 20 20 PASS Property scroll-padding-bottom value 'calc(10px + 0.5em)' 21 FAIL Property scroll-padding-bottom value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "-10px" 21 PASS Property scroll-padding-bottom value 'calc(10px - 0.5em)' 22 22 PASS Property scroll-padding-bottom value 'calc(50% + 60px)' 23 FAIL Property scroll-padding-left value 'auto' assert_true: 'auto' is a supported value for scroll-padding-left. expected true got false 23 PASS Property scroll-padding-left value 'auto' 24 24 PASS Property scroll-padding-left value '0' 25 25 PASS Property scroll-padding-left value '10px' 26 26 PASS Property scroll-padding-left value '20%' 27 27 PASS Property scroll-padding-left value 'calc(10px + 0.5em)' 28 FAIL Property scroll-padding-left value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "-10px" 28 PASS Property scroll-padding-left value 'calc(10px - 0.5em)' 29 29 PASS Property scroll-padding-left value 'calc(50% + 60px)' 30 FAIL Property scroll-padding value 'auto' assert_true: 'auto' is a supported value for scroll-padding. expected true got false 30 PASS Property scroll-padding value 'auto' 31 31 PASS Property scroll-padding value '10px' 32 32 PASS Property scroll-padding value '0' 33 33 PASS Property scroll-padding value '20%' 34 34 PASS Property scroll-padding value 'calc(10px + 0.5em)' 35 FAIL Property scroll-padding value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "-10px" 35 PASS Property scroll-padding value 'calc(10px - 0.5em)' 36 36 PASS Property scroll-padding value '1px 2px' 37 37 PASS Property scroll-padding value '1px 2px 3%' 38 38 PASS Property scroll-padding value '1px 2px 3% 4px' 39 FAIL Property scroll-padding value '1px auto' assert_true: '1px auto' is a supported value for scroll-padding. expected true got false 39 PASS Property scroll-padding value '1px auto' 40 40 PASS Property scroll-padding value '0 0 0 0' 41 FAIL Property scroll-padding value 'auto auto auto auto' assert_true: 'auto auto auto auto' is a supported value for scroll-padding. expected true got false 41 PASS Property scroll-padding value 'auto auto auto auto' 42 42 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-invalid-expected.txt
r268250 r272035 1 1 2 2 PASS e.style['scroll-padding-top'] = "20" should not set the property value 3 FAIL e.style['scroll-padding-top'] = "-20px" should not set the property value assert_equals: expected "" but got "-20px" 3 PASS e.style['scroll-padding-top'] = "-20px" should not set the property value 4 4 PASS e.style['scroll-padding-top'] = "none" should not set the property value 5 5 PASS e.style['scroll-padding-top'] = "10px 20%" should not set the property value 6 6 PASS e.style['scroll-padding-top'] = "fit-content" should not set the property value 7 7 PASS e.style['scroll-padding-right'] = "20" should not set the property value 8 FAIL e.style['scroll-padding-right'] = "-20px" should not set the property value assert_equals: expected "" but got "-20px" 8 PASS e.style['scroll-padding-right'] = "-20px" should not set the property value 9 9 PASS e.style['scroll-padding-right'] = "none" should not set the property value 10 10 PASS e.style['scroll-padding-right'] = "10px 20%" should not set the property value 11 11 PASS e.style['scroll-padding-right'] = "max-content" should not set the property value 12 12 PASS e.style['scroll-padding-bottom'] = "20" should not set the property value 13 FAIL e.style['scroll-padding-bottom'] = "-20px" should not set the property value assert_equals: expected "" but got "-20px" 13 PASS e.style['scroll-padding-bottom'] = "-20px" should not set the property value 14 14 PASS e.style['scroll-padding-bottom'] = "none" should not set the property value 15 15 PASS e.style['scroll-padding-bottom'] = "10px 20%" should not set the property value 16 16 PASS e.style['scroll-padding-bottom'] = "min-content" should not set the property value 17 17 PASS e.style['scroll-padding-left'] = "20" should not set the property value 18 FAIL e.style['scroll-padding-left'] = "-20px" should not set the property value assert_equals: expected "" but got "-20px" 18 PASS e.style['scroll-padding-left'] = "-20px" should not set the property value 19 19 PASS e.style['scroll-padding-left'] = "none" should not set the property value 20 20 PASS e.style['scroll-padding-left'] = "10px 20%" should not set the property value 21 21 PASS e.style['scroll-padding-left'] = "fit-content" should not set the property value 22 22 PASS e.style['scroll-padding'] = "20" should not set the property value 23 FAIL e.style['scroll-padding'] = "-20px" should not set the property value assert_equals: expected "" but got "-20px" 23 PASS e.style['scroll-padding'] = "-20px" should not set the property value 24 24 PASS e.style['scroll-padding'] = "none" should not set the property value 25 25 PASS e.style['scroll-padding'] = "calc(auto)" should not set the property value -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-shorthand-expected.txt
r268250 r272035 5 5 PASS e.style['scroll-padding'] = "10px" should set scroll-padding-top 6 6 PASS e.style['scroll-padding'] = "10px" should not set unrelated longhands 7 FAIL e.style['scroll-padding'] = "auto 20px" should set scroll-padding-bottom assert_equals: scroll-padding-bottom should be canonical expected "auto" but got "" 8 FAIL e.style['scroll-padding'] = "auto 20px" should set scroll-padding-left assert_equals: scroll-padding-left should be canonical expected "20px" but got "" 9 FAIL e.style['scroll-padding'] = "auto 20px" should set scroll-padding-right assert_equals: scroll-padding-right should be canonical expected "20px" but got "" 10 FAIL e.style['scroll-padding'] = "auto 20px" should set scroll-padding-top assert_equals: scroll-padding-top should be canonical expected "auto" but got "" 11 FAIL e.style['scroll-padding'] = "auto 20px" should not set unrelated longhands assert_true: expected true got false 7 PASS e.style['scroll-padding'] = "auto 20px" should set scroll-padding-bottom 8 PASS e.style['scroll-padding'] = "auto 20px" should set scroll-padding-left 9 PASS e.style['scroll-padding'] = "auto 20px" should set scroll-padding-right 10 PASS e.style['scroll-padding'] = "auto 20px" should set scroll-padding-top 11 PASS e.style['scroll-padding'] = "auto 20px" should not set unrelated longhands 12 12 PASS e.style['scroll-padding'] = "1px 2px 3px" should set scroll-padding-bottom 13 13 PASS e.style['scroll-padding'] = "1px 2px 3px" should set scroll-padding-left -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-padding-valid-expected.txt
r268250 r272035 1 1 2 FAIL e.style['scroll-padding-top'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 2 PASS e.style['scroll-padding-top'] = "auto" should set the property value 3 3 PASS e.style['scroll-padding-top'] = "0" should set the property value 4 4 PASS e.style['scroll-padding-top'] = "10px" should set the property value … … 6 6 PASS e.style['scroll-padding-top'] = "calc(2em + 3ex)" should set the property value 7 7 PASS e.style['scroll-padding-top'] = "calc(50% + 60px)" should set the property value 8 FAIL e.style['scroll-padding-right'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 8 PASS e.style['scroll-padding-right'] = "auto" should set the property value 9 9 PASS e.style['scroll-padding-right'] = "0" should set the property value 10 10 PASS e.style['scroll-padding-right'] = "10px" should set the property value … … 12 12 PASS e.style['scroll-padding-right'] = "calc(2em + 3ex)" should set the property value 13 13 PASS e.style['scroll-padding-right'] = "calc(50% + 60px)" should set the property value 14 FAIL e.style['scroll-padding-bottom'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 14 PASS e.style['scroll-padding-bottom'] = "auto" should set the property value 15 15 PASS e.style['scroll-padding-bottom'] = "0" should set the property value 16 16 PASS e.style['scroll-padding-bottom'] = "10px" should set the property value … … 18 18 PASS e.style['scroll-padding-bottom'] = "calc(2em + 3ex)" should set the property value 19 19 PASS e.style['scroll-padding-bottom'] = "calc(50% + 60px)" should set the property value 20 FAIL e.style['scroll-padding-left'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 20 PASS e.style['scroll-padding-left'] = "auto" should set the property value 21 21 PASS e.style['scroll-padding-left'] = "0" should set the property value 22 22 PASS e.style['scroll-padding-left'] = "10px" should set the property value … … 24 24 PASS e.style['scroll-padding-left'] = "calc(2em + 3ex)" should set the property value 25 25 PASS e.style['scroll-padding-left'] = "calc(50% + 60px)" should set the property value 26 FAIL e.style['scroll-padding'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 26 PASS e.style['scroll-padding'] = "auto" should set the property value 27 27 PASS e.style['scroll-padding'] = "10px" should set the property value 28 28 PASS e.style['scroll-padding'] = "0" should set the property value … … 32 32 PASS e.style['scroll-padding'] = "1px 2px 3%" should set the property value 33 33 PASS e.style['scroll-padding'] = "1px 2px 3% 4px" should set the property value 34 FAIL e.style['scroll-padding'] = "1px auto" should set the property value assert_not_equals: property should be set got disallowed value "" 34 PASS e.style['scroll-padding'] = "1px auto" should set the property value 35 35 PASS e.style['scroll-padding'] = "0 0 0 0" should set the property value 36 FAIL e.style['scroll-padding'] = "auto auto auto auto" should set the property value assert_not_equals: property should be set got disallowed value "" 36 PASS e.style['scroll-padding'] = "auto auto auto auto" should set the property value 37 37 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt
r271447 r272035 8 8 PASS whitespaces in value 9 9 PASS invalid property does not appear 10 FAIL cssText on computed style declaration returns the empty string assert_equals: cssText is empty expected "" but got "align-content: normal; align-items: normal; align-self: auto; alignment-baseline: auto; all: ; alt: \"\"; animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; aspect-ratio: auto; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; baseline-shift: baseline; block-size: 0px; border-block-end-color: rgb(255, 0, 0); border-block-end-style: none; border-block-end-width: 0px; border-block-start-color: rgb(255, 0, 0); border-block-start-style: none; border-block-start-width: 0px; border-bottom-color: rgb(255, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-end-end-radius: 0px; border-end-start-radius: 0px; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-inline-end-color: rgb(255, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(255, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(255, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(255, 0, 0); border-right-style: none; border-right-width: 0px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-color: rgb(255, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; break-after: auto; break-before: auto; break-inside: auto; buffered-rendering: auto; caption-side: top; caret-color: rgb(255, 0, 0); clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: rgb(255, 0, 0); color-interpolation: sRGB; color-interpolation-filters: linearRGB; color-rendering: auto; color-scheme: auto; column-count: auto; column-fill: balance; column-gap: normal; column-rule-color: rgb(255, 0, 0); column-rule-style: none; column-rule-width: 0px; column-span: none; column-width: auto; content: ; counter-increment: none; counter-reset: none; cursor: auto; cx: 0px; cy: 0px; direction: ltr; display: block; dominant-baseline: auto; empty-cells: show; fill: rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; filter: none; flex-basis: auto; flex-direction: row; flex-grow: 0; flex-shrink: 1; flex-wrap: nowrap; float: none; flood-color: rgb(0, 0, 0); flood-opacity: 1; font-family: -webkit-standard; font-feature-settings: normal; font-optical-sizing: auto; font-size: 13.333333015441895px; font-stretch: normal; font-style: normal; font-synthesis: style weight small-caps; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; glyph-orientation-horizontal: 0deg; glyph-orientation-vertical: auto; grid-auto-columns: auto; grid-auto-flow: row; grid-auto-rows: auto; grid-column-end: auto; grid-column-start: auto; grid-row-end: auto; grid-row-start: auto; grid-template-areas: none; grid-template-columns: none; grid-template-rows: none; hanging-punctuation: none; height: 0px; image-orientation: from-image; image-rendering: auto; inline-size: 784px; inset-block-end: auto; inset-block-start: auto; inset-inline-end: auto; inset-inline-start: auto; isolation: auto; justify-content: normal; justify-items: normal; justify-self: auto; kerning: 0; left: auto; letter-spacing: normal; lighting-color: rgb(255, 255, 255); line-break: auto; line-height: normal; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; marker-end: none; marker-mid: none; marker-start: none; mask: none; mask-type: luminance; math-style: normal; max-block-size: none; max-height: none; max-inline-size: none; max-width: none; min-block-size: 0px; min-height: 0px; min-inline-size: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; opacity: 1; order: 0; orphans: auto; outline-color: rgb(255, 0, 0); outline-offset: 0px; outline-style: none; outline-width: 0px; overflow-wrap: normal; overflow-x: visible; overflow-y: visible; overscroll-behavior-x: auto; overscroll-behavior-y: auto; padding-block-end: 0px; padding-block-start: 0px; padding-bottom: 0px; padding-inline-end: 0px; padding-inline-start: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; page-break-after: auto; page-break-before: auto; page-break-inside: auto; paint-order: normal; perspective: none; perspective-origin-x: ; perspective-origin-y: ; pointer-events: auto; position: static; quotes: auto; r: 0px; resize: none; right: auto; rotate: none; row-gap: normal; rx: auto; ry: auto; scale: none; scroll-behavior: auto; scroll-margin-b ottom: 0px; scroll-margin-left: 0px; scroll-margin-right: 0px; scroll-margin-top: 0px; scroll-padding-bottom: 0px; scroll-padding-left: 0px; scroll-padding-right: 0px; scroll-padding-top: 0px; scroll-snap-align: none none; scroll-snap-type: none; shape-image-threshold: 0; shape-margin: 0px; shape-outside: none; shape-rendering: auto; size: ; speak-as: normal; stop-color: rgb(0, 0, 0); stop-opacity: 1; stroke: none; stroke-color: rgba(0, 0, 0, 0); stroke-dasharray: none; stroke-dashoffset: 0px; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1px; tab-size: 8; table-layout: auto; text-align: start; text-anchor: start; text-decoration: none; text-decoration-color: rgb(255, 0, 0); text-decoration-line: none; text-decoration-skip: auto; text-decoration-style: solid; text-decoration-thickness: auto; text-indent: 0px; text-orientation: mixed; text-overflow: clip; text-rendering: auto; text-shadow: none; text-transform: none; text-underline-offset: auto; text-underline-position: auto; top: auto; touch-action: auto; transform: none; transform-box: view-box; transform-origin-x: ; transform-origin-y: ; transform-origin-z: ; transform-style: flat; transition-delay: 0s; transition-duration: 0s; transition-property: all; transition-timing-function: ease; translate: none; unicode-bidi: normal; vector-effect: none; vertical-align: baseline; visibility: visible; white-space: normal; widows: auto; width: 784px; will-change: auto; word-break: normal; word-spacing: 0px; word-wrap: normal; writing-mode: horizontal-tb; x: 0px; y: 0px; z-index: auto; zoom: 1; -apple-color-filter: none; -apple-pay-button-style: black; -apple-pay-button-type: plain; -apple-trailing-word: auto; -webkit-appearance: none; -webkit-backdrop-filter: none; -webkit-backface-visibility: visible; -webkit-background-clip: border-box; -webkit-background-composite: source-over; -webkit-background-origin: padding-box; -webkit-background-size: auto; -webkit-border-fit: border; -webkit-border-horizontal-spacing: 0px; -webkit-border-image: none; -webkit-border-vertical-spacing: 0px; -webkit-box-align: stretch; -webkit-box-decoration-break: slice; -webkit-box-direction: normal; -webkit-box-flex: 0; -webkit-box-flex-group: 1; -webkit-box-lines: single; -webkit-box-ordinal-group: 1; -webkit-box-orient: horizontal; -webkit-box-pack: start; -webkit-box-reflect: none; -webkit-box-shadow: none; -webkit-column-axis: auto; -webkit-column-break-after: auto; -webkit-column-break-before: auto; -webkit-column-break-inside: auto; -webkit-column-progression: normal; -webkit-cursor-visibility: auto; -webkit-font-kerning: auto; -webkit-font-smoothing: auto; -webkit-hyphenate-character: auto; -webkit-hyphenate-limit-after: auto; -webkit-hyphenate-limit-before: auto; -webkit-hyphenate-limit-lines: no-limit; -webkit-hyphens: manual; -webkit-initial-letter: normal; -webkit-line-align: none; -webkit-line-box-contain: block inline replaced; -webkit-line-clamp: none; -webkit-line-grid: none; -webkit-line-snap: none; -webkit-locale: auto; -webkit-margin-after-collapse: collapse; -webkit-margin-before-collapse: collapse; -webkit-margin-bottom-collapse: collapse; -webkit-margin-top-collapse: collapse; -webkit-mask-box-image: none; -webkit-mask-box-image-outset: 0px; -webkit-mask-box-image-repeat: stretch; -webkit-mask-box-image-slice: 0 fill; -webkit-mask-box-image-source: none; -webkit-mask-box-image-width: auto; -webkit-mask-clip: border-box; -webkit-mask-composite: source-over; -webkit-mask-image: none; -webkit-mask-origin: border-box; -webkit-mask-position-x: 0%; -webkit-mask-position-y: 0%; -webkit-mask-repeat: repeat; -webkit-mask-size: auto; -webkit-mask-source-type: alpha; -webkit-nbsp-mode: normal; -webkit-print-color-adjust: economy; -webkit-rtl-ordering: logical; -webkit-ruby-position: before; -webkit-text-combine: none; -webkit-text-emphasis-color: rgb(255, 0, 0); -webkit-text-emphasis-position: over right; -webkit-text-emphasis-style: none; -webkit-text-fill-color: rgb(255, 0, 0); -webkit-text-orientation: mixed; -webkit-text-security: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-color: rgb(255, 0, 0); -webkit-text-stroke-width: 0px; -webkit-text-zoom: normal; -webkit-transform-style: flat; -webkit-user-drag: auto; -webkit-user-modify: read-only; -webkit-user-select: text;"10 FAIL cssText on computed style declaration returns the empty string assert_equals: cssText is empty expected "" but got "align-content: normal; align-items: normal; align-self: auto; alignment-baseline: auto; all: ; alt: \"\"; animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; aspect-ratio: auto; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; baseline-shift: baseline; block-size: 0px; border-block-end-color: rgb(255, 0, 0); border-block-end-style: none; border-block-end-width: 0px; border-block-start-color: rgb(255, 0, 0); border-block-start-style: none; border-block-start-width: 0px; border-bottom-color: rgb(255, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-end-end-radius: 0px; border-end-start-radius: 0px; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-inline-end-color: rgb(255, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(255, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(255, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(255, 0, 0); border-right-style: none; border-right-width: 0px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-color: rgb(255, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; break-after: auto; break-before: auto; break-inside: auto; buffered-rendering: auto; caption-side: top; caret-color: rgb(255, 0, 0); clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: rgb(255, 0, 0); color-interpolation: sRGB; color-interpolation-filters: linearRGB; color-rendering: auto; color-scheme: auto; column-count: auto; column-fill: balance; column-gap: normal; column-rule-color: rgb(255, 0, 0); column-rule-style: none; column-rule-width: 0px; column-span: none; column-width: auto; content: ; counter-increment: none; counter-reset: none; cursor: auto; cx: 0px; cy: 0px; direction: ltr; display: block; dominant-baseline: auto; empty-cells: show; fill: rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; filter: none; flex-basis: auto; flex-direction: row; flex-grow: 0; flex-shrink: 1; flex-wrap: nowrap; float: none; flood-color: rgb(0, 0, 0); flood-opacity: 1; font-family: -webkit-standard; font-feature-settings: normal; font-optical-sizing: auto; font-size: 13.333333015441895px; font-stretch: normal; font-style: normal; font-synthesis: style weight small-caps; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; glyph-orientation-horizontal: 0deg; glyph-orientation-vertical: auto; grid-auto-columns: auto; grid-auto-flow: row; grid-auto-rows: auto; grid-column-end: auto; grid-column-start: auto; grid-row-end: auto; grid-row-start: auto; grid-template-areas: none; grid-template-columns: none; grid-template-rows: none; hanging-punctuation: none; height: 0px; image-orientation: from-image; image-rendering: auto; inline-size: 784px; inset-block-end: auto; inset-block-start: auto; inset-inline-end: auto; inset-inline-start: auto; isolation: auto; justify-content: normal; justify-items: normal; justify-self: auto; kerning: 0; left: auto; letter-spacing: normal; lighting-color: rgb(255, 255, 255); line-break: auto; line-height: normal; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; marker-end: none; marker-mid: none; marker-start: none; mask: none; mask-type: luminance; math-style: normal; max-block-size: none; max-height: none; max-inline-size: none; max-width: none; min-block-size: 0px; min-height: 0px; min-inline-size: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; opacity: 1; order: 0; orphans: auto; outline-color: rgb(255, 0, 0); outline-offset: 0px; outline-style: none; outline-width: 0px; overflow-wrap: normal; overflow-x: visible; overflow-y: visible; overscroll-behavior-x: auto; overscroll-behavior-y: auto; padding-block-end: 0px; padding-block-start: 0px; padding-bottom: 0px; padding-inline-end: 0px; padding-inline-start: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; page-break-after: auto; page-break-before: auto; page-break-inside: auto; paint-order: normal; perspective: none; perspective-origin-x: ; perspective-origin-y: ; pointer-events: auto; position: static; quotes: auto; r: 0px; resize: none; right: auto; rotate: none; row-gap: normal; rx: auto; ry: auto; scale: none; scroll-behavior: auto; scroll-margin-block: 0px; scroll-margin-bottom: 0px; scroll-margin-inline: 0px; scroll-margin-left: 0px; scroll-margin-right: 0px; scroll-margin-top: 0px; scroll-padding-block: auto; scroll-padding-bottom: auto; scroll-padding-inline: auto; scroll-padding-left: auto; scroll-padding-right: auto; scroll-padding-top: auto; scroll-snap-align: none none; scroll-snap-type: none; shape-image-threshold: 0; shape-margin: 0px; shape-outside: none; shape-rendering: auto; size: ; speak-as: normal; stop-color: rgb(0, 0, 0); stop-opacity: 1; stroke: none; stroke-color: rgba(0, 0, 0, 0); stroke-dasharray: none; stroke-dashoffset: 0px; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1px; tab-size: 8; table-layout: auto; text-align: start; text-anchor: start; text-decoration: none; text-decoration-color: rgb(255, 0, 0); text-decoration-line: none; text-decoration-skip: auto; text-decoration-style: solid; text-decoration-thickness: auto; text-indent: 0px; text-orientation: mixed; text-overflow: clip; text-rendering: auto; text-shadow: none; text-transform: none; text-underline-offset: auto; text-underline-position: auto; top: auto; touch-action: auto; transform: none; transform-box: view-box; transform-origin-x: ; transform-origin-y: ; transform-origin-z: ; transform-style: flat; transition-delay: 0s; transition-duration: 0s; transition-property: all; transition-timing-function: ease; translate: none; unicode-bidi: normal; vector-effect: none; vertical-align: baseline; visibility: visible; white-space: normal; widows: auto; width: 784px; will-change: auto; word-break: normal; word-spacing: 0px; word-wrap: normal; writing-mode: horizontal-tb; x: 0px; y: 0px; z-index: auto; zoom: 1; -apple-color-filter: none; -apple-pay-button-style: black; -apple-pay-button-type: plain; -apple-trailing-word: auto; -webkit-appearance: none; -webkit-backdrop-filter: none; -webkit-backface-visibility: visible; -webkit-background-clip: border-box; -webkit-background-composite: source-over; -webkit-background-origin: padding-box; -webkit-background-size: auto; -webkit-border-fit: border; -webkit-border-horizontal-spacing: 0px; -webkit-border-image: none; -webkit-border-vertical-spacing: 0px; -webkit-box-align: stretch; -webkit-box-decoration-break: slice; -webkit-box-direction: normal; -webkit-box-flex: 0; -webkit-box-flex-group: 1; -webkit-box-lines: single; -webkit-box-ordinal-group: 1; -webkit-box-orient: horizontal; -webkit-box-pack: start; -webkit-box-reflect: none; -webkit-box-shadow: none; -webkit-column-axis: auto; -webkit-column-break-after: auto; -webkit-column-break-before: auto; -webkit-column-break-inside: auto; -webkit-column-progression: normal; -webkit-cursor-visibility: auto; -webkit-font-kerning: auto; -webkit-font-smoothing: auto; -webkit-hyphenate-character: auto; -webkit-hyphenate-limit-after: auto; -webkit-hyphenate-limit-before: auto; -webkit-hyphenate-limit-lines: no-limit; -webkit-hyphens: manual; -webkit-initial-letter: normal; -webkit-line-align: none; -webkit-line-box-contain: block inline replaced; -webkit-line-clamp: none; -webkit-line-grid: none; -webkit-line-snap: none; -webkit-locale: auto; -webkit-margin-after-collapse: collapse; -webkit-margin-before-collapse: collapse; -webkit-margin-bottom-collapse: collapse; -webkit-margin-top-collapse: collapse; -webkit-mask-box-image: none; -webkit-mask-box-image-outset: 0px; -webkit-mask-box-image-repeat: stretch; -webkit-mask-box-image-slice: 0 fill; -webkit-mask-box-image-source: none; -webkit-mask-box-image-width: auto; -webkit-mask-clip: border-box; -webkit-mask-composite: source-over; -webkit-mask-image: none; -webkit-mask-origin: border-box; -webkit-mask-position-x: 0%; -webkit-mask-position-y: 0%; -webkit-mask-repeat: repeat; -webkit-mask-size: auto; -webkit-mask-source-type: alpha; -webkit-nbsp-mode: normal; -webkit-print-color-adjust: economy; -webkit-rtl-ordering: logical; -webkit-ruby-position: before; -webkit-text-combine: none; -webkit-text-emphasis-color: rgb(255, 0, 0); -webkit-text-emphasis-position: over right; -webkit-text-emphasis-style: none; -webkit-text-fill-color: rgb(255, 0, 0); -webkit-text-orientation: mixed; -webkit-text-security: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-color: rgb(255, 0, 0); -webkit-text-stroke-width: 0px; -webkit-text-zoom: normal; -webkit-transform-style: flat; -webkit-user-drag: auto; -webkit-user-modify: read-only; -webkit-user-select: text;" 11 11 -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt
r271447 r272035 8 8 PASS whitespaces in value 9 9 PASS invalid property does not appear 10 FAIL cssText on computed style declaration returns the empty string assert_equals: cssText is empty expected "" but got "align-content: normal; align-items: normal; align-self: auto; alignment-baseline: auto; all: ; alt: \"\"; animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; aspect-ratio: auto; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; baseline-shift: baseline; block-size: 0px; border-block-end-color: rgb(255, 0, 0); border-block-end-style: none; border-block-end-width: 0px; border-block-start-color: rgb(255, 0, 0); border-block-start-style: none; border-block-start-width: 0px; border-bottom-color: rgb(255, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-end-end-radius: 0px; border-end-start-radius: 0px; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-inline-end-color: rgb(255, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(255, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(255, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(255, 0, 0); border-right-style: none; border-right-width: 0px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-color: rgb(255, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; break-after: auto; break-before: auto; break-inside: auto; buffered-rendering: auto; caption-side: top; caret-color: rgb(255, 0, 0); clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: rgb(255, 0, 0); color-interpolation: sRGB; color-interpolation-filters: linearRGB; color-rendering: auto; color-scheme: auto; column-count: auto; column-fill: balance; column-gap: normal; column-rule-color: rgb(255, 0, 0); column-rule-style: none; column-rule-width: 0px; column-span: none; column-width: auto; content: ; counter-increment: none; counter-reset: none; cursor: auto; cx: 0px; cy: 0px; direction: ltr; display: block; dominant-baseline: auto; empty-cells: show; fill: rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; filter: none; flex-basis: auto; flex-direction: row; flex-grow: 0; flex-shrink: 1; flex-wrap: nowrap; float: none; flood-color: rgb(0, 0, 0); flood-opacity: 1; font-family: -webkit-standard; font-feature-settings: normal; font-optical-sizing: auto; font-size: 13.333333015441895px; font-stretch: normal; font-style: normal; font-synthesis: style weight small-caps; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; glyph-orientation-horizontal: 0deg; glyph-orientation-vertical: auto; grid-auto-columns: auto; grid-auto-flow: row; grid-auto-rows: auto; grid-column-end: auto; grid-column-start: auto; grid-row-end: auto; grid-row-start: auto; grid-template-areas: none; grid-template-columns: none; grid-template-rows: none; hanging-punctuation: none; height: 0px; image-orientation: from-image; image-rendering: auto; inline-size: 784px; inset-block-end: auto; inset-block-start: auto; inset-inline-end: auto; inset-inline-start: auto; isolation: auto; justify-content: normal; justify-items: normal; justify-self: auto; kerning: 0; left: auto; letter-spacing: normal; lighting-color: rgb(255, 255, 255); line-break: auto; line-height: normal; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; marker-end: none; marker-mid: none; marker-start: none; mask: none; mask-type: luminance; math-style: normal; max-block-size: none; max-height: none; max-inline-size: none; max-width: none; min-block-size: 0px; min-height: 0px; min-inline-size: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; opacity: 1; order: 0; orphans: auto; outline-color: rgb(255, 0, 0); outline-offset: 0px; outline-style: none; outline-width: 0px; overflow-wrap: normal; overflow-x: visible; overflow-y: visible; overscroll-behavior-x: auto; overscroll-behavior-y: auto; padding-block-end: 0px; padding-block-start: 0px; padding-bottom: 0px; padding-inline-end: 0px; padding-inline-start: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; page-break-after: auto; page-break-before: auto; page-break-inside: auto; paint-order: normal; perspective: none; perspective-origin-x: ; perspective-origin-y: ; pointer-events: auto; position: static; quotes: auto; r: 0px; resize: none; right: auto; rotate: none; row-gap: normal; rx: auto; ry: auto; scale: none; scroll-behavior: auto; scroll-margin-b ottom: 0px; scroll-margin-left: 0px; scroll-margin-right: 0px; scroll-margin-top: 0px; scroll-padding-bottom: 0px; scroll-padding-left: 0px; scroll-padding-right: 0px; scroll-padding-top: 0px; scroll-snap-align: none none; scroll-snap-type: none; shape-image-threshold: 0; shape-margin: 0px; shape-outside: none; shape-rendering: auto; size: ; speak-as: normal; stop-color: rgb(0, 0, 0); stop-opacity: 1; stroke: none; stroke-color: rgba(0, 0, 0, 0); stroke-dasharray: none; stroke-dashoffset: 0px; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1px; tab-size: 8; table-layout: auto; text-align: start; text-anchor: start; text-decoration: none; text-decoration-color: rgb(255, 0, 0); text-decoration-line: none; text-decoration-skip: auto; text-decoration-style: solid; text-decoration-thickness: auto; text-indent: 0px; text-orientation: mixed; text-overflow: clip; text-rendering: auto; text-shadow: none; text-transform: none; text-underline-offset: auto; text-underline-position: auto; top: auto; touch-action: auto; transform: none; transform-box: view-box; transform-origin-x: ; transform-origin-y: ; transform-origin-z: ; transform-style: flat; transition-delay: 0s; transition-duration: 0s; transition-property: all; transition-timing-function: ease; translate: none; unicode-bidi: normal; vector-effect: none; vertical-align: baseline; visibility: visible; white-space: normal; widows: auto; width: 784px; will-change: auto; word-break: normal; word-spacing: 0px; word-wrap: normal; writing-mode: horizontal-tb; x: 0px; y: 0px; z-index: auto; zoom: 1; -apple-color-filter: none; -apple-pay-button-style: black; -apple-pay-button-type: plain; -apple-trailing-word: auto; -webkit-appearance: none; -webkit-backdrop-filter: none; -webkit-backface-visibility: visible; -webkit-background-clip: border-box; -webkit-background-composite: source-over; -webkit-background-origin: padding-box; -webkit-background-size: auto; -webkit-border-fit: border; -webkit-border-horizontal-spacing: 0px; -webkit-border-image: none; -webkit-border-vertical-spacing: 0px; -webkit-box-align: stretch; -webkit-box-decoration-break: slice; -webkit-box-direction: normal; -webkit-box-flex: 0; -webkit-box-flex-group: 1; -webkit-box-lines: single; -webkit-box-ordinal-group: 1; -webkit-box-orient: horizontal; -webkit-box-pack: start; -webkit-box-reflect: none; -webkit-box-shadow: none; -webkit-column-axis: auto; -webkit-column-break-after: auto; -webkit-column-break-before: auto; -webkit-column-break-inside: auto; -webkit-column-progression: normal; -webkit-cursor-visibility: auto; -webkit-font-kerning: auto; -webkit-font-smoothing: auto; -webkit-hyphenate-character: auto; -webkit-hyphenate-limit-after: auto; -webkit-hyphenate-limit-before: auto; -webkit-hyphenate-limit-lines: no-limit; -webkit-hyphens: manual; -webkit-initial-letter: normal; -webkit-line-align: none; -webkit-line-box-contain: block inline replaced; -webkit-line-clamp: none; -webkit-line-grid: none; -webkit-line-snap: none; -webkit-locale: auto; -webkit-margin-after-collapse: collapse; -webkit-margin-before-collapse: collapse; -webkit-margin-bottom-collapse: collapse; -webkit-margin-top-collapse: collapse; -webkit-mask-box-image: none; -webkit-mask-box-image-outset: 0px; -webkit-mask-box-image-repeat: stretch; -webkit-mask-box-image-slice: 0 fill; -webkit-mask-box-image-source: none; -webkit-mask-box-image-width: auto; -webkit-mask-clip: border-box; -webkit-mask-composite: source-over; -webkit-mask-image: none; -webkit-mask-origin: border-box; -webkit-mask-position-x: 0%; -webkit-mask-position-y: 0%; -webkit-mask-repeat: repeat; -webkit-mask-size: auto; -webkit-mask-source-type: alpha; -webkit-nbsp-mode: normal; -webkit-overflow-scrolling: auto; -webkit-print-color-adjust: economy; -webkit-rtl-ordering: logical; -webkit-ruby-position: before; -webkit-text-combine: none; -webkit-text-emphasis-color: rgb(255, 0, 0); -webkit-text-emphasis-position: over right; -webkit-text-emphasis-style: none; -webkit-text-fill-color: rgb(255, 0, 0); -webkit-text-orientation: mixed; -webkit-text-security: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-color: rgb(255, 0, 0); -webkit-text-stroke-width: 0px; -webkit-text-zoom: normal; -webkit-touch-callout: default; -webkit-transform-style: flat; -webkit-user-drag: auto; -webkit-user-modify: read-only; -webkit-user-select: text;"10 FAIL cssText on computed style declaration returns the empty string assert_equals: cssText is empty expected "" but got "align-content: normal; align-items: normal; align-self: auto; alignment-baseline: auto; all: ; alt: \"\"; animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; aspect-ratio: auto; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; baseline-shift: baseline; block-size: 0px; border-block-end-color: rgb(255, 0, 0); border-block-end-style: none; border-block-end-width: 0px; border-block-start-color: rgb(255, 0, 0); border-block-start-style: none; border-block-start-width: 0px; border-bottom-color: rgb(255, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-end-end-radius: 0px; border-end-start-radius: 0px; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-inline-end-color: rgb(255, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(255, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(255, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(255, 0, 0); border-right-style: none; border-right-width: 0px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-color: rgb(255, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; break-after: auto; break-before: auto; break-inside: auto; buffered-rendering: auto; caption-side: top; caret-color: rgb(255, 0, 0); clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: rgb(255, 0, 0); color-interpolation: sRGB; color-interpolation-filters: linearRGB; color-rendering: auto; color-scheme: auto; column-count: auto; column-fill: balance; column-gap: normal; column-rule-color: rgb(255, 0, 0); column-rule-style: none; column-rule-width: 0px; column-span: none; column-width: auto; content: ; counter-increment: none; counter-reset: none; cursor: auto; cx: 0px; cy: 0px; direction: ltr; display: block; dominant-baseline: auto; empty-cells: show; fill: rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; filter: none; flex-basis: auto; flex-direction: row; flex-grow: 0; flex-shrink: 1; flex-wrap: nowrap; float: none; flood-color: rgb(0, 0, 0); flood-opacity: 1; font-family: -webkit-standard; font-feature-settings: normal; font-optical-sizing: auto; font-size: 13.333333015441895px; font-stretch: normal; font-style: normal; font-synthesis: style weight small-caps; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; glyph-orientation-horizontal: 0deg; glyph-orientation-vertical: auto; grid-auto-columns: auto; grid-auto-flow: row; grid-auto-rows: auto; grid-column-end: auto; grid-column-start: auto; grid-row-end: auto; grid-row-start: auto; grid-template-areas: none; grid-template-columns: none; grid-template-rows: none; hanging-punctuation: none; height: 0px; image-orientation: from-image; image-rendering: auto; inline-size: 784px; inset-block-end: auto; inset-block-start: auto; inset-inline-end: auto; inset-inline-start: auto; isolation: auto; justify-content: normal; justify-items: normal; justify-self: auto; kerning: 0; left: auto; letter-spacing: normal; lighting-color: rgb(255, 255, 255); line-break: auto; line-height: normal; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; marker-end: none; marker-mid: none; marker-start: none; mask: none; mask-type: luminance; math-style: normal; max-block-size: none; max-height: none; max-inline-size: none; max-width: none; min-block-size: 0px; min-height: 0px; min-inline-size: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; opacity: 1; order: 0; orphans: auto; outline-color: rgb(255, 0, 0); outline-offset: 0px; outline-style: none; outline-width: 0px; overflow-wrap: normal; overflow-x: visible; overflow-y: visible; overscroll-behavior-x: auto; overscroll-behavior-y: auto; padding-block-end: 0px; padding-block-start: 0px; padding-bottom: 0px; padding-inline-end: 0px; padding-inline-start: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; page-break-after: auto; page-break-before: auto; page-break-inside: auto; paint-order: normal; perspective: none; perspective-origin-x: ; perspective-origin-y: ; pointer-events: auto; position: static; quotes: auto; r: 0px; resize: none; right: auto; rotate: none; row-gap: normal; rx: auto; ry: auto; scale: none; scroll-behavior: auto; scroll-margin-block: 0px; scroll-margin-bottom: 0px; scroll-margin-inline: 0px; scroll-margin-left: 0px; scroll-margin-right: 0px; scroll-margin-top: 0px; scroll-padding-block: auto; scroll-padding-bottom: auto; scroll-padding-inline: auto; scroll-padding-left: auto; scroll-padding-right: auto; scroll-padding-top: auto; scroll-snap-align: none none; scroll-snap-type: none; shape-image-threshold: 0; shape-margin: 0px; shape-outside: none; shape-rendering: auto; size: ; speak-as: normal; stop-color: rgb(0, 0, 0); stop-opacity: 1; stroke: none; stroke-color: rgba(0, 0, 0, 0); stroke-dasharray: none; stroke-dashoffset: 0px; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1px; tab-size: 8; table-layout: auto; text-align: start; text-anchor: start; text-decoration: none; text-decoration-color: rgb(255, 0, 0); text-decoration-line: none; text-decoration-skip: auto; text-decoration-style: solid; text-decoration-thickness: auto; text-indent: 0px; text-orientation: mixed; text-overflow: clip; text-rendering: auto; text-shadow: none; text-transform: none; text-underline-offset: auto; text-underline-position: auto; top: auto; touch-action: auto; transform: none; transform-box: view-box; transform-origin-x: ; transform-origin-y: ; transform-origin-z: ; transform-style: flat; transition-delay: 0s; transition-duration: 0s; transition-property: all; transition-timing-function: ease; translate: none; unicode-bidi: normal; vector-effect: none; vertical-align: baseline; visibility: visible; white-space: normal; widows: auto; width: 784px; will-change: auto; word-break: normal; word-spacing: 0px; word-wrap: normal; writing-mode: horizontal-tb; x: 0px; y: 0px; z-index: auto; zoom: 1; -apple-color-filter: none; -apple-pay-button-style: black; -apple-pay-button-type: plain; -apple-trailing-word: auto; -webkit-appearance: none; -webkit-backdrop-filter: none; -webkit-backface-visibility: visible; -webkit-background-clip: border-box; -webkit-background-composite: source-over; -webkit-background-origin: padding-box; -webkit-background-size: auto; -webkit-border-fit: border; -webkit-border-horizontal-spacing: 0px; -webkit-border-image: none; -webkit-border-vertical-spacing: 0px; -webkit-box-align: stretch; -webkit-box-decoration-break: slice; -webkit-box-direction: normal; -webkit-box-flex: 0; -webkit-box-flex-group: 1; -webkit-box-lines: single; -webkit-box-ordinal-group: 1; -webkit-box-orient: horizontal; -webkit-box-pack: start; -webkit-box-reflect: none; -webkit-box-shadow: none; -webkit-column-axis: auto; -webkit-column-break-after: auto; -webkit-column-break-before: auto; -webkit-column-break-inside: auto; -webkit-column-progression: normal; -webkit-cursor-visibility: auto; -webkit-font-kerning: auto; -webkit-font-smoothing: auto; -webkit-hyphenate-character: auto; -webkit-hyphenate-limit-after: auto; -webkit-hyphenate-limit-before: auto; -webkit-hyphenate-limit-lines: no-limit; -webkit-hyphens: manual; -webkit-initial-letter: normal; -webkit-line-align: none; -webkit-line-box-contain: block inline replaced; -webkit-line-clamp: none; -webkit-line-grid: none; -webkit-line-snap: none; -webkit-locale: auto; -webkit-margin-after-collapse: collapse; -webkit-margin-before-collapse: collapse; -webkit-margin-bottom-collapse: collapse; -webkit-margin-top-collapse: collapse; -webkit-mask-box-image: none; -webkit-mask-box-image-outset: 0px; -webkit-mask-box-image-repeat: stretch; -webkit-mask-box-image-slice: 0 fill; -webkit-mask-box-image-source: none; -webkit-mask-box-image-width: auto; -webkit-mask-clip: border-box; -webkit-mask-composite: source-over; -webkit-mask-image: none; -webkit-mask-origin: border-box; -webkit-mask-position-x: 0%; -webkit-mask-position-y: 0%; -webkit-mask-repeat: repeat; -webkit-mask-size: auto; -webkit-mask-source-type: alpha; -webkit-nbsp-mode: normal; -webkit-overflow-scrolling: auto; -webkit-print-color-adjust: economy; -webkit-rtl-ordering: logical; -webkit-ruby-position: before; -webkit-text-combine: none; -webkit-text-emphasis-color: rgb(255, 0, 0); -webkit-text-emphasis-position: over right; -webkit-text-emphasis-style: none; -webkit-text-fill-color: rgb(255, 0, 0); -webkit-text-orientation: mixed; -webkit-text-security: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-color: rgb(255, 0, 0); -webkit-text-stroke-width: 0px; -webkit-text-zoom: normal; -webkit-touch-callout: default; -webkit-transform-style: flat; -webkit-user-drag: auto; -webkit-user-modify: read-only; -webkit-user-select: text;" 11 11 -
trunk/Source/WebCore/ChangeLog
r272033 r272035 1 2021-01-28 Martin Robinson <mrobinson@webkit.org> 2 3 Add support for logical variants of 'scroll-padding' and 'scroll-margin' 4 https://bugs.webkit.org/show_bug.cgi?id=220766 5 <rdar://problem/73661278> 6 7 Reviewed by Darin Adler. 8 9 Add support for logical `scroll-margin` and `scroll-padding` properties. Also 10 improve parsing of `scroll-padding` which should not accept negative values and 11 should accept "auto" values. The spec gives flexibility for how to interpret 12 "auto", but for us this should just be 0 currently. 13 14 * css/CSSComputedStyleDeclaration.cpp: 15 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): Add support for logical 16 margin and padding longhands and shortands. 17 * css/CSSProperties.json: Ditto. Allow padding to accept "auto" as well. 18 * css/CSSProperty.cpp: 19 (WebCore::CSSProperty::resolveDirectionAwareProperty): Ditto. 20 (WebCore::CSSProperty::isDirectionAwareProperty): Ditto. 21 * css/StyleProperties.cpp: 22 (WebCore::StyleProperties::getPropertyValue const): Ditto. 23 (WebCore::StyleProperties::asText const): Ditto. 24 * css/parser/CSSPropertyParser.cpp: 25 (WebCore::consumeScrollPadding): Added this helper that accepts a length, a percentage, 26 or auto. 27 (WebCore::CSSPropertyParser::parseSingleValue): Added support for logical longhands. 28 (WebCore::CSSPropertyParser::parseShorthand): Added support for logical shorthands. 29 * page/scrolling/ScrollSnapOffsetsInfo.cpp: 30 (WebCore::computeScrollSnapPortOrAreaRect): Use minimumValueForLength here because 31 auto should resolve to 0px. 32 * rendering/RenderBox.cpp: 33 (RenderBox::scrollPaddingForViewportRect): Ditto. 34 * rendering/style/RenderStyle.h: 35 (WebCore::RenderStyle::initialScrollPadding): Initialize scroll-padding values to 36 auto as specified. 37 * rendering/style/StyleRareNonInheritedData.h: Ditto. 38 1 39 2021-01-28 Sam Weinig <weinig@apple.com> 2 40 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r271948 r272035 3828 3828 case CSSPropertyScrollMarginLeft: 3829 3829 return zoomAdjustedPixelValueForLength(style.scrollMarginLeft(), style); 3830 case CSSPropertyScrollMarginBlock: 3831 return getCSSPropertyValuesFor2SidesShorthand(scrollMarginBlockShorthand()); 3832 case CSSPropertyScrollMarginInline: 3833 return getCSSPropertyValuesFor2SidesShorthand(scrollMarginInlineShorthand()); 3830 3834 case CSSPropertyScrollPadding: 3831 3835 return getCSSPropertyValuesFor4SidesShorthand(scrollPaddingShorthand()); … … 3838 3842 case CSSPropertyScrollPaddingLeft: 3839 3843 return zoomAdjustedPixelValueForLength(style.scrollPaddingLeft(), style); 3844 case CSSPropertyScrollPaddingBlock: 3845 return getCSSPropertyValuesFor2SidesShorthand(scrollPaddingBlockShorthand()); 3846 case CSSPropertyScrollPaddingInline: 3847 return getCSSPropertyValuesFor2SidesShorthand(scrollPaddingInlineShorthand()); 3840 3848 #if ENABLE(CSS_SCROLL_SNAP) 3841 3849 case CSSPropertyScrollSnapType: … … 3961 3969 case CSSPropertyMinBlockSize: 3962 3970 case CSSPropertyMinInlineSize: 3971 case CSSPropertyScrollMarginBlockEnd: 3972 case CSSPropertyScrollMarginBlockStart: 3973 case CSSPropertyScrollMarginInlineEnd: 3974 case CSSPropertyScrollMarginInlineStart: 3975 case CSSPropertyScrollPaddingBlockEnd: 3976 case CSSPropertyScrollPaddingBlockStart: 3977 case CSSPropertyScrollPaddingInlineEnd: 3978 case CSSPropertyScrollPaddingInlineStart: 3963 3979 ASSERT_NOT_REACHED(); 3964 3980 break; -
trunk/Source/WebCore/css/CSSProperties.json
r271447 r272035 6711 6711 } 6712 6712 }, 6713 "scroll-margin-inline-start": { 6714 "codegen-properties": { 6715 "skip-builder": true 6716 }, 6717 "specification": { 6718 "category": "css-scroll-snap", 6719 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-inline-start" 6720 } 6721 }, 6722 "scroll-margin-block-start": { 6723 "codegen-properties": { 6724 "skip-builder": true 6725 }, 6726 "specification": { 6727 "category": "css-scroll-snap", 6728 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-block-start" 6729 } 6730 }, 6731 "scroll-margin-inline-end": { 6732 "codegen-properties": { 6733 "skip-builder": true 6734 }, 6735 "specification": { 6736 "category": "css-scroll-snap", 6737 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-inline-end" 6738 } 6739 }, 6740 "scroll-margin-block-end": { 6741 "codegen-properties": { 6742 "skip-builder": true 6743 }, 6744 "specification": { 6745 "category": "css-scroll-snap", 6746 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-block-end" 6747 } 6748 }, 6749 "scroll-margin-block": { 6750 "codegen-properties": { 6751 "longhands": [ 6752 "scroll-margin-block-start", 6753 "scroll-margin-block-end" 6754 ] 6755 }, 6756 "specification": { 6757 "category": "css-scroll-snap", 6758 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-block" 6759 } 6760 }, 6761 "scroll-margin-inline": { 6762 "codegen-properties": { 6763 "longhands": [ 6764 "scroll-margin-inline-start", 6765 "scroll-margin-inline-end" 6766 ] 6767 }, 6768 "specification": { 6769 "category": "css-scroll-snap", 6770 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin-inline" 6771 } 6772 }, 6713 6773 "scroll-padding": { 6714 6774 "codegen-properties": { … … 6728 6788 "codegen-properties": { 6729 6789 "initial": "initialScrollPadding", 6730 "converter": "Length "6790 "converter": "LengthOrAuto" 6731 6791 }, 6732 6792 "specification": { … … 6738 6798 "codegen-properties": { 6739 6799 "initial": "initialScrollPadding", 6740 "converter": "Length "6800 "converter": "LengthOrAuto" 6741 6801 }, 6742 6802 "specification": { … … 6748 6808 "codegen-properties": { 6749 6809 "initial": "initialScrollPadding", 6750 "converter": "Length "6810 "converter": "LengthOrAuto" 6751 6811 }, 6752 6812 "specification": { … … 6758 6818 "codegen-properties": { 6759 6819 "initial": "initialScrollPadding", 6760 "converter": "Length "6820 "converter": "LengthOrAuto" 6761 6821 }, 6762 6822 "specification": { … … 6767 6827 "scroll-padding-inline-start": { 6768 6828 "codegen-properties": { 6769 "skip-codegen": true 6770 }, 6771 "status": { 6772 "status": "not implemented" 6829 "skip-builder": true 6773 6830 }, 6774 6831 "specification": { … … 6779 6836 "scroll-padding-block-start": { 6780 6837 "codegen-properties": { 6781 "skip-codegen": true 6782 }, 6783 "status": { 6784 "status": "not implemented" 6838 "skip-builder": true 6785 6839 }, 6786 6840 "specification": { … … 6791 6845 "scroll-padding-inline-end": { 6792 6846 "codegen-properties": { 6793 "skip-codegen": true 6794 }, 6795 "status": { 6796 "status": "not implemented" 6847 "skip-builder": true 6797 6848 }, 6798 6849 "specification": { … … 6803 6854 "scroll-padding-block-end": { 6804 6855 "codegen-properties": { 6805 "skip-codegen": true 6806 }, 6807 "status": { 6808 "status": "not implemented" 6856 "skip-builder": true 6809 6857 }, 6810 6858 "specification": { … … 6818 6866 "scroll-padding-block-start", 6819 6867 "scroll-padding-block-end" 6820 ], 6821 "skip-codegen": true 6822 }, 6823 "status": { 6824 "status": "not implemented" 6868 ] 6825 6869 }, 6826 6870 "specification": { … … 6834 6878 "scroll-padding-inline-start", 6835 6879 "scroll-padding-inline-end" 6836 ], 6837 "skip-codegen": true 6838 }, 6839 "status": { 6840 "status": "not implemented" 6880 ] 6841 6881 }, 6842 6882 "specification": { -
trunk/Source/WebCore/css/CSSProperty.cpp
r271447 r272035 172 172 case CSSPropertyBorderEndEndRadius: 173 173 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxCorner::EndEnd, borderRadiusShorthand()); 174 case CSSPropertyScrollMarginInlineStart: 175 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Start, scrollMarginShorthand()); 176 case CSSPropertyScrollMarginInlineEnd: 177 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::End, scrollMarginShorthand()); 178 case CSSPropertyScrollMarginBlockStart: 179 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Before, scrollMarginShorthand()); 180 case CSSPropertyScrollMarginBlockEnd: 181 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::After, scrollMarginShorthand()); 182 case CSSPropertyScrollPaddingInlineStart: 183 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Start, scrollPaddingShorthand()); 184 case CSSPropertyScrollPaddingInlineEnd: 185 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::End, scrollPaddingShorthand()); 186 case CSSPropertyScrollPaddingBlockStart: 187 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Before, scrollPaddingShorthand()); 188 case CSSPropertyScrollPaddingBlockEnd: 189 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::After, scrollPaddingShorthand()); 174 190 default: 175 191 return propertyID; … … 230 246 case CSSPropertyBorderEndStartRadius: 231 247 case CSSPropertyBorderEndEndRadius: 248 case CSSPropertyScrollMarginInlineStart: 249 case CSSPropertyScrollMarginInlineEnd: 250 case CSSPropertyScrollMarginBlockStart: 251 case CSSPropertyScrollMarginBlockEnd: 252 case CSSPropertyScrollPaddingInlineStart: 253 case CSSPropertyScrollPaddingInlineEnd: 254 case CSSPropertyScrollPaddingBlockStart: 255 case CSSPropertyScrollPaddingBlockEnd: 232 256 return true; 233 257 default: -
trunk/Source/WebCore/css/StyleProperties.cpp
r270613 r272035 290 290 case CSSPropertyScrollMargin: 291 291 return get4Values(scrollMarginShorthand()); 292 case CSSPropertyScrollMarginBlock: 293 return get2Values(scrollMarginBlockShorthand()); 294 case CSSPropertyScrollMarginInline: 295 return get2Values(scrollMarginInlineShorthand()); 292 296 case CSSPropertyScrollPadding: 293 297 return get4Values(scrollPaddingShorthand()); 298 case CSSPropertyScrollPaddingBlock: 299 return get2Values(scrollPaddingBlockShorthand()); 300 case CSSPropertyScrollPaddingInline: 301 return get2Values(scrollPaddingInlineShorthand()); 294 302 default: 295 303 return String(); … … 1179 1187 shorthandPropertyID = CSSPropertyScrollMargin; 1180 1188 break; 1189 case CSSPropertyScrollMarginBlockStart: 1190 case CSSPropertyScrollMarginBlockEnd: 1191 shorthandPropertyID = CSSPropertyScrollMarginBlock; 1192 break; 1193 case CSSPropertyScrollMarginInlineStart: 1194 case CSSPropertyScrollMarginInlineEnd: 1195 shorthandPropertyID = CSSPropertyScrollMarginInline; 1196 break; 1181 1197 case CSSPropertyScrollPaddingTop: 1182 1198 case CSSPropertyScrollPaddingRight: … … 1184 1200 case CSSPropertyScrollPaddingLeft: 1185 1201 shorthandPropertyID = CSSPropertyScrollPadding; 1202 break; 1203 case CSSPropertyScrollPaddingBlockStart: 1204 case CSSPropertyScrollPaddingBlockEnd: 1205 shorthandPropertyID = CSSPropertyScrollPaddingBlock; 1206 break; 1207 case CSSPropertyScrollPaddingInlineStart: 1208 case CSSPropertyScrollPaddingInlineEnd: 1209 shorthandPropertyID = CSSPropertyScrollPaddingInline; 1186 1210 break; 1187 1211 case CSSPropertyTransitionProperty: -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r271447 r272035 1236 1236 } 1237 1237 1238 static RefPtr<CSSValue> consumeScrollPadding(CSSParserTokenRange& range, CSSParserMode cssParserMode) 1239 { 1240 if (range.peek().id() == CSSValueAuto) 1241 return consumeIdent(range); 1242 return consumeLengthOrPercent(range, cssParserMode, ValueRangeNonNegative); 1243 } 1244 1238 1245 static bool validWidthOrHeightKeyword(CSSValueID id, const CSSParserContext& /*context*/) 1239 1246 { … … 4142 4149 case CSSPropertyScrollMarginRight: 4143 4150 case CSSPropertyScrollMarginTop: 4151 case CSSPropertyScrollMarginInlineStart: 4152 case CSSPropertyScrollMarginInlineEnd: 4153 case CSSPropertyScrollMarginBlockStart: 4154 case CSSPropertyScrollMarginBlockEnd: 4144 4155 return consumeLength(m_range, m_context.mode, ValueRangeAll); 4145 4156 case CSSPropertyScrollPaddingBottom: … … 4147 4158 case CSSPropertyScrollPaddingRight: 4148 4159 case CSSPropertyScrollPaddingTop: 4149 return consumeLengthOrPercent(m_range, m_context.mode, ValueRangeAll); 4160 case CSSPropertyScrollPaddingInlineStart: 4161 case CSSPropertyScrollPaddingInlineEnd: 4162 case CSSPropertyScrollPaddingBlockStart: 4163 case CSSPropertyScrollPaddingBlockEnd: 4164 return consumeScrollPadding(m_range, m_context.mode); 4150 4165 #if ENABLE(CSS_SCROLL_SNAP) 4151 4166 case CSSPropertyScrollSnapAlign: … … 5865 5880 case CSSPropertyScrollMargin: 5866 5881 return consume4ValueShorthand(scrollMarginShorthand(), important); 5882 case CSSPropertyScrollMarginBlock: 5883 return consume2ValueShorthand(scrollMarginBlockShorthand(), important); 5884 case CSSPropertyScrollMarginInline: 5885 return consume2ValueShorthand(scrollMarginInlineShorthand(), important); 5867 5886 case CSSPropertyScrollPadding: 5868 5887 return consume4ValueShorthand(scrollPaddingShorthand(), important); 5888 case CSSPropertyScrollPaddingBlock: 5889 return consume2ValueShorthand(scrollPaddingBlockShorthand(), important); 5890 case CSSPropertyScrollPaddingInline: 5891 return consume2ValueShorthand(scrollPaddingInlineShorthand(), important); 5869 5892 case CSSPropertyWebkitTextEmphasis: 5870 5893 return consumeShorthandGreedily(webkitTextEmphasisShorthand(), important); -
trunk/Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp
r272019 r272035 154 154 static LayoutRect computeScrollSnapPortOrAreaRect(const LayoutRect& rect, const LengthBox& insetOrOutsetBox, InsetOrOutset insetOrOutset) 155 155 { 156 LayoutBoxExtent extents(valueForLength(insetOrOutsetBox.top(), rect.height()), valueForLength(insetOrOutsetBox.right(), rect.width()), valueForLength(insetOrOutsetBox.bottom(), rect.height()), valueForLength(insetOrOutsetBox.left(), rect.width())); 156 // We are using minimumValueForLength here for insetOrOutset box, because if this value is defined by scroll-padding then the 157 // Length of any side may be "auto." In that case, we want to use 0, because that is how WebKit currently interprets an "auto" 158 // value for scroll-padding. See: https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding 159 LayoutBoxExtent extents( 160 minimumValueForLength(insetOrOutsetBox.top(), rect.height()), minimumValueForLength(insetOrOutsetBox.right(), rect.width()), 161 minimumValueForLength(insetOrOutsetBox.bottom(), rect.height()), minimumValueForLength(insetOrOutsetBox.left(), rect.width())); 157 162 auto snapPortOrArea(rect); 158 163 if (insetOrOutset == InsetOrOutset::Inset) -
trunk/Source/WebCore/rendering/RenderBox.cpp
r271934 r272035 5201 5201 LayoutBoxExtent RenderBox::scrollPaddingForViewportRect(const LayoutRect& viewportRect) 5202 5202 { 5203 // We are using minimumValueForLength here, because scroll-padding values might be "auto". WebKit currently 5204 // interprets "auto" as 0. See: https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding 5203 5205 const auto& padding = style().scrollPadding(); 5204 5206 return LayoutBoxExtent( 5205 valueForLength(padding.top(), viewportRect.height()), valueForLength(padding.right(), viewportRect.width()),5206 valueForLength(padding.bottom(), viewportRect.height()), valueForLength(padding.left(), viewportRect.width()));5207 minimumValueForLength(padding.top(), viewportRect.height()), minimumValueForLength(padding.right(), viewportRect.width()), 5208 minimumValueForLength(padding.bottom(), viewportRect.height()), minimumValueForLength(padding.left(), viewportRect.width())); 5207 5209 } 5208 5210 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r271200 r272035 1689 1689 1690 1690 static Length initialScrollMargin() { return Length(Fixed); } 1691 static Length initialScrollPadding() { return Length( Fixed); }1691 static Length initialScrollPadding() { return Length(Auto); } 1692 1692 1693 1693 #if ENABLE(CSS_SCROLL_SNAP) -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r270613 r272035 133 133 134 134 LengthBox scrollMargin { 0, 0, 0, 0 }; 135 LengthBox scrollPadding { 0, 0, 0, 0};135 LengthBox scrollPadding { Length(Auto), Length(Auto), Length(Auto), Length(Auto) }; 136 136 #if ENABLE(CSS_SCROLL_SNAP) 137 137 ScrollSnapType scrollSnapType;
Note: See TracChangeset
for help on using the changeset viewer.