WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195029
[css-values-4] serialization of background-position specified with calc() for specified value and for computed value
https://bugs.webkit.org/show_bug.cgi?id=195029
Summary
[css-values-4] serialization of background-position specified with calc() for...
Gérard Talbot (no longer involved)
Reported
2019-02-25 17:50:15 PST
Tests ----- computed value of 'background-position' when specified with calc() function: testing background-position: calc(6px + 21%) calc(7em + 22%) testing background-position: calc(-8px + 23%) calc(-9em + 24%)
http://w3c-test.org/css/css-values/calc-background-position-002.html
serialization of 'background-position' when specified with calc() function testing background-position: calc(6px + 21%) calc(7em + 22%) testing background-position: calc(-8px + 23%) calc(-9em + 24%)
http://w3c-test.org/css/css-values/calc-background-position-003.html
Test results - - - - - -
https://wpt.fyi/results/css/css-values/calc-background-position-002.html?label=stable
https://wpt.fyi/results/css/css-values/calc-background-position-002.html?label=master
https://wpt.fyi/results/css/css-values/calc-background-position-003.html?label=stable
https://wpt.fyi/results/css/css-values/calc-background-position-003.html?label=master
Safari 12, Safari Technological Preview and Epiphany Technological Preview (Epiphany Technological Preview 3.31.90-45-ga15d70306 with WebKitGTK 2.23.3) fail these 4 sub-tests. In each of these 4 sub-tests, the percentage should precede the dimensions. " To serialize a summation: Sort the terms in the following order: The number, if present The percentage, if present The dimensions, ordered by their units ASCII case-insensitive alphabetically (...) " CSS Values 4, section 9.1.5. Serialization
https://www.w3.org/TR/css-values-4/#math-function-serialize-a-summation
Attachments
Add attachment
proposed patch, testcase, etc.
Gérard Talbot (no longer involved)
Comment 1
2019-02-25 18:53:56 PST
Issue 904805: Summation should serialize percentage before dimension
https://bugs.chromium.org/p/chromium/issues/detail?id=904805
Radar WebKit Bug Importer
Comment 2
2019-02-26 10:42:54 PST
<
rdar://problem/48405780
>
Gérard Talbot (no longer involved)
Comment 3
2019-02-28 10:30:58 PST
Also testing calc(50px + calc(40%)) in
http://w3c-test.org/css/css-values/calc-nesting-002.html
https://wpt.fyi/results/css/css-values/calc-nesting-002.html?label=master
Sam Weinig
Comment 4
2023-01-09 09:24:40 PST
These tests seem to be passing now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug