|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-08-01 01:26 UTC] smokey101stair at gmail dot com
Description: ------------ I first reported this change at [1]. This is the result of a change from [2], which changes how the CSS properties overflow-wrap and word-wrap work. You can see the difference in the image[4]. [3] is currently a discussion about whether this change should be reverted or not, so its probably a good idea to follow along and review any usage of overflow-wrap and word-wrap on the PHP website. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1479302 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1472386 [3] https://github.com/w3c/csswg-drafts/issues/2951 [4] https://user-images.githubusercontent.com/24432753/43457627-c0444704-94c7-11e8-980a-13d1b7a232f5.png PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Alternative approaches to mitigate this a bit: 1. Using CSS word wrapping/breaking rules (prefered by me): .doctable td { word-break:break-word; /* or even 'break-all' */ /* also word-wrap: as behavior differs a bit between browsers. */ } .doctable td:nth-child(1) { word-break:keep-all; /* to avoid breaking keywords mostly in firt column */ } If the cells would have some class this would even be better because then can be defined by CSS which cells content can be wrapped on narrow displays and which better not. 2. Using grid layout CSS rules for arranging the cells of a doctable row into a grid: Another approach would be to use alternate rendering of the table columns using e.g. css grid layout templates for the table rows for small displays. (probably too complex for now as number and type of columns differs through the documentation an topics, maybe first set consistent css class attributes for the td first) example css transformation of a tr row by grid layout https://www.php.net/manual/en/filter.filters.validate.php ------------------------------- | id | name | options | flags | ------------------------------- | description | -------------------------------