Skip to content

border-color: inherit drops border definition in Chrome + Safari #90

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

Closed
cburgmer opened this issue Feb 8, 2015 · 4 comments
Closed

Comments

@cburgmer
Copy link
Owner

cburgmer commented Feb 8, 2015

If given the HTML input

<span>text</span>
<style>
body { color: blue; }
span {
    border-width: 10px;
    border-style: solid;
    border-color: inherit;
}
</style>

The resulting svg does not include the given border definition:

<svg xmlns="http://www.w3.org/2000/svg" width="600" height="200" font-size="16px"><foreignObject x="0" y="0" width="600" height="200" style="float: left;"><html xmlns="http://www.w3.org/1999/xhtml"><head/><body><span>text</span>
<style>body { color: blue; }span { }</style></body></html></foreignObject></svg>

It is unclear wether inherit is an available options for color (MDN says so) but at least the other valid options should not be deleted.

@cburgmer cburgmer changed the title border-color: inherit drops border defintion in Chrome + Safari border-color: inherit drops border definition in Chrome + Safari Feb 8, 2015
@cburgmer
Copy link
Owner Author

This can be triggered by changing the span selector to span:hover and set the option {hover: "span"}.

@cburgmer
Copy link
Owner Author

Here's a "minimal" test case http://jsfiddle.net/rs8t5w43/1/.

Chrome and Safari seem to not allow round-trip conversion of border-color: inherit; which alone seems to be valid/understood when in a single property, but invalid/unsupported when in the shorthand property border.

@cburgmer
Copy link
Owner Author

Nothing much we can do here.

@cburgmer
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant