Bug 364158

Summary: background-origin/background-clip not correctly parsed in shorthand
Product: [Applications] konqueror Reporter: Andrea Iacovitti <aiacovitti>
Component: khtml parsingAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: testcase

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