Changeset 268889 in webkit
- Timestamp:
- Oct 22, 2020, 1:31:49 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/inheritance-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-shorthand-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-valid-expected.txt (modified) (1 diff)
-
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) (1 diff)
-
Source/WebCore/css/CSSProperties.json (modified) (2 diffs)
-
Source/WebCore/css/StyleProperties.cpp (modified) (2 diffs)
-
Source/WebCore/css/parser/CSSPropertyParser.cpp (modified) (2 diffs)
-
Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (3 diffs)
-
Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/style/StyleScrollSnapPoints.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268886 r268889 1 2020-10-22 Martin Robinson <mrobinson@igalia.com> 2 3 Rename scroll-snap-margin to scroll-margin 4 https://bugs.webkit.org/show_bug.cgi?id=218075 5 6 Reviewed by Simon Fraser. 7 8 * platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: Update results for this test. 9 1 10 2020-10-22 Noam Rosenthal <noam@webkit.org> 2 11 -
trunk/LayoutTests/imported/w3c/ChangeLog
r268886 r268889 1 2020-10-22 Martin Robinson <mrobinson@igalia.com> 2 3 Rename scroll-snap-margin to scroll-margin 4 https://bugs.webkit.org/show_bug.cgi?id=218075 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Update result for newly passing test. 9 * web-platform-tests/css/css-scroll-snap/inheritance-expected.txt: Ditto 10 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-computed-expected.txt: Ditto. 11 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-shorthand-expected.txt: Ditto. 12 * web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-valid-expected.txt: Ditto. 13 * web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: Ditto. 14 1 15 2020-10-22 Noam Rosenthal <noam@webkit.org> 2 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
r267985 r268889 222 222 PASS scale 223 223 PASS scroll-behavior 224 PASS scroll-margin-bottom 225 PASS scroll-margin-left 226 PASS scroll-margin-right 227 PASS scroll-margin-top 224 228 PASS scroll-padding-bottom 225 229 PASS scroll-padding-left … … 227 231 PASS scroll-padding-top 228 232 PASS scroll-snap-align 229 PASS scroll-snap-margin-bottom230 PASS scroll-snap-margin-left231 PASS scroll-snap-margin-right232 PASS scroll-snap-margin-top233 233 PASS scroll-snap-type 234 234 PASS shape-image-threshold -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/inheritance-expected.txt
r268348 r268889 4 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 5 FAIL Property scroll-margin-block-start does not inherit assert_true: expected true got false 6 FAIL Property scroll-margin-bottom has initial value 0px assert_true: scroll-margin-bottom doesn't seem to be supported in the computed style expected true got false 7 FAIL Property scroll-margin-bottom does not inherit assert_true: expected true got false 6 PASS Property scroll-margin-bottom has initial value 0px 7 PASS Property scroll-margin-bottom does not inherit 8 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 9 FAIL Property scroll-margin-inline-end does not inherit assert_true: expected true got false 10 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 11 FAIL Property scroll-margin-inline-start does not inherit assert_true: expected true got false 12 FAIL Property scroll-margin-left has initial value 0px assert_true: scroll-margin-left doesn't seem to be supported in the computed style expected true got false 13 FAIL Property scroll-margin-left does not inherit assert_true: expected true got false 14 FAIL Property scroll-margin-right has initial value 0px assert_true: scroll-margin-right doesn't seem to be supported in the computed style expected true got false 15 FAIL Property scroll-margin-right does not inherit assert_true: expected true got false 16 FAIL Property scroll-margin-top has initial value 0px assert_true: scroll-margin-top doesn't seem to be supported in the computed style expected true got false 17 FAIL Property scroll-margin-top does not inherit assert_true: expected true got false 12 PASS Property scroll-margin-left has initial value 0px 13 PASS Property scroll-margin-left does not inherit 14 PASS Property scroll-margin-right has initial value 0px 15 PASS Property scroll-margin-right does not inherit 16 PASS Property scroll-margin-top has initial value 0px 17 PASS Property scroll-margin-top does not inherit 18 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 19 FAIL Property scroll-padding-block-end does not inherit assert_true: expected true got false -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-computed-expected.txt
r268250 r268889 1 1 2 FAIL Property scroll-margin-top value '10px' assert_true: scroll-margin-top doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-margin-top value 'calc(10px - 0.5em)' assert_true: scroll-margin-top doesn't seem to be supported in the computed style expected true got false 4 FAIL Property scroll-margin-right value '10px' assert_true: scroll-margin-right doesn't seem to be supported in the computed style expected true got false 5 FAIL Property scroll-margin-right value 'calc(10px - 0.5em)' assert_true: scroll-margin-right doesn't seem to be supported in the computed style expected true got false 6 FAIL Property scroll-margin-bottom value '10px' assert_true: scroll-margin-bottom doesn't seem to be supported in the computed style expected true got false 7 FAIL Property scroll-margin-bottom value 'calc(10px - 0.5em)' assert_true: scroll-margin-bottom doesn't seem to be supported in the computed style expected true got false 8 FAIL Property scroll-margin-left value '10px' assert_true: scroll-margin-left doesn't seem to be supported in the computed style expected true got false 9 FAIL Property scroll-margin-left value 'calc(10px - 0.5em)' assert_true: scroll-margin-left doesn't seem to be supported in the computed style expected true got false 10 FAIL Property scroll-margin value '10px' assert_true: scroll-margin doesn't seem to be supported in the computed style expected true got false 11 FAIL Property scroll-margin value 'calc(10px - 0.5em)' assert_true: scroll-margin doesn't seem to be supported in the computed style expected true got false 12 FAIL Property scroll-margin value '1px 2px' assert_true: scroll-margin doesn't seem to be supported in the computed style expected true got false 2 PASS Property scroll-margin-top value '10px' 3 PASS Property scroll-margin-top value 'calc(10px - 0.5em)' 4 PASS Property scroll-margin-right value '10px' 5 PASS Property scroll-margin-right value 'calc(10px - 0.5em)' 6 PASS Property scroll-margin-bottom value '10px' 7 PASS Property scroll-margin-bottom value 'calc(10px - 0.5em)' 8 PASS Property scroll-margin-left value '10px' 9 PASS Property scroll-margin-left value 'calc(10px - 0.5em)' 10 PASS Property scroll-margin value '10px' 11 PASS Property scroll-margin value 'calc(10px - 0.5em)' 12 PASS Property scroll-margin value '1px 2px' 13 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-shorthand-expected.txt
r268250 r268889 1 1 2 FAIL e.style['scroll-margin'] = "10px" should set scroll-margin-bottom assert_equals: scroll-margin-bottom should be canonical expected (string) "10px" but got (undefined) undefined 3 FAIL e.style['scroll-margin'] = "10px" should set scroll-margin-left assert_equals: scroll-margin-left should be canonical expected (string) "10px" but got (undefined) undefined 4 FAIL e.style['scroll-margin'] = "10px" should set scroll-margin-right assert_equals: scroll-margin-right should be canonical expected (string) "10px" but got (undefined) undefined 5 FAIL e.style['scroll-margin'] = "10px" should set scroll-margin-top assert_equals: scroll-margin-top should be canonical expected (string) "10px" but got (undefined) undefined 6 FAIL e.style['scroll-margin'] = "10px" should not set unrelated longhands assert_true: expected true got false 7 FAIL e.style['scroll-margin'] = "30px 20px" should set scroll-margin-bottom assert_equals: scroll-margin-bottom should be canonical expected (string) "30px" but got (undefined) undefined 8 FAIL e.style['scroll-margin'] = "30px 20px" should set scroll-margin-left assert_equals: scroll-margin-left should be canonical expected (string) "20px" but got (undefined) undefined 9 FAIL e.style['scroll-margin'] = "30px 20px" should set scroll-margin-right assert_equals: scroll-margin-right should be canonical expected (string) "20px" but got (undefined) undefined 10 FAIL e.style['scroll-margin'] = "30px 20px" should set scroll-margin-top assert_equals: scroll-margin-top should be canonical expected (string) "30px" but got (undefined) undefined 11 FAIL e.style['scroll-margin'] = "30px 20px" should not set unrelated longhands assert_true: expected true got false 12 FAIL e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-bottom assert_equals: scroll-margin-bottom should be canonical expected (string) "3px" but got (undefined) undefined 13 FAIL e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-left assert_equals: scroll-margin-left should be canonical expected (string) "2px" but got (undefined) undefined 14 FAIL e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-right assert_equals: scroll-margin-right should be canonical expected (string) "2px" but got (undefined) undefined 15 FAIL e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-top assert_equals: scroll-margin-top should be canonical expected (string) "1px" but got (undefined) undefined 16 FAIL e.style['scroll-margin'] = "1px 2px 3px" should not set unrelated longhands assert_true: expected true got false 17 FAIL e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-bottom assert_equals: scroll-margin-bottom should be canonical expected (string) "3px" but got (undefined) undefined 18 FAIL e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-left assert_equals: scroll-margin-left should be canonical expected (string) "0px" but got (undefined) undefined 19 FAIL e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-right assert_equals: scroll-margin-right should be canonical expected (string) "2px" but got (undefined) undefined 20 FAIL e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-top assert_equals: scroll-margin-top should be canonical expected (string) "-1px" but got (undefined) undefined 21 FAIL e.style['scroll-margin'] = "-1px 2px 3px 0" should not set unrelated longhands assert_true: expected true got false 2 PASS e.style['scroll-margin'] = "10px" should set scroll-margin-bottom 3 PASS e.style['scroll-margin'] = "10px" should set scroll-margin-left 4 PASS e.style['scroll-margin'] = "10px" should set scroll-margin-right 5 PASS e.style['scroll-margin'] = "10px" should set scroll-margin-top 6 PASS e.style['scroll-margin'] = "10px" should not set unrelated longhands 7 PASS e.style['scroll-margin'] = "30px 20px" should set scroll-margin-bottom 8 PASS e.style['scroll-margin'] = "30px 20px" should set scroll-margin-left 9 PASS e.style['scroll-margin'] = "30px 20px" should set scroll-margin-right 10 PASS e.style['scroll-margin'] = "30px 20px" should set scroll-margin-top 11 PASS e.style['scroll-margin'] = "30px 20px" should not set unrelated longhands 12 PASS e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-bottom 13 PASS e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-left 14 PASS e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-right 15 PASS e.style['scroll-margin'] = "1px 2px 3px" should set scroll-margin-top 16 PASS e.style['scroll-margin'] = "1px 2px 3px" should not set unrelated longhands 17 PASS e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-bottom 18 PASS e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-left 19 PASS e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-right 20 PASS e.style['scroll-margin'] = "-1px 2px 3px 0" should set scroll-margin-top 21 PASS e.style['scroll-margin'] = "-1px 2px 3px 0" should not set unrelated longhands 22 22 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/scroll-margin-valid-expected.txt
r268250 r268889 1 1 2 FAIL e.style['scroll-margin-top'] = "0" should set the property value assert_not_equals: property should be set got disallowed value "" 3 FAIL e.style['scroll-margin-top'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 4 FAIL e.style['scroll-margin-top'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 5 FAIL e.style['scroll-margin-right'] = "0" should set the property value assert_not_equals: property should be set got disallowed value "" 6 FAIL e.style['scroll-margin-right'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 7 FAIL e.style['scroll-margin-right'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 8 FAIL e.style['scroll-margin-bottom'] = "0" should set the property value assert_not_equals: property should be set got disallowed value "" 9 FAIL e.style['scroll-margin-bottom'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 10 FAIL e.style['scroll-margin-bottom'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 11 FAIL e.style['scroll-margin-left'] = "0" should set the property value assert_not_equals: property should be set got disallowed value "" 12 FAIL e.style['scroll-margin-left'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 13 FAIL e.style['scroll-margin-left'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 14 FAIL e.style['scroll-margin'] = "0" should set the property value assert_not_equals: property should be set got disallowed value "" 15 FAIL e.style['scroll-margin'] = "-10px" should set the property value assert_not_equals: property should be set got disallowed value "" 16 FAIL e.style['scroll-margin'] = "calc(2em + 3ex)" should set the property value assert_not_equals: property should be set got disallowed value "" 17 FAIL e.style['scroll-margin'] = "1px 2px" should set the property value assert_not_equals: property should be set got disallowed value "" 18 FAIL e.style['scroll-margin'] = "1px 2px 3px" should set the property value assert_not_equals: property should be set got disallowed value "" 19 FAIL e.style['scroll-margin'] = "1px 2px 3px 4px" should set the property value assert_not_equals: property should be set got disallowed value "" 20 FAIL e.style['scroll-margin'] = "0 0 0 0" should set the property value assert_not_equals: property should be set got disallowed value "" 2 PASS e.style['scroll-margin-top'] = "0" should set the property value 3 PASS e.style['scroll-margin-top'] = "-10px" should set the property value 4 PASS e.style['scroll-margin-top'] = "calc(2em + 3ex)" should set the property value 5 PASS e.style['scroll-margin-right'] = "0" should set the property value 6 PASS e.style['scroll-margin-right'] = "-10px" should set the property value 7 PASS e.style['scroll-margin-right'] = "calc(2em + 3ex)" should set the property value 8 PASS e.style['scroll-margin-bottom'] = "0" should set the property value 9 PASS e.style['scroll-margin-bottom'] = "-10px" should set the property value 10 PASS e.style['scroll-margin-bottom'] = "calc(2em + 3ex)" should set the property value 11 PASS e.style['scroll-margin-left'] = "0" should set the property value 12 PASS e.style['scroll-margin-left'] = "-10px" should set the property value 13 PASS e.style['scroll-margin-left'] = "calc(2em + 3ex)" should set the property value 14 PASS e.style['scroll-margin'] = "0" should set the property value 15 PASS e.style['scroll-margin'] = "-10px" should set the property value 16 PASS e.style['scroll-margin'] = "calc(2em + 3ex)" should set the property value 17 PASS e.style['scroll-margin'] = "1px 2px" should set the property value 18 PASS e.style['scroll-margin'] = "1px 2px 3px" should set the property value 19 PASS e.style['scroll-margin'] = "1px 2px 3px 4px" should set the property value 20 PASS e.style['scroll-margin'] = "0 0 0 0" should set the property value 21 21 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt
r267985 r268889 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; 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-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-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; 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- padding-bottom: 0px; scroll-padding-left: 0px; scroll-padding-right: 0px; scroll-padding-top: 0px; scroll-snap-align: none none; scroll-snap-margin-bottom: 0px; scroll-snap-margin-left: 0px; scroll-snap-margin-right: 0px; scroll-snap-margin-top: 0px; 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-aspect-ratio: auto; -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; 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-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-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; 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-bottom: 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-aspect-ratio: auto; -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
r267985 r268889 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; 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-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-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; 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- padding-bottom: 0px; scroll-padding-left: 0px; scroll-padding-right: 0px; scroll-padding-top: 0px; scroll-snap-align: none none; scroll-snap-margin-bottom: 0px; scroll-snap-margin-left: 0px; scroll-snap-margin-right: 0px; scroll-snap-margin-top: 0px; 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-aspect-ratio: auto; -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; 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-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-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; 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-bottom: 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-aspect-ratio: auto; -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
r268886 r268889 1 2020-10-22 Martin Robinson <mrobinson@igalia.com> 2 3 Rename scroll-snap-margin to scroll-margin 4 https://bugs.webkit.org/show_bug.cgi?id=218075 5 6 Reviewed by Simon Fraser. 7 8 Rename scroll-snap-margin to scroll-margin while leaving scroll-snap-margin still 9 available as an alias for backward compatibility reasons. 10 11 * css/CSSComputedStyleDeclaration.cpp: 12 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): Rename CSS property name. 13 * css/CSSProperties.json: Rename CSS property and add an alias to the old name. 14 * css/StyleProperties.cpp: Changes to reflect new name. 15 (WebCore::StyleProperties::getPropertyValue const): Ditto. 16 (WebCore::StyleProperties::asText const): Ditto. 17 * css/parser/CSSPropertyParser.cpp: Ditto. 18 (WebCore::CSSPropertyParser::parseSingleValue): Ditto. 19 (WebCore::CSSPropertyParser::parseShorthand): Ditto. 20 * page/scrolling/AxisScrollSnapOffsets.cpp: Ditto. 21 (WebCore::updateSnapOffsetsForScrollableArea): Ditto. 22 * rendering/style/RenderStyle.cpp: Ditto. 23 (WebCore::RenderStyle::scrollMargin const): Ditto. 24 (WebCore::RenderStyle::scrollMarginTop const): Ditto. 25 (WebCore::RenderStyle::scrollMarginBottom const): Ditto. 26 (WebCore::RenderStyle::scrollMarginLeft const): Ditto. 27 (WebCore::RenderStyle::scrollMarginRight const): Ditto. 28 (WebCore::RenderStyle::setScrollMarginTop): Ditto. 29 (WebCore::RenderStyle::setScrollMarginBottom): Ditto. 30 (WebCore::RenderStyle::setScrollMarginLeft): Ditto. 31 (WebCore::RenderStyle::setScrollMarginRight): Ditto. 32 (WebCore::RenderStyle::scrollSnapMargin const): Deleted. 33 (WebCore::RenderStyle::scrollSnapMarginTop const): Deleted. 34 (WebCore::RenderStyle::scrollSnapMarginBottom const): Deleted. 35 (WebCore::RenderStyle::scrollSnapMarginLeft const): Deleted. 36 (WebCore::RenderStyle::scrollSnapMarginRight const): Deleted. 37 (WebCore::RenderStyle::setScrollSnapMarginTop): Deleted. 38 (WebCore::RenderStyle::setScrollSnapMarginBottom): Deleted. 39 (WebCore::RenderStyle::setScrollSnapMarginLeft): Deleted. 40 (WebCore::RenderStyle::setScrollSnapMarginRight): Deleted. 41 * rendering/style/RenderStyle.h: 42 (WebCore::RenderStyle::initialScrollMargin): Added to reflect new name. 43 (WebCore::RenderStyle::initialScrollSnapMargin): Deleted. 44 * rendering/style/StyleScrollSnapPoints.cpp: Changes to reflect new name. 45 (WebCore::StyleScrollSnapArea::StyleScrollSnapArea): Ditto. 46 * rendering/style/StyleScrollSnapPoints.h: Ditto. 47 (WebCore::operator==): Ditto. 48 1 49 2020-10-22 Noam Rosenthal <noam@webkit.org> 2 50 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r268348 r268889 3796 3796 return getCSSPropertyValuesFor2SidesShorthand(paddingInlineShorthand()); 3797 3797 #if ENABLE(CSS_SCROLL_SNAP) 3798 case CSSPropertyScroll SnapMargin:3799 return getCSSPropertyValuesFor4SidesShorthand(scroll SnapMarginShorthand());3800 case CSSPropertyScroll SnapMarginBottom:3801 return zoomAdjustedPixelValueForLength(style.scroll SnapMarginBottom(), style);3802 case CSSPropertyScroll SnapMarginTop:3803 return zoomAdjustedPixelValueForLength(style.scroll SnapMarginTop(), style);3804 case CSSPropertyScroll SnapMarginRight:3805 return zoomAdjustedPixelValueForLength(style.scroll SnapMarginRight(), style);3806 case CSSPropertyScroll SnapMarginLeft:3807 return zoomAdjustedPixelValueForLength(style.scroll SnapMarginLeft(), style);3798 case CSSPropertyScrollMargin: 3799 return getCSSPropertyValuesFor4SidesShorthand(scrollMarginShorthand()); 3800 case CSSPropertyScrollMarginBottom: 3801 return zoomAdjustedPixelValueForLength(style.scrollMarginBottom(), style); 3802 case CSSPropertyScrollMarginTop: 3803 return zoomAdjustedPixelValueForLength(style.scrollMarginTop(), style); 3804 case CSSPropertyScrollMarginRight: 3805 return zoomAdjustedPixelValueForLength(style.scrollMarginRight(), style); 3806 case CSSPropertyScrollMarginLeft: 3807 return zoomAdjustedPixelValueForLength(style.scrollMarginLeft(), style); 3808 3808 case CSSPropertyScrollPadding: 3809 3809 return getCSSPropertyValuesFor4SidesShorthand(scrollPaddingShorthand()); -
trunk/Source/WebCore/css/CSSProperties.json
r267985 r268889 6556 6556 } 6557 6557 }, 6558 "scroll-margin": { 6559 "codegen-properties": { 6560 "enable-if": "ENABLE_CSS_SCROLL_SNAP", 6561 "longhands": [ 6562 "scroll-margin-top", 6563 "scroll-margin-right", 6564 "scroll-margin-bottom", 6565 "scroll-margin-left" 6566 ], 6567 "aliases": [ 6568 "scroll-snap-margin" 6569 ] 6570 }, 6571 "specification": { 6572 "category": "css-scroll-snap", 6573 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin" 6574 } 6575 }, 6576 "scroll-margin-bottom": { 6577 "codegen-properties": { 6578 "enable-if": "ENABLE_CSS_SCROLL_SNAP", 6579 "initial": "initialScrollMargin", 6580 "converter": "Length", 6581 "aliases": [ 6582 "scroll-snap-margin-bottom" 6583 ] 6584 }, 6585 "specification": { 6586 "category": "css-scroll-snap", 6587 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin" 6588 } 6589 }, 6590 "scroll-margin-left": { 6591 "codegen-properties": { 6592 "enable-if": "ENABLE_CSS_SCROLL_SNAP", 6593 "initial": "initialScrollMargin", 6594 "converter": "Length", 6595 "aliases": [ 6596 "scroll-snap-margin-left" 6597 ] 6598 }, 6599 "specification": { 6600 "category": "css-scroll-snap", 6601 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin" 6602 } 6603 }, 6604 "scroll-margin-right": { 6605 "codegen-properties": { 6606 "enable-if": "ENABLE_CSS_SCROLL_SNAP", 6607 "initial": "initialScrollMargin", 6608 "converter": "Length", 6609 "aliases": [ 6610 "scroll-snap-margin-right" 6611 ] 6612 }, 6613 "specification": { 6614 "category": "css-scroll-snap", 6615 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin" 6616 } 6617 }, 6618 "scroll-margin-top": { 6619 "codegen-properties": { 6620 "enable-if": "ENABLE_CSS_SCROLL_SNAP", 6621 "initial": "initialScrollMargin", 6622 "converter": "Length", 6623 "aliases": [ 6624 "scroll-snap-margin-top" 6625 ] 6626 }, 6627 "specification": { 6628 "category": "css-scroll-snap", 6629 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-margin" 6630 } 6631 }, 6558 6632 "scroll-padding": { 6559 6633 "codegen-properties": { … … 6705 6779 "converter": "ScrollSnapAlign", 6706 6780 "enable-if": "ENABLE_CSS_SCROLL_SNAP" 6707 },6708 "specification": {6709 "category": "css-scroll-snap",6710 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-padding"6711 }6712 },6713 "scroll-snap-margin": {6714 "codegen-properties": {6715 "enable-if": "ENABLE_CSS_SCROLL_SNAP",6716 "longhands": [6717 "scroll-snap-margin-top",6718 "scroll-snap-margin-right",6719 "scroll-snap-margin-bottom",6720 "scroll-snap-margin-left"6721 ]6722 },6723 "specification": {6724 "category": "css-scroll-snap",6725 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-padding"6726 }6727 },6728 "scroll-snap-margin-bottom": {6729 "codegen-properties": {6730 "enable-if": "ENABLE_CSS_SCROLL_SNAP",6731 "initial": "initialScrollSnapMargin",6732 "converter": "Length"6733 },6734 "specification": {6735 "category": "css-scroll-snap",6736 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-padding"6737 }6738 },6739 "scroll-snap-margin-left": {6740 "codegen-properties": {6741 "enable-if": "ENABLE_CSS_SCROLL_SNAP",6742 "initial": "initialScrollSnapMargin",6743 "converter": "Length"6744 },6745 "specification": {6746 "category": "css-scroll-snap",6747 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-padding"6748 }6749 },6750 "scroll-snap-margin-right": {6751 "codegen-properties": {6752 "enable-if": "ENABLE_CSS_SCROLL_SNAP",6753 "initial": "initialScrollSnapMargin",6754 "converter": "Length"6755 },6756 "specification": {6757 "category": "css-scroll-snap",6758 "url": "https://www.w3.org/TR/css-scroll-snap-1/#propdef-scroll-padding"6759 }6760 },6761 "scroll-snap-margin-top": {6762 "codegen-properties": {6763 "enable-if": "ENABLE_CSS_SCROLL_SNAP",6764 "initial": "initialScrollSnapMargin",6765 "converter": "Length"6766 6781 }, 6767 6782 "specification": { -
trunk/Source/WebCore/css/StyleProperties.cpp
r266660 r268889 287 287 return get2Values(gapShorthand()); 288 288 #if ENABLE(CSS_SCROLL_SNAP) 289 case CSSPropertyScroll SnapMargin:290 return get4Values(scroll SnapMarginShorthand());289 case CSSPropertyScrollMargin: 290 return get4Values(scrollMarginShorthand()); 291 291 case CSSPropertyScrollPadding: 292 292 return get4Values(scrollPaddingShorthand()); … … 1176 1176 shorthandPropertyID = CSSPropertyScrollPadding; 1177 1177 break; 1178 case CSSPropertyScroll SnapMarginTop:1179 case CSSPropertyScroll SnapMarginRight:1180 case CSSPropertyScroll SnapMarginBottom:1181 case CSSPropertyScroll SnapMarginLeft:1182 shorthandPropertyID = CSSPropertyScroll SnapMargin;1178 case CSSPropertyScrollMarginTop: 1179 case CSSPropertyScrollMarginRight: 1180 case CSSPropertyScrollMarginBottom: 1181 case CSSPropertyScrollMarginLeft: 1182 shorthandPropertyID = CSSPropertyScrollMargin; 1183 1183 break; 1184 1184 #endif -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r268665 r268889 4143 4143 return consumeLengthOrPercent(m_range, m_context.mode, ValueRangeNonNegative, UnitlessQuirk::Forbid); 4144 4144 #if ENABLE(CSS_SCROLL_SNAP) 4145 case CSSPropertyScroll SnapMarginBottom:4146 case CSSPropertyScroll SnapMarginLeft:4147 case CSSPropertyScroll SnapMarginRight:4148 case CSSPropertyScroll SnapMarginTop:4145 case CSSPropertyScrollMarginBottom: 4146 case CSSPropertyScrollMarginLeft: 4147 case CSSPropertyScrollMarginRight: 4148 case CSSPropertyScrollMarginTop: 4149 4149 return consumeLength(m_range, m_context.mode, ValueRangeAll); 4150 4150 case CSSPropertyScrollPaddingBottom: … … 5826 5826 return consume2ValueShorthand(paddingInlineShorthand(), important); 5827 5827 #if ENABLE(CSS_SCROLL_SNAP) 5828 case CSSPropertyScroll SnapMargin:5829 return consume4ValueShorthand(scroll SnapMarginShorthand(), important);5828 case CSSPropertyScrollMargin: 5829 return consume4ValueShorthand(scrollMarginShorthand(), important); 5830 5830 case CSSPropertyScrollPadding: 5831 5831 return consume4ValueShorthand(scrollPaddingShorthand(), important); -
trunk/Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp
r268856 r268889 201 201 scrollSnapArea.moveBy(scrollPosition); 202 202 203 scrollSnapArea = computeScrollSnapPortOrAreaRect(scrollSnapArea, child->style().scroll SnapMargin(), InsetOrOutset::Outset);203 scrollSnapArea = computeScrollSnapPortOrAreaRect(scrollSnapArea, child->style().scrollMargin(), InsetOrOutset::Outset); 204 204 LOG_WITH_STREAM(ScrollSnap, stream << " Considering scroll snap target area " << scrollSnapArea); 205 205 auto alignment = child->style().scrollSnapAlign(); -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r268444 r268889 2450 2450 } 2451 2451 2452 const LengthBox& RenderStyle::scroll SnapMargin() const2453 { 2454 return m_rareNonInheritedData->scrollSnapArea->scroll SnapMargin;2455 } 2456 2457 const Length& RenderStyle::scroll SnapMarginTop() const2458 { 2459 return scroll SnapMargin().top();2460 } 2461 2462 const Length& RenderStyle::scroll SnapMarginBottom() const2463 { 2464 return scroll SnapMargin().bottom();2465 } 2466 2467 const Length& RenderStyle::scroll SnapMarginLeft() const2468 { 2469 return scroll SnapMargin().left();2470 } 2471 2472 const Length& RenderStyle::scroll SnapMarginRight() const2473 { 2474 return scroll SnapMargin().right();2452 const LengthBox& RenderStyle::scrollMargin() const 2453 { 2454 return m_rareNonInheritedData->scrollSnapArea->scrollMargin; 2455 } 2456 2457 const Length& RenderStyle::scrollMarginTop() const 2458 { 2459 return scrollMargin().top(); 2460 } 2461 2462 const Length& RenderStyle::scrollMarginBottom() const 2463 { 2464 return scrollMargin().bottom(); 2465 } 2466 2467 const Length& RenderStyle::scrollMarginLeft() const 2468 { 2469 return scrollMargin().left(); 2470 } 2471 2472 const Length& RenderStyle::scrollMarginRight() const 2473 { 2474 return scrollMargin().right(); 2475 2475 } 2476 2476 … … 2505 2505 } 2506 2506 2507 void RenderStyle::setScroll SnapMarginTop(Length&& length)2508 { 2509 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scroll SnapMargin.top(), WTFMove(length));2510 } 2511 2512 void RenderStyle::setScroll SnapMarginBottom(Length&& length)2513 { 2514 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scroll SnapMargin.bottom(), WTFMove(length));2515 } 2516 2517 void RenderStyle::setScroll SnapMarginLeft(Length&& length)2518 { 2519 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scroll SnapMargin.left(), WTFMove(length));2520 } 2521 2522 void RenderStyle::setScroll SnapMarginRight(Length&& length)2523 { 2524 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scroll SnapMargin.right(), WTFMove(length));2507 void RenderStyle::setScrollMarginTop(Length&& length) 2508 { 2509 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scrollMargin.top(), WTFMove(length)); 2510 } 2511 2512 void RenderStyle::setScrollMarginBottom(Length&& length) 2513 { 2514 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scrollMargin.bottom(), WTFMove(length)); 2515 } 2516 2517 void RenderStyle::setScrollMarginLeft(Length&& length) 2518 { 2519 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scrollMargin.left(), WTFMove(length)); 2520 } 2521 2522 void RenderStyle::setScrollMarginRight(Length&& length) 2523 { 2524 SET_NESTED_VAR(m_rareNonInheritedData, scrollSnapArea, scrollMargin.right(), WTFMove(length)); 2525 2525 } 2526 2526 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r268718 r268889 733 733 const StyleScrollSnapArea& scrollSnapArea() const; 734 734 const ScrollSnapAlign& scrollSnapAlign() const; 735 const LengthBox& scroll SnapMargin() const;736 const Length& scroll SnapMarginTop() const;737 const Length& scroll SnapMarginBottom() const;738 const Length& scroll SnapMarginLeft() const;739 const Length& scroll SnapMarginRight() const;735 const LengthBox& scrollMargin() const; 736 const Length& scrollMarginTop() const; 737 const Length& scrollMarginBottom() const; 738 const Length& scrollMarginLeft() const; 739 const Length& scrollMarginRight() const; 740 740 #endif 741 741 … … 1274 1274 1275 1275 void setScrollSnapAlign(const ScrollSnapAlign&); 1276 void setScroll SnapMarginTop(Length&&);1277 void setScroll SnapMarginBottom(Length&&);1278 void setScroll SnapMarginLeft(Length&&);1279 void setScroll SnapMarginRight(Length&&);1276 void setScrollMarginTop(Length&&); 1277 void setScrollMarginBottom(Length&&); 1278 void setScrollMarginLeft(Length&&); 1279 void setScrollMarginRight(Length&&); 1280 1280 #endif 1281 1281 … … 1678 1678 static ScrollSnapType initialScrollSnapType(); 1679 1679 static ScrollSnapAlign initialScrollSnapAlign(); 1680 static Length initialScroll SnapMargin() { return Length(Fixed); }1680 static Length initialScrollMargin() { return Length(Fixed); } 1681 1681 static Length initialScrollPadding() { return Length(Fixed); } 1682 1682 #endif -
trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp
r210024 r268889 53 53 54 54 StyleScrollSnapArea::StyleScrollSnapArea() 55 : scroll SnapMargin(0, 0, 0, 0)55 : scrollMargin(0, 0, 0, 0) 56 56 { 57 57 } … … 60 60 : RefCounted() 61 61 , alignment(other.alignment) 62 , scroll SnapMargin(other.scrollSnapMargin)62 , scrollMargin(other.scrollMargin) 63 63 { 64 64 } -
trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.h
r210024 r268889 87 87 88 88 ScrollSnapAlign alignment; 89 LengthBox scroll SnapMargin { 0, 0, 0, 0 };89 LengthBox scrollMargin { 0, 0, 0, 0 }; 90 90 91 91 private: … … 96 96 inline bool operator==(const StyleScrollSnapArea& a, const StyleScrollSnapArea& b) 97 97 { 98 return a.alignment == b.alignment && a.scroll SnapMargin == b.scrollSnapMargin;98 return a.alignment == b.alignment && a.scrollMargin == b.scrollMargin; 99 99 } 100 100
Note:
See TracChangeset
for help on using the changeset viewer.