blob: 07744f14af95579e95f747656a8d7daaf5fe0a75 [file] [log] [blame]
layer at (0,0) size 800x923
RenderView at (0,0) size 800x600
layer at (0,0) size 800x923
RenderBlock {HTML} at (0,0) size 800x923
RenderBody {BODY} at (8,21) size 784x877
RenderBlock {H1} at (0,0) size 784x76
RenderText {#text} at (0,1) size 781x74
text run at (0,1) width 781: "Problem: Safari improperly handles generated content in"
text run at (0,39) width 682: "certain cases when used with multiple class names"
RenderBlock {P} at (0,97) size 784x41
RenderInline {EM} at (0,0) size 767x39
RenderText {#text} at (0,0) size 767x39
text run at (0,0) width 767: "When referencing an element by two class names simultaneously, Safari won't generate content (using :before or :after)"
text run at (0,20) width 122: "within the element."
RenderBlock {P} at (0,153) size 784x41
RenderText {#text} at (0,0) size 124x19
text run at (0,0) width 124: "Assume we have a "
RenderInline {CODE} at (0,0) size 24x17
RenderText {#text} at (123,2) size 24x17
text run at (123,2) width 24: "div"
RenderText {#text} at (146,0) size 150x19
text run at (146,0) width 150: " with two class names: "
RenderInline {CODE} at (0,0) size 25x17
RenderText {#text} at (295,2) size 25x17
text run at (295,2) width 25: "box"
RenderText {#text} at (319,0) size 32x19
text run at (319,0) width 32: " and "
RenderInline {CODE} at (0,0) size 24x17
RenderText {#text} at (350,2) size 24x17
text run at (350,2) width 24: "one"
RenderText {#text} at (373,0) size 85x19
text run at (373,0) width 85: ". Within that "
RenderInline {CODE} at (0,0) size 25x17
RenderText {#text} at (457,2) size 25x17
text run at (457,2) width 25: "div"
RenderText {#text} at (481,0) size 77x19
text run at (481,0) width 77: ", we have a "
RenderInline {CODE} at (0,0) size 8x17
RenderText {#text} at (557,2) size 8x17
text run at (557,2) width 8: "p"
RenderText {#text} at (564,0) size 782x39
text run at (564,0) width 218: " (paragraph) tag, after which we'd"
text run at (0,20) width 475: "like to insert generated content. One way to do so would be the following:"
RenderBlock {PRE} at (20,209) size 764x18 [color=#FF0000]
RenderInline {CODE} at (0,0) size 447x17
RenderText {#text} at (0,0) size 447x17
text run at (0,0) width 447: "div.box.one p:after{ content:'generated content here!'; }"
RenderBlock {P} at (0,242) size 784x21
RenderText {#text} at (0,0) size 741x19
text run at (0,0) width 741: "But that doesn't work in Safari. However, if you drop one of the class names, as shown below, it works as expected:"
RenderBlock {PRE} at (20,278) size 764x18 [color=#008000]
RenderInline {CODE} at (0,0) size 415x17
RenderText {#text} at (0,0) size 415x17
text run at (0,0) width 415: "div.box p:after{ content:'generated content here!'; }"
RenderBlock {P} at (0,311) size 784x41
RenderText {#text} at (0,0) size 294x19
text run at (0,0) width 294: "Note also that the bug only applies to content "
RenderInline {EM} at (0,0) size 41x19
RenderText {#text} at (293,0) size 41x19
text run at (293,0) width 41: "within"
RenderText {#text} at (333,0) size 276x19
text run at (333,0) width 276: " the classed element \x{2014} generating content "
RenderInline {EM} at (0,0) size 779x39
RenderText {#text} at (608,0) size 779x39
text run at (608,0) width 171: "before or after the element"
text run at (0,20) width 32: "itself"
RenderText {#text} at (31,20) size 77x19
text run at (31,20) width 77: " works fine:"
RenderBlock {PRE} at (20,367) size 764x18 [color=#008000]
RenderInline {CODE} at (0,0) size 431x17
RenderText {#text} at (0,0) size 431x17
text run at (0,0) width 431: "div.box.one:after{ content:'generated content here!'; }"
RenderBlock {HR} at (0,397) size 784x3 [border: (1px inset #000000)]
RenderBlock {H2} at (0,419) size 784x31
RenderText {#text} at (0,1) size 477x28
text run at (0,1) width 477: "Example (view source to see CSS and HTML):"
RenderBlock {P} at (0,469) size 784x21
RenderText {#text} at (0,0) size 340x19
text run at (0,0) width 340: "Both boxes below should contain generated content ("
RenderInline {SPAN} at (0,0) size 53x19 [color=#008000]
RenderText {#text} at (339,0) size 53x19
text run at (339,0) width 53: "in green"
RenderText {#text} at (391,0) size 11x19
text run at (391,0) width 11: "):"
RenderBlock {DIV} at (0,514) size 784x169 [border: (1px solid #000000)]
RenderBlock {H3} at (26,44) size 732x24
RenderText {#text} at (0,0) size 46x22
text run at (0,0) width 46: "Box 1"
RenderBlock {P} at (26,86) size 732x41
RenderBlock (anonymous) at (0,0) size 732x20
RenderText {#text} at (0,0) size 661x19
text run at (0,0) width 661: "This box should contain the text \"generated content\" in CSS2-compliant browsers (but won't in Safari)."
RenderBlock (generated) at (0,20) size 732x20 [color=#008000]
RenderText at (0,0) size 114x19
text run at (0,0) width 114: "generated content"
RenderBlock {DIV} at (0,707) size 784x170 [border: (1px solid #000000)]
RenderBlock {H3} at (26,44) size 732x24
RenderText {#text} at (0,0) size 46x22
text run at (0,0) width 46: "Box 2"
RenderBlock {P} at (26,86) size 732x41
RenderBlock (anonymous) at (0,0) size 732x20
RenderText {#text} at (0,0) size 639x19
text run at (0,0) width 639: "This box should contain the text \"generated content\" in CSS2-compliant browsers, including Safari."
RenderBlock (generated) at (0,20) size 732x20 [color=#008000]
RenderText at (0,0) size 114x19
text run at (0,0) width 114: "generated content"