Support white-space:nowrap.
This commit is contained in:
parent
b6202ab8cf
commit
ac43c2eaea
|
@ -2744,8 +2744,11 @@ bool layout_line(struct box *first, int *width, int *y,
|
||||||
!left && !right && inline_count == 1) {
|
!left && !right && inline_count == 1) {
|
||||||
/* first word of box doesn't fit, but no floats and
|
/* first word of box doesn't fit, but no floats and
|
||||||
* first box on line so force in */
|
* first box on line so force in */
|
||||||
if (space == 0) {
|
if (space == 0 || css_computed_white_space(
|
||||||
/* only one word in this box or not text */
|
split_box->style) ==
|
||||||
|
CSS_WHITE_SPACE_NOWRAP) {
|
||||||
|
/* only one word in this box, or not text
|
||||||
|
* or white-space:nowrap */
|
||||||
b = split_box->next;
|
b = split_box->next;
|
||||||
} else {
|
} else {
|
||||||
/* cut off first word for this line */
|
/* cut off first word for this line */
|
||||||
|
|
Loading…
Reference in New Issue