WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
53148
Location of <style> block affects generation of anonymous table boxes
https://bugs.webkit.org/show_bug.cgi?id=53148
Summary
Location of <style> block affects generation of anonymous table boxes
Tab Atkins
Reported
2011-01-25 17:19:28 PST
Testcase: <!doctype html> <style> #a > span { display: table-cell; } </style> <div id=a> <span>a</span> <span>b</span> </div> <div id=b> <span>a</span> <span>b</span> </div> <style> #b > span { display: table-cell; } </style> The contents of #a and #b should be identical, as they have identical structure and identical CSS applied to them - the two spans should be wrapped in an anonymous table box. Instead, #b generates *two* anonymous table boxes, one for each span. This is an error.
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-12-15 14:28:02 PST
(In reply to Tab Atkins from
comment #0
)
> Testcase: > <!doctype html> > <style> > #a > span { display: table-cell; } > </style> > <div id=a> > <span>a</span> > <span>b</span> > </div> > <div id=b> > <span>a</span> > <span>b</span> > </div> > <style> > #b > span { display: table-cell; } > </style> > > The contents of #a and #b should be identical, as they have identical > structure and identical CSS applied to them - the two spans should be > wrapped in an anonymous table box. > > Instead, #b generates *two* anonymous table boxes, one for each span. This > is an error.
In JSFiddle:
https://jsfiddle.net/zr8thm5u/show
(based of
Comment 0
), it seems to be same across Safari 17.2, Firefox Nightly 122 and Chrome Canary 122. Do we need anything more?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug