-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify meaning of context-fill & context-stroke keywords in paint definitions #203
Comments
To be fair, there is a little bit of prose that says "a special keyword that references the value of fill or stroke in a referencing context". But "referencing context" isn't defined. Is a |
I'm pretty sure context-fill and context-stroke are used by SVG in OpenType. They were in the past but I need to double check the latest spec. I do recall in the past having a discussion where we resolved that we need to define the meaning of 'referencing context' for each case. This is the only discussion I could find, and it isn't very useful. |
You did see this text, didn't you? It comes from just above the example above this heading
|
These keywords (well actually only |
I did not see those, Nikos. (Maybe my keyword search of the source code was foiled by some extra whitespace???) That makes more sense. I knew we used to have more information, so I couldn't figure out why it wasn't there. But there is also a lot of intervening text and examples. I think what's needed is a link from the "a special keyword" bit down to the actual definitions, and being consistent with terminology. I'm going to need to do some other tweaking to the wording there, to handle @BigBadaboom Not the way |
That's no different from |
@BigBadaboom But a hatch can be used as a stroke as well. So there is a potential for circular references. Not saying its an insurmountable problem. We can always define them in such a way as to deal with circular references when the occur, but allow the generic case so paint servers that will be used for fill can reference Maybe I'll add a warning that the definition of "context element" could be expanded in the future, and that authors are therefore not to rely on the fallback to "no paint" behavior. |
|
@nikosandronikos Good point. I still don't know why we can't have gradient-stroked hatched lines, but since we can't, See the linked commit 40c4769 for clarifying text. Unfortunately, I made the edits while still on my other branch, so the issue won't auto-close (& the changes won't make it to svgwg.org) until that gets merged. (PS, should have that massive pull request ready for tomorrow.) |
@AmeliaBR In practice you wouldn't get a circlular reference because the hatch definition says it must be a solid colour. So a hatch being used for |
The
context-fill
andcontext-stroke
keywords are listed as valid paint values, but aren'tactually defined anywhere in SVG 2.clearly defined at the point where they are used.The text was updated successfully, but these errors were encountered: