Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

allow image-size accept Url parameter #3763

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

heroboy
Copy link

@heroboy heroboy commented Nov 18, 2022

What: image-size, image-width, image-height can accept parameter like url(a.png)

Why:
I can write code like

.xxx{
     background: url(a.png);
     width: image-width($background);
}

else I have to write:

@img: 'a.png'
.xxx{
     background: url(@img);
     width: image-width(@img);
}

How:

Checklist:

  • Documentation
  • Added/updated unit tests
  • Code complete

This reverts commit 4cd797e.

allow image-size accept Url parameter

allow image-size accept Url parameter
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants