Open Bug 1177536 Opened 9 years ago Updated 2 years ago

padding-left doubled on element with ::first-line selector following a rtl character

Categories

(Core :: Layout: Block and Inline, defect)

38 Branch
Unspecified
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: github, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Attached file padding issue.html (obsolete) —
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3

Steps to reproduce:

create a character entity of a rtl character (such as an arabic character) followed by an inline-block or block element with non-zero padding-left and a ::first-line selector (even with no defined css properties)


Actual results:

the element appears to have double the amount of padding-left, which can cause its content to overflow the right


Expected results:

the apparent padding-left should match the padding-left defined in the css, and the element's content should not overflow
this seemed to start about 2 or 3 versions ago
OS: Unspecified → Mac OS X
Comment on attachment 8626322 [details]
padding issue.html

><!doctype html>
><html lang="en" dir="ltr">
>	<head>
>		<meta charset="utf-8">
>		<title>padding issue</title>
>		<style>
>			p {
>				border: 1px solid black;
>				display: inline-block;
>				padding-left: 10px;
>			}
>			p::first-line {
>				
>			}
>		</style>
>	</head>
>	<body>
>
>		&#1575;
>		<p>overflowing text</p>
>
>	</body>
></html>
I can see no difference when replacing &#1575; with English character.
Flags: needinfo?(github)
Using the markup from the previous comment? The markup in the attachment does not reveal the problem, because it uses display: inline; instead of display: inline-block;. I'm not sure how to update the code in the attachment.
(In reply to jonathan tucker from comment #4)
> Using the markup from the previous comment? The markup in the attachment
> does not reveal the problem, because it uses display: inline; instead of
> display: inline-block;. I'm not sure how to update the code in the
> attachment.

It is not possible to edit attachments. You should upload new attachment and mark the previous attachment as an obsolete.
Attachment #8626322 - Attachment is obsolete: true
Severity: normal → S3

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit auto_nag documentation.

Flags: needinfo?(github)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: