Closed
Bug 1480740
Opened 7 years ago
Closed 7 years ago
br clear attribute do not respect specification
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: kes-kes, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180712135629
Steps to reproduce:
<br clear="clear: all;">
Actual results:
Firefox do not understand attribute value 'all' (see attached file)
instead it suggest next attributes (see attached file)
Expected results:
https://www.w3.org/TR/html401/present/graphics.html
clear = none|left|right|all [CI]
Deprecated. Specifies where the next line should appear in a visual browser after the line break caused by this element. This attribute takes into account floating objects (images, tables, etc.). Possible values:
none: The next line will begin normally. This is the default value.
left: The next line will begin at nearest line below any floating objects on the left-hand margin.
right: The next line will begin at nearest line below any floating objects on the right-hand margin.
all: The next line will begin at nearest line below any floating objects on either margin.
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
there are 2 "clear"s,
1st one is deprecated attribute [1], which has "all",
2nd one is CSS property [2], which does not have "all".
and you're specifying "all" for 2nd one, which is invalid.
and also "all" shouldn't be listed in suggestion.
also, <br clear="clear: all;"> is wrong,
clear attribute accepts one of onone|left|right|all, but the value includes unnecessary "clear:" part,
which looks like a style rule.
you should specify <br style="clear: both;">
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br#Deprecated_attributes
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/clear
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•