Changeset 285621 in webkit
- Timestamp:
- Nov 11, 2021 12:08:25 AM (8 months ago)
- Location:
- trunk
- Files:
-
- 16 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-content/computed-value-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285620 r285621 1 2021-11-11 Antoine Quint <graouts@webkit.org> 2 3 Default computed value for "content" should be "none" for ::before and ::after 4 https://bugs.webkit.org/show_bug.cgi?id=232932 5 6 Reviewed by Antti Koivisto. 7 8 * platform/glib/fast/css/getComputedStyle/computed-style-expected.txt: 9 * platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 10 * platform/glib/svg/css/getComputedStyle-basic-expected.txt: 11 * platform/ios/fast/css/getComputedStyle/computed-style-expected.txt: 12 * platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 13 * platform/ios/svg/css/getComputedStyle-basic-expected.txt: 14 * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: 15 * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 16 * platform/mac/svg/css/getComputedStyle-basic-expected.txt: 17 1 18 2021-11-10 Devin Rousso <drousso@apple.com> 2 19 -
trunk/LayoutTests/imported/w3c/ChangeLog
r285615 r285621 1 2021-11-11 Antoine Quint <graouts@webkit.org> 2 3 Default computed value for "content" should be "none" for ::before and ::after 4 https://bugs.webkit.org/show_bug.cgi?id=232932 5 6 Reviewed by Antti Koivisto. 7 8 * web-platform-tests/css/css-content/computed-value-expected.txt: 9 * web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt: 10 * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt: 11 1 12 2021-11-10 Tim Nguyen <ntim@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-content/computed-value-expected.txt
r266038 r285621 1 1 2 FAIL initial computed value of content for elements is not none assert_equals: expected "none" but got "" 2 PASS initial computed value of content for elements is not none 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt
r284519 r285621 1 1 2 FAIL Computed 'content' for list-item ::marker, variant default assert_equals: expected "normal" but got "" 3 FAIL Computed 'content' for list-item ::marker, variant normal assert_equals: expected "normal" but got "" 2 PASS Computed 'content' for list-item ::marker, variant default 3 PASS Computed 'content' for list-item ::marker, variant normal 4 4 PASS Computed 'content' for list-item ::marker, variant string 5 5 PASS Computed 'content' for list-item ::marker, variant image 6 FAIL Computed 'content' for list-item ::marker, variant none assert_equals: expected "none" but got " "7 FAIL Computed 'content' for non-list-item ::marker, variant default assert_equals: expected "normal" but got "" 8 FAIL Computed 'content' for non-list-item ::marker, variant normal assert_equals: expected "normal" but got "" 6 FAIL Computed 'content' for list-item ::marker, variant none assert_equals: expected "none" but got "normal" 7 PASS Computed 'content' for non-list-item ::marker, variant default 8 PASS Computed 'content' for non-list-item ::marker, variant normal 9 9 PASS Computed 'content' for non-list-item ::marker, variant string 10 10 PASS Computed 'content' for non-list-item ::marker, variant image 11 FAIL Computed 'content' for non-list-item ::marker, variant none assert_equals: expected "none" but got " "11 FAIL Computed 'content' for non-list-item ::marker, variant none assert_equals: expected "none" but got "normal" 12 12 item 13 13 item -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt
r285383 r285621 22 22 PASS Animation of unicode-bidi in ::marker 23 23 PASS Animation of direction in ::marker 24 FAIL Animation of content in ::marker assert_equals: expected "\"bar\"" but got " "24 FAIL Animation of content in ::marker assert_equals: expected "\"bar\"" but got "normal" 25 25 FAIL Animation of hyphens in ::marker assert_true: hyphens doesn't seem to be supported in the computed style expected true got false 26 26 FAIL Animation of letter-spacing in ::marker assert_equals: expected "10px" but got "normal" -
trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt
r285383 r285621 56 56 column-span: none; 57 57 column-width: auto; 58 content: ;58 content: normal; 59 59 counter-increment: none; 60 60 counter-reset: none; -
trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285615 r285621 55 55 column-span: none 56 56 column-width: auto 57 content: 57 content: normal 58 58 counter-increment: none 59 59 counter-reset: none -
trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt
r285615 r285621 109 109 rect: style.getPropertyValue(column-width) : auto 110 110 rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 111 rect: style.getPropertyValue(content) : 111 rect: style.getPropertyValue(content) : normal 112 112 rect: style.getPropertyCSSValue(content) : [object CSSValueList] 113 113 rect: style.getPropertyValue(counter-increment) : none … … 627 627 g: style.getPropertyValue(column-width) : auto 628 628 g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 629 g: style.getPropertyValue(content) : 629 g: style.getPropertyValue(content) : normal 630 630 g: style.getPropertyCSSValue(content) : [object CSSValueList] 631 631 g: style.getPropertyValue(counter-increment) : none -
trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt
r285615 r285621 56 56 column-span: none; 57 57 column-width: auto; 58 content: ;58 content: normal; 59 59 counter-increment: none; 60 60 counter-reset: none; -
trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285615 r285621 55 55 column-span: none 56 56 column-width: auto 57 content: 57 content: normal 58 58 counter-increment: none 59 59 counter-reset: none -
trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt
r285615 r285621 109 109 rect: style.getPropertyValue(column-width) : auto 110 110 rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 111 rect: style.getPropertyValue(content) : 111 rect: style.getPropertyValue(content) : normal 112 112 rect: style.getPropertyCSSValue(content) : [object CSSValueList] 113 113 rect: style.getPropertyValue(counter-increment) : none … … 627 627 g: style.getPropertyValue(column-width) : auto 628 628 g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 629 g: style.getPropertyValue(content) : 629 g: style.getPropertyValue(content) : normal 630 630 g: style.getPropertyCSSValue(content) : [object CSSValueList] 631 631 g: style.getPropertyValue(counter-increment) : none -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt
r285615 r285621 56 56 column-span: none; 57 57 column-width: auto; 58 content: ;58 content: normal; 59 59 counter-increment: none; 60 60 counter-reset: none; -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r285615 r285621 55 55 column-span: none 56 56 column-width: auto 57 content: 57 content: normal 58 58 counter-increment: none 59 59 counter-reset: none -
trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt
r285615 r285621 109 109 rect: style.getPropertyValue(column-width) : auto 110 110 rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 111 rect: style.getPropertyValue(content) : 111 rect: style.getPropertyValue(content) : normal 112 112 rect: style.getPropertyCSSValue(content) : [object CSSValueList] 113 113 rect: style.getPropertyValue(counter-increment) : none … … 627 627 g: style.getPropertyValue(column-width) : auto 628 628 g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue] 629 g: style.getPropertyValue(content) : 629 g: style.getPropertyValue(content) : normal 630 630 g: style.getPropertyCSSValue(content) : [object CSSValueList] 631 631 g: style.getPropertyValue(counter-increment) : none -
trunk/Source/WebCore/ChangeLog
r285620 r285621 1 2021-11-11 Antoine Quint <graouts@webkit.org> 2 3 Default computed value for "content" should be "none" for ::before and ::after 4 https://bugs.webkit.org/show_bug.cgi?id=232932 5 6 Reviewed by Antti Koivisto. 7 8 * css/CSSComputedStyleDeclaration.cpp: 9 (WebCore::contentToCSSValue): 10 1 11 2021-11-10 Devin Rousso <drousso@apple.com> 2 12 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r285615 r285621 1817 1817 else if (is<TextContentData>(*contentData)) 1818 1818 list->append(cssValuePool.createValue(downcast<TextContentData>(*contentData).text(), CSSUnitType::CSS_STRING)); 1819 } 1820 if (!list->length()) { 1821 auto isBeforeOrAfter = style.styleType() == PseudoId::Before || style.styleType() == PseudoId::After; 1822 list->append(cssValuePool.createIdentifierValue(isBeforeOrAfter ? CSSValueNone : CSSValueNormal)); 1819 1823 } 1820 1824 return list;
Note: See TracChangeset
for help on using the changeset viewer.