Skip to content

Conversation

@AlbaGuy
Copy link

@AlbaGuy AlbaGuy commented Mar 15, 2024

Description:
This pull request implements the text-align-last css property.

Changes Made:
I created a protected function _text_align_last() in src/FrameReflow/Block.php file.
In the justify case (that is what i needed) i m doing a continue if not last line with
if ($line->br || $i !== $last_line_index) { **continue;** }
In reflow() function called this new function with $this->_text_align_last();

Testing:
Tested with PHPUnit with PHP Version 8.0.25 and works greatly.

Related Issues:
doing issue reported in github repository (#2311).

@bsweeney bsweeney added this to the 3.1.0 milestone Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inclusion of "text-align-last" CSS3 functionality #contributing-code

2 participants