1 layer at (0,0) size 785x887
2 RenderView at (0,0) size 785x600
3 layer at (0,0) size 785x887
4 RenderBlock {HTML} at (0,0) size 785x886.56
5 RenderBody {BODY} at (8,21.44) size 769x840.13
6 RenderBlock {H1} at (0,0) size 769x74
7 RenderText {#text} at (0,0) size 750x74
8 text run at (0,0) width 750: "Problem: Safari improperly handles generated content"
9 text run at (0,37) width 716: "in certain cases when used with multiple class names"
10 RenderBlock {P} at (0,95.44) size 769x36
11 RenderInline {EM} at (0,0) size 755x36
12 RenderText {#text} at (0,0) size 755x36
13 text run at (0,0) width 755: "When referencing an element by two class names simultaneously, Safari won't generate content (using :before or :after)"
14 text run at (0,18) width 119: "within the element."
15 RenderBlock {P} at (0,147.44) size 769x36
16 RenderText {#text} at (0,0) size 123x18
17 text run at (0,0) width 123: "Assume we have a "
18 RenderInline {CODE} at (0,0) size 24x15
19 RenderText {#text} at (123,2) size 24x15
20 text run at (123,2) width 24: "div"
21 RenderText {#text} at (147,0) size 146x18
22 text run at (147,0) width 146: " with two class names: "
23 RenderInline {CODE} at (0,0) size 24x15
24 RenderText {#text} at (293,2) size 24x15
25 text run at (293,2) width 24: "box"
26 RenderText {#text} at (317,0) size 31x18
27 text run at (317,0) width 31: " and "
28 RenderInline {CODE} at (0,0) size 24x15
29 RenderText {#text} at (348,2) size 24x15
30 text run at (348,2) width 24: "one"
31 RenderText {#text} at (372,0) size 82x18
32 text run at (372,0) width 82: ". Within that "
33 RenderInline {CODE} at (0,0) size 24x15
34 RenderText {#text} at (454,2) size 24x15
35 text run at (454,2) width 24: "div"
36 RenderText {#text} at (478,0) size 76x18
37 text run at (478,0) width 76: ", we have a "
38 RenderInline {CODE} at (0,0) size 8x15
39 RenderText {#text} at (554,2) size 8x15
40 text run at (554,2) width 8: "p"
41 RenderText {#text} at (562,0) size 741x36
42 text run at (562,0) width 179: " (paragraph) tag, after which"
43 text run at (0,18) width 501: "we'd like to insert generated content. One way to do so would be the following:"
44 RenderBlock {PRE} at (20,199.44) size 749x15 [color=#FF0000]
45 RenderInline {CODE} at (0,0) size 456x15
46 RenderText {#text} at (0,0) size 456x15
47 text run at (0,0) width 456: "div.box.one p:after{ content:'generated content here!'; }"
48 RenderBlock {P} at (0,230.44) size 769x18
49 RenderText {#text} at (0,0) size 732x18
50 text run at (0,0) width 732: "But that doesn't work in Safari. However, if you drop one of the class names, as shown below, it works as expected:"
51 RenderBlock {PRE} at (20,264.44) size 749x15 [color=#008000]
52 RenderInline {CODE} at (0,0) size 424x15
53 RenderText {#text} at (0,0) size 424x15
54 text run at (0,0) width 424: "div.box p:after{ content:'generated content here!'; }"
55 RenderBlock {P} at (0,295.44) size 769x36
56 RenderText {#text} at (0,0) size 288x18
57 text run at (0,0) width 288: "Note also that the bug only applies to content "
58 RenderInline {EM} at (0,0) size 39x18
59 RenderText {#text} at (288,0) size 39x18
60 text run at (288,0) width 39: "within"
61 RenderText {#text} at (327,0) size 269x18
62 text run at (327,0) width 269: " the classed element \x{2014} generating content "
63 RenderInline {EM} at (0,0) size 763x36
64 RenderText {#text} at (596,0) size 763x36
65 text run at (596,0) width 167: "before or after the element"
66 text run at (0,18) width 29: "itself"
67 RenderText {#text} at (29,18) size 75x18
68 text run at (29,18) width 75: " works fine:"
69 RenderBlock {PRE} at (20,347.44) size 749x15 [color=#008000]
70 RenderInline {CODE} at (0,0) size 440x15
71 RenderText {#text} at (0,0) size 440x15
72 text run at (0,0) width 440: "div.box.one:after{ content:'generated content here!'; }"
73 RenderBlock {HR} at (0,375.44) size 769x2 [border: (1px inset #EEEEEE)]
74 RenderBlock {H2} at (0,397.34) size 769x28
75 RenderText {#text} at (0,0) size 477x28
76 text run at (0,0) width 477: "Example (view source to see CSS and HTML):"
77 RenderBlock {P} at (0,445.25) size 769x18
78 RenderText {#text} at (0,0) size 335x18
79 text run at (0,0) width 335: "Both boxes below should contain generated content ("
80 RenderInline {SPAN} at (0,0) size 51x18 [color=#008000]
81 RenderText {#text} at (335,0) size 51x18
82 text run at (335,0) width 51: "in green"
83 RenderText {#text} at (386,0) size 9x18
84 text run at (386,0) width 9: "):"
85 RenderBlock {DIV} at (0,488.25) size 769x163.44 [border: (1px solid #000000)]
86 RenderBlock {H3} at (26,44.72) size 717x22
87 RenderText {#text} at (0,0) size 44x22
88 text run at (0,0) width 44: "Box 1"
89 RenderBlock {P} at (26,85.44) size 717x36
90 RenderBlock (anonymous) at (0,0) size 717x18
91 RenderText {#text} at (0,0) size 650x18
92 text run at (0,0) width 650: "This box should contain the text \"generated content\" in CSS2-compliant browsers (but won't in Safari)."
93 RenderBlock (pseudo:after) at (0,18) size 717x18 [color=#008000]
94 RenderTextFragment at (0,0) size 111x18
95 text run at (0,0) width 111: "generated content"
96 RenderBlock {DIV} at (0,676.69) size 769x163.44 [border: (1px solid #000000)]
97 RenderBlock {H3} at (26,44.72) size 717x22
98 RenderText {#text} at (0,0) size 44x22
99 text run at (0,0) width 44: "Box 2"
100 RenderBlock {P} at (26,85.44) size 717x36
101 RenderBlock (anonymous) at (0,0) size 717x18
102 RenderText {#text} at (0,0) size 628x18
103 text run at (0,0) width 628: "This box should contain the text \"generated content\" in CSS2-compliant browsers, including Safari."
104 RenderBlock (pseudo:after) at (0,18) size 717x18 [color=#008000]
105 RenderTextFragment at (0,0) size 111x18
106 text run at (0,0) width 111: "generated content"