ISSUE-24: Does the 'background' shorthand needs both clip and origin?

clip and origin shorthand

Does the 'background' shorthand needs both clip and origin?

State:
CLOSED
Product:
CSS3 Backgrounds and Borders
Raised by:
Elika Etemad
Opened on:
2008-04-04
Description:
The 'background' shorthand allows to set 'background-clip' and 'background-origin' (together with all other background properties) in a single line. But because the two properties have the same keywords ('border' and 'padding'), it can be difficult to know which property is set to what. The current shorthand states that the clip values comes before the origin value.

One way to avoid the confusion is to instead allow at most one keyword and apply it to *both* properties: 'border' (both are set to 'border'), 'padding' (both are set to 'padding'), 'content' (both are set to 'content') or no keyword at all (the default, i.e., clip is border and origin is padding).

This requires that 'background-clip' be extended to accept the keyword 'content'.

It makes it impossible to specify the combinations 'padding border', 'border content' and 'padding content' in the shorthand. They would require the individual properties.
Related Actions Items:
No related actions
Related emails:
  1. Scheduling of F2F items to allow remote paritipation. (from szilles@adobe.com on 2014-05-17)
  2. Re: [css-masking] editorial changes - spec update (from dschulze@adobe.com on 2014-01-10)
  3. Re: [css-masking] editorial changes - spec update (from fantasai.lists@inkedblade.net on 2014-01-08)
  4. Re: [css-masking] editorial changes - spec update (from dschulze@adobe.com on 2013-12-17)
  5. [css3-images] object sizing edits (from fantasai.lists@inkedblade.net on 2012-03-27)
  6. Re: [CSSWG] Minutes and Resolutions Telecon 2012-03-21 (from jackalmage@gmail.com on 2012-03-21)
  7. [CSSWG] Minutes and Resolutions Telecon 2012-03-21 (from fantasai.lists@inkedblade.net on 2012-03-21)
  8. Minutes and Resolutions Paris F2F 2012-02-07 Tue Morning I: Regions Issues, Nested Style Rules (from fantasai.lists@inkedblade.net on 2012-02-12)
  9. [CSSWG] Minutes and Resolutions 2009-04-08 (from fantasai.lists@inkedblade.net on 2009-06-08)
  10. Re: [CSSWG] Minutes, 25 March 2009 telcon (from fantasai.lists@inkedblade.net on 2009-06-08)
  11. RE: [CSS21] last edition: pity (from amikhal@abisoft.spb.ru on 2009-05-06)
  12. RE: [CSS21] last edition: pity (from sylvaing@microsoft.com on 2009-05-05)
  13. Minutes, 8 April CSS WG telcon (from chris@w3.org on 2009-04-08)
  14. Agenda conf call 8-apr-2009 (from daniel.glazman@disruptive-innovations.com on 2009-04-08)
  15. Re: Agenda conf call 1-apr-2009 (from tah@mail.rit.edu on 2009-04-01)
  16. Re: Agenda conf call 1-apr-2009 (from bert@w3.org on 2009-04-01)
  17. Agenda conf call 1-apr-2009 (from peter.linss@hp.com on 2009-03-31)
  18. [CSSWG] Minutes, 25 March 2009 telcon (from chris@w3.org on 2009-03-25)
  19. CSS 2.1 issue 24 draft text (from bert@w3.org on 2009-03-25)
  20. Agenda 25-mar-2009 - - Daylight Saving Time still in effect (from daniel.glazman@disruptive-innovations.com on 2009-03-24)
  21. Re: Agenda conf call 18-mar-2009 - Daylight Saving Time now in effect (from dino@apple.com on 2009-03-18)
  22. Agenda conf call 18-mar-2009 - Daylight Saving Time now in effect (from peter.linss@hp.com on 2009-03-18)
  23. [CSSWG] Minutes and Resolutions 2009-02-25 (from fantasai.lists@inkedblade.net on 2009-03-08)
  24. [CSSWG] Resolutions 2009-02-25 (from fantasai.lists@inkedblade.net on 2009-02-26)
  25. Minutes, CSS WG, 2009-02-25 (from chris@w3.org on 2009-02-25)
  26. Re: Agenda conf call 25-feb-2009 (from hyatt@apple.com on 2009-02-23)
  27. Agenda conf call 25-feb-2009 (from peter.linss@hp.com on 2009-02-23)
  28. Re: Agenda conf call 18-feb-2009 (from fantasai@inkedblade.net on 2009-02-19)
  29. [CSSWG] Minutes and Resolutions 2008-06-16 (from fantasai.lists@inkedblade.net on 2008-06-16)
  30. Re: Agenda CSS WG Conf Call 10-june - CSS2.1 Issues (from fantasai@inkedblade.net on 2008-06-10)
  31. Re: [CSS21] parsing invalid syntax and matching brackets (from gabriele.romanato@gmail.com on 2008-05-21)
  32. [CSS21] parsing invalid syntax and matching brackets (from fantasai.lists@inkedblade.net on 2008-05-21)
  33. Re: [css3-background] alternatives to background-origin (from alan@css-class.com on 2008-05-21)
  34. [css3-background] alternatives to background-origin (was: Issues and Proposed Resolutions) (from bert@w3.org on 2008-05-20)
  35. [css3-background] Issues and Proposed Resolutions (from fantasai.lists@inkedblade.net on 2008-05-13)
  36. [CSSWG] Minutes and Resolutions 2008-04-09 (from fantasai.lists@inkedblade.net on 2008-04-10)
  37. ISSUE-24 (clip and origin shorthand): Does the 'background' shorthand needs both clip and origin? [CSS3 Backgrounds and Borders] (from sysbot+tracker@w3.org on 2008-04-04)

Related notes:

No additional notes.

Changelog:

Created issue 'Does the 'background' shorthand needs both clip and origin?' nickname clip and origin shorthand owned by Elika Etemad on product CSS3 Backgrounds and Borders, description 'The 'background' shorthand allows to set 'background-clip' and 'background-origin' (together with all other background properties) in a single line. But because the two properties have the same keywords ('border' and 'padding'), it can be difficult to know which property is set to what. The current shorthand states that the clip values comes before the origin value.

One way to avoid the confusion is to instead allow at most one keyword and apply it to *both* properties: 'border' (both are set to 'border'), 'padding' (both are set to 'padding'), 'content' (both are set to 'content') or no keyword at all (the default, i.e., clip is border and origin is padding).

This requires that 'background-clip' be extended to accept the keyword 'content'.

It makes it impossible to specify the combinations 'padding border', 'border content' and 'padding content' in the shorthand. They would require the individual properties.
' non-public

Bert Bos, 4 Apr 2008, 16:27:48

Status changed to 'open'

4 Apr 2008, 16:27:56

Status changed to 'closed'

Elika Etemad, 11 Aug 2008, 14:18:48


Peter Linss <peter.linss@hp.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, Chairs, Chris Lilley <chris@w3.org>, Bert Bos <bert@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.325 2014-09-10 21:42:02 ted Exp $