Closed Bug 1592164 Opened 5 years ago Closed 5 years ago

text system color conflicts with background-clip

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: emilio, Unassigned)

References

Details

Attachments

(1 obsolete file)

Bug 570896 implemented parsing for the background-clip property in the background shorthand.

Seems like that change to the spec was reverted looking at the current draft.

This is causing issues when working on bug 1590894 because adding the text color keyword suddenly changes the meaning of the background (it starts determining background-color, not background-clip).

The css3-backgrounds draft from 13 September 2007 (8cafb8725ac5ec89deb76476b7f7d80f0c2dce1a) does contain background-clip in the background shorthand, haven't found yet when it went away.

I can take this to unblock bug 1590894.

Assignee: nobody → emilio
Flags: needinfo?(emilio)

Bug 570896 implemented parsing for the background-clip property in the
background shorthand, but that change was later reverted in:

https://github.com/w3c/csswg-drafts/commit/3c8802f0a0eb0526b933c91888b3a2a49b71b593

This is causing issues when working on bug 1590894 because adding the text color
keyword suddenly changes the meaning of the background (it starts determining
background-color, not background-clip).

Align with other browsers and with the spec by not parsing background-clip in
the shorthand, always expanding to the initial value.

So, actually, it should parse it (and Mats pointed out in my patch the right section of the spec):

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.

So now the issue is: backgrounds-3 doesn't define background-clip: text, but presumably we do want to be able to specify background-clip: text on the background shorthand, so the text color is not backwards compatible...

I'll raise this with the CSSWG, as we could go in a number of ways about this.

Flags: needinfo?(emilio)
Assignee: emilio → nobody
Summary: Background shorthand shouldn't parse background-clip. → text system color conflicts with background-clip
Attachment #9104811 - Attachment is obsolete: true
Priority: -- → P3

Note renaming in css-color-4 of new system color Text to CanvasText
https://github.com/w3c/csswg-drafts/issues/4465#issuecomment-547994485

Yeah, this is wontfix per that resolution.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: