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
[AI Help] Question: Can you use counter() with calc() ? #48
Comments
Hi @LeCitronVert, 👋 Thank you for reporting this issue, I can reproduce the issue with GPT-3.5 (free user). Here's how the answer looks with GPT-4 (paid MDN Plus subscription) using the same context. GPT-4 has more base knowledge about
And here's how the GPT-3.5 answer will look in the next version of AI Help, which will use a newer embedding model to determine relevant MDN content, and consults the following MDN pages:
Let us know what you think about these answers. 🙏 |
What is the issue with the answer?
The answer provided is incorrect, as
counter()
cannot be used insidecalc()
due to returning a string.It seems to me like the AI did not check MDN pages about
calc()
and thus did not take return types into account.How would you categorize this issue?
What did you ask?
What did AI Help answer?
Yes, you can use the
counter()
function within thecalc()
function in CSS. This can be useful for dynamically calculating values based on counters. Here's an example:In this example, the
margin-left
of eachli
element is calculated based on the value of thelistCounter
counter. Thecalc()
function allows you to perform mathematical calculations, and combining it with thecounter()
function provides a way to create dynamic styles based on counter values.What MDN pages did AI Help consult?
The text was updated successfully, but these errors were encountered: