haikuwebkit/LayoutTests/fast/css/counters
Rob Buis d1899375df CSSOM test for serializing counter() fails
https://bugs.webkit.org/show_bug.cgi?id=184256

Patch by Rob Buis <rbuis@igalia.com> on 2021-06-08
Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

Update improved test result.

* web-platform-tests/css/cssom/serialize-values-expected.txt:

Source/WebCore:

The last CSS component value should be omitted if it is "decimal" [1].

Behavior matches Firefox and Chrome.

[1] https://drafts.csswg.org/cssom/#serialize-a-css-component-value

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::formatNumberForCustomCSSText const):

LayoutTests:

Adapt to serialization change.

* fast/css/counters/counter-cssText-expected.txt:
* fast/css/counters/counter-cssText.html:
* fast/css/serialization-with-double-quotes-expected.txt:
* fast/css/serialization-with-double-quotes.html:

Canonical link: https://commits.webkit.org/238630@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-09 05:07:27 +00:00
..
2displays-expected.txt
2displays.html
adding-nodes-expected.txt
adding-nodes.html
after-continuation-expected.txt
after-continuation.html
asterisk-counter-update-after-layout-crash-expected.txt
asterisk-counter-update-after-layout-crash.html
complex-before-expected.txt
complex-before.html
content-021-expected.txt
content-021.html
counter-after-style-crash-expected.txt
counter-after-style-crash.html
counter-before-content-not-incremented-expected.txt
counter-before-content-not-incremented.html
counter-before-selector-crash-expected.txt
counter-before-selector-crash.html
counter-cssText-expected.txt CSSOM test for serializing counter() fails 2021-06-09 05:07:27 +00:00
counter-cssText.html CSSOM test for serializing counter() fails 2021-06-09 05:07:27 +00:00
counter-function-input-2-expected.txt
counter-function-input-2.html
counter-function-input-expected.txt
counter-function-input.html
counter-increment-000-expected.txt
counter-increment-000.html
counter-increment-001-expected.txt
counter-increment-001.html
counter-increment-002-expected.txt
counter-increment-002.html
counter-increment-inherit-expected.txt
counter-increment-inherit.htm
counter-increment-overflow-expected.txt
counter-increment-overflow.html
counter-increment-tests-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
counter-increment-tests.htm
counter-list-item-expected.html
counter-list-item.html
counter-number-input-expected.txt
counter-number-input.html
counter-reparent-table-children-crash-expected.txt
counter-reparent-table-children-crash.html
counter-reset-000-expected.txt
counter-reset-000.html
counter-reset-001-expected.txt 2010-01-22 Shinichiro Hamaji <hamaji@chromium.org> 2010-01-22 14:28:56 +00:00
counter-reset-001.html
counter-reset-002-expected.txt
counter-reset-002.html
counter-reset-inherit-bug-94642-expected.html
counter-reset-inherit-bug-94642.html
counter-reset-subtree-insert-crash-expected.txt
counter-reset-subtree-insert-crash.html
counter-ruby-text-cleared-expected.txt
counter-ruby-text-cleared.html
counter-text-security.html
counter-text-transform.html
counter-traverse-object-crash-expected.txt
counter-traverse-object-crash.html
counter-traverse-table-cell-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
counter-traverse-table-cell.html
counterValueForElementById-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
counterValueForElementById.html
crash-when-cloning-body-expected.txt
crash-when-cloning-body.html
deep-before-expected.txt
deep-before.html
destroy-counter-crash-expected.txt
destroy-counter-crash.html
element-removal-crash-expected.txt
element-removal-crash.xhtml
findPlaceForCounter-crash-expected.txt
findPlaceForCounter-crash.html
findPlaceForCounter-display-content-sibling-crash-expected.txt
findPlaceForCounter-display-content-sibling-crash.html
findPlaceForCounter-pseudo-element-display-content-host-crash-expected.txt
findPlaceForCounter-pseudo-element-display-content-host-crash.html
getCounterValue-expected.txt
getCounterValue.html
invalidate-cached-counter-node-expected.txt
invalidate-cached-counter-node.html
nesting-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
nesting.html
render-tree-reorg-crash-expected.txt
render-tree-reorg-crash.html
reparent-table-children-with-counters-crash-expected.txt
reparent-table-children-with-counters-crash.html