Bug 364158 - background-origin/background-clip not correctly parsed in shorthand
Summary: background-origin/background-clip not correctly parsed in shorthand
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml parsing (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-09 22:12 UTC by Andrea Iacovitti
Modified: 2016-06-10 12:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
testcase (824 bytes, text/html)
2016-06-09 22:12 UTC, Andrea Iacovitti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Iacovitti 2016-06-09 22:12:17 UTC
Created attachment 99431 [details]
testcase

background-origin,background-clip are not correctly parsed when specified in  shorthand: if only one <box> value is specified we set one property and initialize the second to its default value.

From specs (https://www.w3.org/TR/css3-background/#the-background):
if one <box> value is present then it sets both ‘background-origin’ and ‘background-clip’ to that value. If two values are present, then the first sets ‘background-origin’ and the second ‘background-clip’
Comment 1 Andrea Iacovitti 2016-06-10 12:39:04 UTC
Git commit b1ddfe44f1360065960e150389075bfbc9f0e7f3 by Andrea Iacovitti.
Committed on 10/06/2016 at 12:36.
Pushed by aiacovitti into branch 'KDE/4.14'.

Fix parsing background-clip in shorthand.
If one <box> value is present then it sets both background-origin and background-clip to that value.

M  +20   -6    khtml/css/cssparser.cpp

http://commits.kde.org/kdelibs/b1ddfe44f1360065960e150389075bfbc9f0e7f3