Diff
Modified: trunk/LayoutTests/ChangeLog (285620 => 285621)
--- trunk/LayoutTests/ChangeLog 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/ChangeLog 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1,3 +1,20 @@
+2021-11-11 Antoine Quint <[email protected]>
+
+ Default computed value for "content" should be "none" for ::before and ::after
+ https://bugs.webkit.org/show_bug.cgi?id=232932
+
+ Reviewed by Antti Koivisto.
+
+ * platform/glib/fast/css/getComputedStyle/computed-style-expected.txt:
+ * platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+ * platform/glib/svg/css/getComputedStyle-basic-expected.txt:
+ * platform/ios/fast/css/getComputedStyle/computed-style-expected.txt:
+ * platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+ * platform/ios/svg/css/getComputedStyle-basic-expected.txt:
+ * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
+ * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+ * platform/mac/svg/css/getComputedStyle-basic-expected.txt:
+
2021-11-10 Devin Rousso <[email protected]>
REGRESSION(r283863): `<attachment>` with a long `action` do not render correctly
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (285620 => 285621)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1,3 +1,14 @@
+2021-11-11 Antoine Quint <[email protected]>
+
+ Default computed value for "content" should be "none" for ::before and ::after
+ https://bugs.webkit.org/show_bug.cgi?id=232932
+
+ Reviewed by Antti Koivisto.
+
+ * web-platform-tests/css/css-content/computed-value-expected.txt:
+ * web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt:
+ * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt:
+
2021-11-10 Tim Nguyen <[email protected]>
Remove non-standard -webkit-border-fit CSS property
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-content/computed-value-expected.txt (285620 => 285621)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-content/computed-value-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-content/computed-value-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1,3 +1,3 @@
-FAIL initial computed value of content for elements is not none assert_equals: expected "none" but got ""
+PASS initial computed value of content for elements is not none
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt (285620 => 285621)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-computed-content-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1,14 +1,14 @@
-FAIL Computed 'content' for list-item ::marker, variant default assert_equals: expected "normal" but got ""
-FAIL Computed 'content' for list-item ::marker, variant normal assert_equals: expected "normal" but got ""
+PASS Computed 'content' for list-item ::marker, variant default
+PASS Computed 'content' for list-item ::marker, variant normal
PASS Computed 'content' for list-item ::marker, variant string
PASS Computed 'content' for list-item ::marker, variant image
-FAIL Computed 'content' for list-item ::marker, variant none assert_equals: expected "none" but got ""
-FAIL Computed 'content' for non-list-item ::marker, variant default assert_equals: expected "normal" but got ""
-FAIL Computed 'content' for non-list-item ::marker, variant normal assert_equals: expected "normal" but got ""
+FAIL Computed 'content' for list-item ::marker, variant none assert_equals: expected "none" but got "normal"
+PASS Computed 'content' for non-list-item ::marker, variant default
+PASS Computed 'content' for non-list-item ::marker, variant normal
PASS Computed 'content' for non-list-item ::marker, variant string
PASS Computed 'content' for non-list-item ::marker, variant image
-FAIL Computed 'content' for non-list-item ::marker, variant none assert_equals: expected "none" but got ""
+FAIL Computed 'content' for non-list-item ::marker, variant none assert_equals: expected "none" but got "normal"
item
item
item
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt (285620 => 285621)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -21,7 +21,7 @@
FAIL Animation of text-combine-upright in ::marker assert_true: text-combine-upright doesn't seem to be supported in the computed style expected true got false
PASS Animation of unicode-bidi in ::marker
PASS Animation of direction in ::marker
-FAIL Animation of content in ::marker assert_equals: expected "\"bar\"" but got ""
+FAIL Animation of content in ::marker assert_equals: expected "\"bar\"" but got "normal"
FAIL Animation of hyphens in ::marker assert_true: hyphens doesn't seem to be supported in the computed style expected true got false
FAIL Animation of letter-spacing in ::marker assert_equals: expected "10px" but got "normal"
FAIL Animation of line-break in ::marker assert_equals: expected "anywhere" but got "auto"
Modified: trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -55,7 +55,7 @@
column-rule-width: 0px;
column-span: none;
column-width: auto;
-content: ;
+content: normal;
counter-increment: none;
counter-reset: none;
cursor: auto;
Modified: trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -54,7 +54,7 @@
column-rule-width: 0px
column-span: none
column-width: auto
-content:
+content: normal
counter-increment: none
counter-reset: none
cursor: auto
Modified: trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -108,7 +108,7 @@
rect: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
rect: style.getPropertyValue(column-width) : auto
rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(content) :
+rect: style.getPropertyValue(content) : normal
rect: style.getPropertyCSSValue(content) : [object CSSValueList]
rect: style.getPropertyValue(counter-increment) : none
rect: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
@@ -626,7 +626,7 @@
g: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
g: style.getPropertyValue(column-width) : auto
g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(content) :
+g: style.getPropertyValue(content) : normal
g: style.getPropertyCSSValue(content) : [object CSSValueList]
g: style.getPropertyValue(counter-increment) : none
g: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
Modified: trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -55,7 +55,7 @@
column-rule-width: 0px;
column-span: none;
column-width: auto;
-content: ;
+content: normal;
counter-increment: none;
counter-reset: none;
cursor: auto;
Modified: trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -54,7 +54,7 @@
column-rule-width: 0px
column-span: none
column-width: auto
-content:
+content: normal
counter-increment: none
counter-reset: none
cursor: auto
Modified: trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -108,7 +108,7 @@
rect: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
rect: style.getPropertyValue(column-width) : auto
rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(content) :
+rect: style.getPropertyValue(content) : normal
rect: style.getPropertyCSSValue(content) : [object CSSValueList]
rect: style.getPropertyValue(counter-increment) : none
rect: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
@@ -626,7 +626,7 @@
g: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
g: style.getPropertyValue(column-width) : auto
g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(content) :
+g: style.getPropertyValue(content) : normal
g: style.getPropertyCSSValue(content) : [object CSSValueList]
g: style.getPropertyValue(counter-increment) : none
g: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
Modified: trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -55,7 +55,7 @@
column-rule-width: 0px;
column-span: none;
column-width: auto;
-content: ;
+content: normal;
counter-increment: none;
counter-reset: none;
cursor: auto;
Modified: trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -54,7 +54,7 @@
column-rule-width: 0px
column-span: none
column-width: auto
-content:
+content: normal
counter-increment: none
counter-reset: none
cursor: auto
Modified: trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt (285620 => 285621)
--- trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt 2021-11-11 08:08:25 UTC (rev 285621)
@@ -108,7 +108,7 @@
rect: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
rect: style.getPropertyValue(column-width) : auto
rect: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(content) :
+rect: style.getPropertyValue(content) : normal
rect: style.getPropertyCSSValue(content) : [object CSSValueList]
rect: style.getPropertyValue(counter-increment) : none
rect: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
@@ -626,7 +626,7 @@
g: style.getPropertyCSSValue(column-span) : [object CSSPrimitiveValue]
g: style.getPropertyValue(column-width) : auto
g: style.getPropertyCSSValue(column-width) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(content) :
+g: style.getPropertyValue(content) : normal
g: style.getPropertyCSSValue(content) : [object CSSValueList]
g: style.getPropertyValue(counter-increment) : none
g: style.getPropertyCSSValue(counter-increment) : [object CSSPrimitiveValue]
Modified: trunk/Source/WebCore/ChangeLog (285620 => 285621)
--- trunk/Source/WebCore/ChangeLog 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/Source/WebCore/ChangeLog 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1,3 +1,13 @@
+2021-11-11 Antoine Quint <[email protected]>
+
+ Default computed value for "content" should be "none" for ::before and ::after
+ https://bugs.webkit.org/show_bug.cgi?id=232932
+
+ Reviewed by Antti Koivisto.
+
+ * css/CSSComputedStyleDeclaration.cpp:
+ (WebCore::contentToCSSValue):
+
2021-11-10 Devin Rousso <[email protected]>
REGRESSION(r283863): `<attachment>` with a long `action` do not render correctly
Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (285620 => 285621)
--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2021-11-11 06:12:07 UTC (rev 285620)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2021-11-11 08:08:25 UTC (rev 285621)
@@ -1817,6 +1817,10 @@
else if (is<TextContentData>(*contentData))
list->append(cssValuePool.createValue(downcast<TextContentData>(*contentData).text(), CSSUnitType::CSS_STRING));
}
+ if (!list->length()) {
+ auto isBeforeOrAfter = style.styleType() == PseudoId::Before || style.styleType() == PseudoId::After;
+ list->append(cssValuePool.createIdentifierValue(isBeforeOrAfter ? CSSValueNone : CSSValueNormal));
+ }
return list;
}