FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Recognize more size units by raxbg · Pull Request #647 · MyIntervals/PHP-CSS-Parser · GitHub

Repository navigation

Recognize more size units - #647

Open
raxbg wants to merge 1 commit into
MyIntervals:mainfrom
NitroPack:improve/recognize-more-size-units
Open

raxbg wants to merge 1 commit into
MyIntervals:mainfrom
NitroPack:improve/recognize-more-size-units

Conversation

raxbg commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

This PR adds more size units to be correctly recognized by the parser.

JakeQZ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for this. The changes look fine. However the test case SizeTest should be extended to cover the units now supported. Also, could you add an entry to CHANGELOG.md (newest first)? I've also made a suggestion to make a DocBlock comment more maintainable.

Comment thread src/Value/Size.php
{
/**
* vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
* vh/vw/vm(ax)/vmin/rem/svh/lvh/dvh/svw/lvw/dvw are absolute insofar as they don’t scale to the immediate parent (only the viewport)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Rather than having to maintain the llist of units in the comment, it might be better to make the comment generic.

Suggested change
* vh/vw/vm(ax)/vmin/rem/svh/lvh/dvh/svw/lvw/dvw are absolute insofar as they don’t scale to the immediate parent (only the viewport)
* These are absolute insofar as they don’t scale to the immediate parent (only the viewport).

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL