-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Bug] Incorrect URL Syntax in @font-face Declarations #100
Comments
HI @Vanessa082 and thanks for this! I'm not sure that adding the quotes is required at this time:
Could you specific which browsers would encounter an issue here? |
Thank you for your feedback regarding the use of quotes in the URL () values within the @font-face declarations. I appreciate your reference to the MDN documentation; it provides valuable context on when quotes are required. While it's true that many modern browsers can handle unquoted URLs without issues, I believe adopting a consistent practice of enclosing all URLs in quotes can enhance clarity and maintainability in our CSS. I suggest we go for one In light of this, I recommend we adopt a policy of consistency, using quotes consistently to help maintain clarity and readability in your CSS. This also avoids any potential confusion about where the URL begins and ends, especially for other developers reading your code. Thank you for considering this suggestion, and I'm looking forward to any further thoughts you might have! |
Description
Incorrect URL syntax in
@font-face
declaration. Theurl()
value is not enclosed in quotes, which may lead to unexpected behavior in certain browsers.Reproduction
@font-face
declarations.@font-face
rules for fonts such as "Source Sans Pro" and "Roboto Condensed."url()
values are not enclosed in quotes.Expectation
The
URL ()
value should be enclosed in quotes to ensure consistent behavior across all browsers.Screenshots
Environment
Resolution
The text was updated successfully, but these errors were encountered: