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. [csswg] Agenda conf call 7-Sep-2016 (from stearns@adobe.com on 2016-09-07)
  2. [css-grid] Open Issues (from fantasai@inkedblade.net on 2016-09-06)
  3. [CSSWG] Minutes San Francisco F2F 2016-05-09 Part I: Flexbox, Box Alignment, Grid [css-flexbox] [css-align] [css-grid] (from daelcss@gmail.com on 2016-05-24)
  4. [CSSWG] Minutes Sapporo F2F 2015-10-27 Part II: Fragmentation, Scroll Snapping Issues [css-break] [css-snappoints] (from daelcss@gmail.com on 2015-11-23)
  5. Minutes Sapporo F2F 2015-10-26 Part III: Wide Gamut/Deep Color, Scroll Snap [css-color] [css-snappoints] (from daelcss@gmail.com on 2015-11-18)
  6. [CSSWG] Minutes Telecon 2015-10-07 [css-2015] [css-text] [cssom-view] [css-writing-modes] [css-logical-properties] [css-grid] [css-flexbox] [css-break] (from daelcss@gmail.com on 2015-10-08)
  7. Scheduling of F2F items to allow remote paritipation. (from szilles@adobe.com on 2014-05-17)
  8. Re: [css-masking] editorial changes - spec update (from dschulze@adobe.com on 2014-01-10)
  9. Re: [css-masking] editorial changes - spec update (from fantasai.lists@inkedblade.net on 2014-01-08)
  10. Re: [css-masking] editorial changes - spec update (from dschulze@adobe.com on 2013-12-17)
  11. [css3-images] object sizing edits (from fantasai.lists@inkedblade.net on 2012-03-27)
  12. Re: [CSSWG] Minutes and Resolutions Telecon 2012-03-21 (from jackalmage@gmail.com on 2012-03-21)
  13. [CSSWG] Minutes and Resolutions Telecon 2012-03-21 (from fantasai.lists@inkedblade.net on 2012-03-21)
  14. 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)
  15. [CSSWG] Minutes and Resolutions 2009-04-08 (from fantasai.lists@inkedblade.net on 2009-06-08)
  16. Re: [CSSWG] Minutes, 25 March 2009 telcon (from fantasai.lists@inkedblade.net on 2009-06-08)
  17. RE: [CSS21] last edition: pity (from amikhal@abisoft.spb.ru on 2009-05-06)
  18. RE: [CSS21] last edition: pity (from sylvaing@microsoft.com on 2009-05-05)
  19. Minutes, 8 April CSS WG telcon (from chris@w3.org on 2009-04-08)
  20. Agenda conf call 8-apr-2009 (from daniel.glazman@disruptive-innovations.com on 2009-04-08)
  21. Re: Agenda conf call 1-apr-2009 (from tah@mail.rit.edu on 2009-04-01)
  22. Re: Agenda conf call 1-apr-2009 (from bert@w3.org on 2009-04-01)
  23. Agenda conf call 1-apr-2009 (from peter.linss@hp.com on 2009-03-31)
  24. [CSSWG] Minutes, 25 March 2009 telcon (from chris@w3.org on 2009-03-25)
  25. CSS 2.1 issue 24 draft text (from bert@w3.org on 2009-03-25)
  26. Agenda 25-mar-2009 - - Daylight Saving Time still in effect (from daniel.glazman@disruptive-innovations.com on 2009-03-24)
  27. Re: Agenda conf call 18-mar-2009 - Daylight Saving Time now in effect (from dino@apple.com on 2009-03-18)
  28. Agenda conf call 18-mar-2009 - Daylight Saving Time now in effect (from peter.linss@hp.com on 2009-03-18)
  29. [CSSWG] Minutes and Resolutions 2009-02-25 (from fantasai.lists@inkedblade.net on 2009-03-08)
  30. [CSSWG] Resolutions 2009-02-25 (from fantasai.lists@inkedblade.net on 2009-02-26)
  31. Minutes, CSS WG, 2009-02-25 (from chris@w3.org on 2009-02-25)
  32. Re: Agenda conf call 25-feb-2009 (from hyatt@apple.com on 2009-02-23)
  33. Agenda conf call 25-feb-2009 (from peter.linss@hp.com on 2009-02-23)
  34. Re: Agenda conf call 18-feb-2009 (from fantasai@inkedblade.net on 2009-02-19)
  35. [CSSWG] Minutes and Resolutions 2008-06-16 (from fantasai.lists@inkedblade.net on 2008-06-16)
  36. Re: Agenda CSS WG Conf Call 10-june - CSS2.1 Issues (from fantasai@inkedblade.net on 2008-06-10)
  37. Re: [CSS21] parsing invalid syntax and matching brackets (from gabriele.romanato@gmail.com on 2008-05-21)
  38. [CSS21] parsing invalid syntax and matching brackets (from fantasai.lists@inkedblade.net on 2008-05-21)
  39. Re: [css3-background] alternatives to background-origin (from alan@css-class.com on 2008-05-21)
  40. [css3-background] alternatives to background-origin (was: Issues and Proposed Resolutions) (from bert@w3.org on 2008-05-20)
  41. [css3-background] Issues and Proposed Resolutions (from fantasai.lists@inkedblade.net on 2008-05-13)
  42. [CSSWG] Minutes and Resolutions 2008-04-09 (from fantasai.lists@inkedblade.net on 2008-04-10)
  43. 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.

Display change log ATOM feed


Alan Stearns <stearns@adobe.com>, Rossen Atanassov <ratan@microsoft.com>, Chairs, Chris Lilley <chris@w3.org>, Fuqiao Xue <xfq@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: 24.html,v 1.1 2020/01/17 10:39:41 carcone Exp $