WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 107214
WebVTT <i>, <b> and <u> elements should have default styles
https://bugs.webkit.org/show_bug.cgi?id=107214
Summary
WebVTT <i>, <b> and <u> elements should have default styles
Dima Gorbik
Reported
2013-01-17 18:40:12 PST
We shouldn't reuse HTMLElements but set css properties on span elements as specs require.
Attachments
Proposed fix 0.1
(7.64 KB, patch)
2013-02-01 19:58 PST
,
Dima Gorbik
koivisto
: review+
koivisto
: commit-queue-
Details
Formatted Diff
Diff
Proposed fix 0.2
(4.69 KB, patch)
2013-02-04 13:54 PST
,
Dima Gorbik
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dima Gorbik
Comment 1
2013-02-01 19:58:50 PST
Created
attachment 186208
[details]
Proposed fix 0.1
Elliott Sprehn
Comment 2
2013-02-01 21:38:49 PST
Comment on
attachment 186208
[details]
Proposed fix 0.1 View in context:
https://bugs.webkit.org/attachment.cgi?id=186208&action=review
> Source/WebCore/css/mediaControls.css:270 > +video::-webkit-media-text-track-container ruby > rt {
Can we leave the ruby changes out of this patch since there's no tests? The test above doesn't have anything ruby related.
> Source/WebCore/rendering/RenderObject.cpp:167 > + if (element->hasTagName(rubyTag) || element->hasTagName(WebVTTElement::rubyElementTagName())) {
Lets leave all the changes in this file out until you have some tests.
Silvia Pfeiffer
Comment 3
2013-02-01 22:02:13 PST
What makes you think that they should by <span>s ? The spec says otherwise:
http://dev.w3.org/html5/webvtt/#webvtt-cue-text-dom-construction-rules
.
Dima Gorbik
Comment 4
2013-02-01 22:37:15 PST
(In reply to
comment #2
)
> (From update of
attachment 186208
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=186208&action=review
> > > Source/WebCore/css/mediaControls.css:270 > > +video::-webkit-media-text-track-container ruby > rt { > > Can we leave the ruby changes out of this patch since there's no tests? The test above doesn't have anything ruby related. > > > Source/WebCore/rendering/RenderObject.cpp:167 > > + if (element->hasTagName(rubyTag) || element->hasTagName(WebVTTElement::rubyElementTagName())) { > > Lets leave all the changes in this file out until you have some tests.
The problem here is that first of all we should implement display: ruby property, but Hixie said that they will rewrite all ruby specs but for now I still should place rt on top of rb. It works with this patch, though you can't see rt's text because it overflows the top bound of the cue box. I think the only proper way to test ruby/rt is to do a DRT of the cue. Would you suggest doing this? I have broken all elements from being rendered at all with my previous patch (on purpose) but those were not covered by test. That's why I decided to fix this regression though there will be no new tests (except for i, b and u). Do you think that's not a good idea?
Dima Gorbik
Comment 5
2013-02-01 22:40:21 PST
(In reply to
comment #3
)
> What makes you think that they should by <span>s ? The spec says otherwise:
http://dev.w3.org/html5/webvtt/#webvtt-cue-text-dom-construction-rules
.
I only used 'spans' in the bug description because specs say something like "These represent spans of underline text ". I don't use html spans of course, only plain elements. I should probably change the bug description and the changelog so that it's not confusing.
Silvia Pfeiffer
Comment 6
2013-02-01 22:51:30 PST
Ah, right, in the meaning of "span of text". I agree that it's an unfortunate choice of word in the spec and confusing. Could you use "span of text" rather than just "span"? I might suggest replacing the word "span" with "snippet" or "passage" in the spec?
Dima Gorbik
Comment 7
2013-02-01 22:56:15 PST
(In reply to
comment #6
)
> Ah, right, in the meaning of "span of text". I agree that it's an unfortunate choice of word in the spec and confusing. Could you use "span of text" rather than just "span"? I might suggest replacing the word "span" with "snippet" or "passage" in the spec?
How about just "i, b, u WebVTT elements should have default styles" ?
Silvia Pfeiffer
Comment 8
2013-02-01 23:15:12 PST
Works for me! Thanks!
Dima Gorbik
Comment 9
2013-02-04 13:54:09 PST
Created
attachment 186452
[details]
Proposed fix 0.2
Radar WebKit Bug Importer
Comment 10
2013-02-04 13:57:35 PST
<
rdar://problem/13147072
>
WebKit Review Bot
Comment 11
2013-02-04 14:40:51 PST
Comment on
attachment 186452
[details]
Proposed fix 0.2 Clearing flags on attachment: 186452 Committed
r141817
: <
http://trac.webkit.org/changeset/141817
>
WebKit Review Bot
Comment 12
2013-02-04 14:40:55 PST
All reviewed patches have been landed. Closing bug.
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