Skip to content
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

fix(css): update "outline-style" syntax #574

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Issue with "outline-style"
 Formal Syntax incorrectly implies that all border-style values can be used. Resolving issue: #567

See for more info: https://www.w3.org/TR/css-ui-4/#typedef-outline-line-style
  • Loading branch information
timeowilliams committed Mar 15, 2022
commit c369cd2d50ac0494bc60e9b6535623479947dff2
2 changes: 1 addition & 1 deletion css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6948,7 +6948,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/outline-offset"
},
"outline-style": {
"syntax": "auto | <'border-style'>",
"syntax": "auto | <'outline-line-style'>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to have outline-line-style defined somewhere.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @teoli2003 - for getting this resolved, I'm not finding any MDN URL specified for this. I'm going to head over to the mdn/content repo and submit a PR for this.

Is this what we had in mind?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or was it something along the lines of a similiar example, outline-width

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should list the valid values and not use <'outline-line-style'>". It seems not useful to create a whole type page for something used in one place.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timeowilliams Do you still want to add the values?

Basically (source):

<outline-line-style> accepts the same values as <line-style> (CSS Backgrounds 3 §3.2 Line Patterns: the border-style properties) with the same meaning, except that hidden is not a legal outline style. In addition, the outline-style property accepts the value auto.

And line-style accepts these values (source):

<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

"media": [
"visual",
"interactive"
Expand Down