-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Border style reducer does not return all possible shorthands for CSS properties #10399
Comments
This definition is not valid (for me). If you define an element with such style, a browser will use See the attached image: Border-color: vs. Border-color: The short notation must contain all three definitions: width, style, and color. |
When stating that it's valid syntax, I was referring to https://drafts.csswg.org/css-backgrounds-3/#border-shorthands or this https://www.w3.org/TR/CSS2/box.html#border-shorthand-properties . |
I read the spec, and now I see that these values are not obligatory. So there must be a reason why browsers inherit the initial value instead of the last specified in a tree. |
What the style reducers do now might be fine for our needs and they might be not in line with the spec. It's just that for now, Matcher is incorrectly working because of the missing style. We might as well modify the Matcher instead of reducers - I just wanted to point out that there's a problem. |
@maxbarnas @pomek wanted to see if there are any updates on this issue? Unfortunately our users have flagged this a few times since we first reported it here |
@maxbarnas @pomek wanted to see if are any updates on this issue? We are getting users flagging this issue on a monthly basis. cc @magda-chrzescian @mlewand @mdabkowska88 |
Hi CKE Team, I'm writing to see if there are any updates on this issue? Our users continue to flag and follow-up about this ticket. Resolving would improve the experience of using tables. Thank you @maxbarnas @pomek @magda-chrzescian @mdabkowska88 @mlewand |
📝 Provide detailed reproduction steps (if any)
Assuming this GHS pattern:
and markup like below:
There is a bug where border style reducer returns only style properties like
border-left-width: 1px
andborder-left-style: solid
, but notborder-left: 1px solid
which prevents Matcher from correctly matching pattern to the style of the element.The source of this behavior can be found here: https://github.com/ckeditor/ckeditor5/blob/e6cd6e4/packages/ckeditor5-engine/src/view/styles/border.js#L331-L362 .
This is a follow-up to this comment.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: