-
Notifications
You must be signed in to change notification settings - Fork 682
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
[css-logical][selectors] Should flow-relative border colors be allowed in :visited? #2844
Comments
The related text doesn't seem to be in the spec now? |
According to #2263 (comment),
And from https://drafts.csswg.org/css-logical/#box,
So it seems flow-relative border colors should work in |
Then the question is whether the writing mode should be ignored in :visited or if it should affect the logical-to-physical mapping, e.g. a {
border: 20px solid red;
writing-mode: horizontal-tb;
}
a:visited {
border-block-start-color: green;
writing-mode: vertical-lr;
} Should |
Variables are a whole different step from value computation. Saying that writing-mode and direction applies to Note that there's still another case we should define which is how should it resolve for What I've implemented in Gecko uses the unvisited writing mode unconditionally for custom-property mapping (that is, Also, I think it's a much easier behavior to implement at least for WebKit and Blink as well. |
Note also that per the spec as proposed these properties should be useless (i.e., always be resolved with the default writing-mode / direction). I think nobody would want that behavior, and matching the writing-mode that gets used on layout (the unvisited one) makes sense. |
Yes, that's how my patch for Blink behaves (but it was rolled out due to an unrelated problem) |
Yes, they apply. I don't see any reason why they wouldn't. +1 to @emilio’s comment. Transferring issue to selectors-4 for clarification on how :visited interacts with writing-mode if needed, this isn't an issue with logical properties. |
According to 4a4b81c, "the 'border-color' sub-properties" are allowed in
:visited
. This seems to refer toborder-top-color
,border-right-color
,border-bottom-color
andborder-left-color
.But what about the flow-relative
border-block-start-color
,border-block-end-color
,border-inline-start-color
andborder-inline-end-color
?They are basically the same, so I guess they should also be allowed, but since this kind of things are delicate due to privacy concerns, I want a confirmation.
The text was updated successfully, but these errors were encountered: