Changeset 101742 in webkit


Ignore:
Timestamp:
Dec 1, 2011 10:23:05 PM (12 years ago)
Author:
tkent@chromium.org
Message:

REGRESSION(r90971): Placeholder text of input control is rendered
over positioned elements with z-index:0.
https://bugs.webkit.org/show_bug.cgi?id=67408

Reviewed by Darin Adler.

Source/WebCore:

The bug was caused by "position:relative" in the default style of
-webkit-input-placeholder. If there were other positioned elements
with z-index:0, a placeholder might be rendered over them.

"position:relative" is not needed because RenderTextControlSingleLine
and RenderTextControlMultipleLine lay out the placeholder renderer by
custom layout code.

Tests: fast/forms/placeholder-with-positioned-element.html

  • css/html.css:

(::-webkit-input-placeholder): Remove position:relative.

LayoutTests:

Need to update some placeholder-related tests because we don't use position:relative.

  • fast/forms/placeholder-with-positioned-element-expected.html: Added.
  • fast/forms/placeholder-with-positioned-element.html: Added.
  • platform/chromium/test_expectations.txt:
  • platform/gtk/test_expectations.txt:
  • platform/mac-snowleopard/fast/forms/input-placeholder-visibility-1-expected.txt:
  • platform/mac-snowleopard/fast/forms/input-placeholder-visibility-3-expected.txt:
  • platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-1-expected.txt:
  • platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-2-expected.txt:
  • platform/mac/Skipped:
  • platform/mac/fast/forms/placeholder-position-expected.txt:
  • platform/mac/fast/forms/placeholder-pseudo-style-expected.txt:
  • platform/mac/fast/forms/search-styled-expected.txt:
  • platform/mac/fast/forms/textarea-placeholder-pseudo-style-expected.txt:
  • platform/qt/test_expectations.txt:
Location:
trunk
Files:
2 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r101738 r101742  
     12011-12-01  Kent Tamura  <tkent@chromium.org>
     2
     3        REGRESSION(r90971): Placeholder text of input control is rendered
     4        over positioned elements with z-index:0.
     5        https://bugs.webkit.org/show_bug.cgi?id=67408
     6
     7        Reviewed by Darin Adler.
     8
     9        Need to update some placeholder-related tests because we don't use position:relative.
     10
     11        * fast/forms/placeholder-with-positioned-element-expected.html: Added.
     12        * fast/forms/placeholder-with-positioned-element.html: Added.
     13        * platform/chromium/test_expectations.txt:
     14        * platform/gtk/test_expectations.txt:
     15        * platform/mac-snowleopard/fast/forms/input-placeholder-visibility-1-expected.txt:
     16        * platform/mac-snowleopard/fast/forms/input-placeholder-visibility-3-expected.txt:
     17        * platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-1-expected.txt:
     18        * platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-2-expected.txt:
     19        * platform/mac/Skipped:
     20        * platform/mac/fast/forms/placeholder-position-expected.txt:
     21        * platform/mac/fast/forms/placeholder-pseudo-style-expected.txt:
     22        * platform/mac/fast/forms/search-styled-expected.txt:
     23        * platform/mac/fast/forms/textarea-placeholder-pseudo-style-expected.txt:
     24        * platform/qt/test_expectations.txt:
     25
    1262011-12-01  Jacob Goldstein  <jacobg@adobe.com>
    227
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r101732 r101742  
    28492849BUGCR77494 LINUX WIN : fast/repaint/transform-replaced-shadows.html = IMAGE
    28502850
     2851// Need rebaseline.
     2852BUGWK67408 : fast/forms/input-placeholder-visibility-1.html = FAIL
     2853BUGWK67408 : fast/forms/input-placeholder-visibility-3.html = FAIL
     2854BUGWK67408 : fast/forms/placeholder-position.html = FAIL
     2855BUGWK67408 : fast/forms/placeholder-pseudo-style.html = FAIL
     2856BUGWK67408 : fast/forms/search-styled.html = FAIL
     2857BUGWK67408 : fast/forms/textarea-placeholder-pseudo-style.html = FAIL
     2858BUGWK67408 : fast/forms/textarea-placeholder-visibility-1.html = FAIL
     2859BUGWK67408 : fast/forms/textarea-placeholder-visibility-2.html = FAIL
     2860
    28512861// Regression since r82001.
    28522862BUGCR77619 SNOWLEOPARD : plugins/plugin-javascript-access.html = TEXT
  • trunk/LayoutTests/platform/gtk/test_expectations.txt

    r101338 r101742  
    77BUGWK67007 DEBUG : fast/ruby/generated-after-counter-doesnt-crash.html = CRASH
    88BUGWK67007 DEBUG : fast/ruby/generated-before-and-after-counter-doesnt-crash.html = CRASH
     9
     10// Need rebaseline.
     11BUGWK67408 : fast/forms/input-placeholder-visibility-1.html = FAIL
     12BUGWK67408 : fast/forms/input-placeholder-visibility-3.html = FAIL
     13BUGWK67408 : fast/forms/placeholder-position.html = FAIL
     14BUGWK67408 : fast/forms/placeholder-pseudo-style.html = FAIL
     15BUGWK67408 : fast/forms/search-styled.html = FAIL
     16BUGWK67408 : fast/forms/textarea-placeholder-pseudo-style.html = FAIL
     17BUGWK67408 : fast/forms/textarea-placeholder-visibility-1.html = FAIL
     18BUGWK67408 : fast/forms/textarea-placeholder-visibility-2.html = FAIL
    919
    1020// Flaky tests
  • trunk/LayoutTests/platform/mac-snowleopard/fast/forms/input-placeholder-visibility-1-expected.txt

    r92209 r101742  
    1313layer at (13,47) size 119x13
    1414  RenderBlock {DIV} at (3,3) size 119x13
     15layer at (13,47) size 119x13
     16  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     17    RenderText {#text} at (1,0) size 62x13
     18      text run at (1,0) width 62: "Placeholder"
    1519caret: position 0 of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {DIV} of body
  • trunk/LayoutTests/platform/mac-snowleopard/fast/forms/input-placeholder-visibility-3-expected.txt

    r92209 r101742  
    1414  RenderBlock {DIV} at (3,3) size 119x13
    1515    RenderBR {BR} at (1,0) size 0x13
     16layer at (13,47) size 119x13
     17  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     18    RenderText {#text} at (1,0) size 62x13
     19      text run at (1,0) width 62: "Placeholder"
    1620caret: position 0 of child 0 {BR} of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {DIV} of body
  • trunk/LayoutTests/platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-1-expected.txt

    r92209 r101742  
    1414    RenderBlock {DIV} at (3,3) size 155x13
    1515      RenderBR {BR} at (0,0) size 0x13
     16    RenderBlock {DIV} at (3,3) size 155x13 [color=#A9A9A9]
     17      RenderText {#text} at (0,0) size 62x13
     18        text run at (0,0) width 62: "Placeholder"
    1619caret: position 0 of child 0 {BR} of child 0 {DIV} of {#shadow-root} of child 1 {TEXTAREA} of child 3 {DIV} of body
  • trunk/LayoutTests/platform/mac-snowleopard/fast/forms/textarea-placeholder-visibility-2-expected.txt

    r92209 r101742  
    1313  RenderTextControl {TEXTAREA} at (2,2) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1414    RenderBlock {DIV} at (3,3) size 155x13
     15    RenderBlock {DIV} at (3,3) size 155x13 [color=#A9A9A9]
     16      RenderText {#text} at (0,0) size 62x13
     17        text run at (0,0) width 62: "Placeholder"
    1518caret: position 0 of child 0 {DIV} of {#shadow-root} of child 1 {TEXTAREA} of child 3 {DIV} of body
  • trunk/LayoutTests/platform/mac/Skipped

    r101682 r101742  
    495495pointer-lock/
    496496
     497# Placeholder is not rendered since the patch in the following bug. It seems a DRT-only problem.
     498# https://bugs.webkit.org/show_bug.cgi?id=67408
     499fast/forms/textarea-placeholder-set-attribute.html
     500
    497501# https://bugs.webkit.org/show_bug.cgi?id=72435
    498502fast/dom/Window/window-postmessage-arrays.html
  • trunk/LayoutTests/platform/mac/fast/forms/placeholder-position-expected.txt

    r90971 r101742  
    5050layer at (21,13) size 98x13
    5151  RenderBlock {DIV} at (0,0) size 98x13
     52layer at (21,13) size 98x13
     53  RenderBlock {DIV} at (11,3) size 98x13 [color=#A9A9A9]
     54    RenderText {#text} at (1,0) size 63x13
     55      text run at (1,0) width 63: "placeholder"
    5256layer at (13,36) size 119x13
    5357  RenderBlock {DIV} at (3,3) size 119x13
     58layer at (13,36) size 119x13
     59  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     60    RenderText {#text} at (1,0) size 63x13
     61      text run at (1,0) width 63: "placeholder"
    5462layer at (21,59) size 98x13
    5563  RenderBlock {DIV} at (0,0) size 98x13
     64layer at (21,59) size 98x13
     65  RenderBlock {DIV} at (11,3) size 98x13 [color=#A9A9A9]
     66    RenderText {#text} at (34,0) size 63x13
     67      text run at (34,0) width 63: "placeholder"
    5668layer at (35,82) size 84x13
    5769  RenderBlock {DIV} at (0,0) size 84x13
     70layer at (35,82) size 84x13
     71  RenderBlock {DIV} at (25,3) size 84x13 [color=#A9A9A9]
     72    RenderText {#text} at (1,0) size 63x13
     73      text run at (1,0) width 63: "placeholder"
    5874layer at (10,102) size 161x32 clip at (11,103) size 159x30
    5975  RenderTextControl {TEXTAREA} at (2,94) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    6076    RenderBlock {DIV} at (3,3) size 155x13
     77    RenderBlock {DIV} at (3,3) size 155x13 [color=#A9A9A9]
     78      RenderText {#text} at (0,0) size 63x13
     79        text run at (0,0) width 63: "placeholder"
    6180layer at (13,141) size 119x13
    6281  RenderBlock {DIV} at (3,3) size 119x13
     82layer at (13,141) size 119x13
     83  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     84    RenderText {#text} at (1,0) size 63x13
     85      text run at (1,0) width 63: "placeholder"
    6386layer at (10,175) size 161x45 clip at (11,176) size 159x43
    6487  RenderTextControl {TEXTAREA} at (2,167) size 161x45 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    6588    RenderBlock {DIV} at (3,16) size 155x13
     89    RenderBlock {DIV} at (3,16) size 155x13 [color=#A9A9A9]
     90      RenderText {#text} at (0,0) size 63x13
     91        text run at (0,0) width 63: "placeholder"
    6692layer at (19,233) size 164x18
    6793  RenderBlock {DIV} at (6,6) size 164x18
     94layer at (19,233) size 164x18
     95  RenderBlock {DIV} at (6,6) size 164x18 [color=#A9A9A9]
     96    RenderText {#text} at (1,0) size 85x18
     97      text run at (1,0) width 85: "placeholder"
    6898layer at (13,267) size 119x25
    6999  RenderBlock {DIV} at (3,3) size 119x25
     
    72102layer at (146,267) size 119x25
    73103  RenderBlock {DIV} at (3,3) size 119x25
     104layer at (146,267) size 119x25
     105  RenderBlock {DIV} at (3,3) size 119x25 [color=#A9A9A9]
     106    RenderText {#text} at (1,6) size 63x13
     107      text run at (1,6) width 63: "placeholder"
    74108layer at (13,302) size 119x13
    75109  RenderBlock {DIV} at (3,3) size 119x13
     
    78112layer at (146,302) size 119x13
    79113  RenderBlock {DIV} at (3,3) size 119x13
    80 layer at (279,302) size 119x13
    81   RenderBlock {DIV} at (3,3) size 119x13
    82 layer at (21,13) size 98x13
    83   RenderBlock (relative positioned) {DIV} at (11,3) size 98x13 [color=#A9A9A9]
    84     RenderText {#text} at (1,0) size 63x13
    85       text run at (1,0) width 63: "placeholder"
    86 layer at (13,36) size 119x13
    87   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    88     RenderText {#text} at (1,0) size 63x13
    89       text run at (1,0) width 63: "placeholder"
    90 layer at (21,59) size 98x13
    91   RenderBlock (relative positioned) {DIV} at (11,3) size 98x13 [color=#A9A9A9]
    92     RenderText {#text} at (34,0) size 63x13
    93       text run at (34,0) width 63: "placeholder"
    94 layer at (35,82) size 84x13
    95   RenderBlock (relative positioned) {DIV} at (25,3) size 84x13 [color=#A9A9A9]
    96     RenderText {#text} at (1,0) size 63x13
    97       text run at (1,0) width 63: "placeholder"
    98 layer at (13,105) size 155x13
    99   RenderBlock (relative positioned) {DIV} at (3,3) size 155x13 [color=#A9A9A9]
    100     RenderText {#text} at (0,0) size 63x13
    101       text run at (0,0) width 63: "placeholder"
    102 layer at (13,141) size 119x13
    103   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    104     RenderText {#text} at (1,0) size 63x13
    105       text run at (1,0) width 63: "placeholder"
    106 layer at (13,191) size 155x13
    107   RenderBlock (relative positioned) {DIV} at (3,16) size 155x13 [color=#A9A9A9]
    108     RenderText {#text} at (0,0) size 63x13
    109       text run at (0,0) width 63: "placeholder"
    110 layer at (19,233) size 164x18
    111   RenderBlock (relative positioned) {DIV} at (6,6) size 164x18 [color=#A9A9A9]
    112     RenderText {#text} at (1,0) size 85x18
    113       text run at (1,0) width 85: "placeholder"
    114 layer at (146,267) size 119x25
    115   RenderBlock (relative positioned) {DIV} at (3,3) size 119x25 [color=#A9A9A9]
    116     RenderText {#text} at (1,6) size 63x13
    117       text run at (1,6) width 63: "placeholder"
    118114layer at (146,302) size 119x13
    119   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     115  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    120116    RenderText {#text} at (28,0) size 63x13
    121117      text run at (28,0) width 63: "placeholder"
    122118layer at (279,302) size 119x13
    123   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     119  RenderBlock {DIV} at (3,3) size 119x13
     120layer at (279,302) size 119x13
     121  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    124122    RenderText {#text} at (28,0) size 63x13
    125123      text run at (28,0) width 63: "placeholder"
     
    129127  RenderBlock {DIV} at (3,17) size 119x13
    130128layer at (13,339) size 119x13
    131   RenderBlock (relative positioned) {DIV} at (3,17) size 119x13 [color=#A9A9A9]
     129  RenderBlock {DIV} at (3,17) size 119x13 [color=#A9A9A9]
    132130    RenderText {#text} at (1,0) size 63x13
    133131      text run at (1,0) width 63: "placeholder"
  • trunk/LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.txt

    r90971 r101742  
    3030layer at (13,31) size 119x13
    3131  RenderBlock {DIV} at (3,3) size 119x13
    32 layer at (154,31) size 98x13
    33   RenderBlock {DIV} at (0,0) size 98x13
    34 layer at (279,31) size 119x13
    35   RenderBlock {DIV} at (3,3) size 119x13
    36 layer at (412,31) size 119x13
    37   RenderBlock {DIV} at (3,3) size 119x13 [color=#545454]
    38 layer at (545,31) size 119x13
    39   RenderBlock {DIV} at (3,3) size 119x13
    40 layer at (13,54) size 119x13
    41   RenderBlock {DIV} at (3,3) size 119x13
    4232layer at (13,31) size 119x13
    43   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#640000]
     33  RenderBlock {DIV} at (3,3) size 119x13 [color=#640000]
    4434    RenderText {#text} at (1,0) size 22x13
    4535      text run at (1,0) width 22: "text"
    4636layer at (154,31) size 98x13
    47   RenderBlock (relative positioned) {DIV} at (11,3) size 98x13 [color=#640000]
     37  RenderBlock {DIV} at (0,0) size 98x13
     38layer at (154,31) size 98x13
     39  RenderBlock {DIV} at (11,3) size 98x13 [color=#640000]
    4840    RenderText {#text} at (1,0) size 35x13
    4941      text run at (1,0) width 35: "search"
    5042layer at (279,31) size 119x13
    51   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#640000]
     43  RenderBlock {DIV} at (3,3) size 119x13
     44layer at (279,31) size 119x13
     45  RenderBlock {DIV} at (3,3) size 119x13 [color=#640000]
    5246    RenderText {#text} at (1,0) size 51x13
    5347      text run at (1,0) width 51: "password"
    5448layer at (412,31) size 119x13
    55   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#640000]
     49  RenderBlock {DIV} at (3,3) size 119x13 [color=#545454]
     50layer at (412,31) size 119x13
     51  RenderBlock {DIV} at (3,3) size 119x13 [color=#640000]
    5652    RenderText {#text} at (1,0) size 70x13
    5753      text run at (1,0) width 70: "disabled text"
    5854layer at (545,31) size 119x13
    59   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     55  RenderBlock {DIV} at (3,3) size 119x13
     56layer at (545,31) size 119x13
     57  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    6058    RenderText {#text} at (1,0) size 38x13
    6159      text run at (1,0) width 38: "default"
    6260layer at (13,54) size 119x13
    63   RenderBlock (relative positioned) {DIV} at (3,3) size 119x13 [color=#A9A9A9]
     61  RenderBlock {DIV} at (3,3) size 119x13
     62layer at (13,54) size 119x13
     63  RenderBlock {DIV} at (3,3) size 119x13 [color=#A9A9A9]
    6464    RenderText {#text} at (1,0) size 86x13
    6565      text run at (1,0) width 86: "default disabled"
  • trunk/LayoutTests/platform/mac/fast/forms/search-styled-expected.txt

    r90971 r101742  
    1313  RenderBlock {DIV} at (0,0) size 84x13
    1414layer at (35,13) size 84x13 scrollWidth 94
    15   RenderBlock (relative positioned) {DIV} at (25,3) size 84x13 [color=#A9A9A9]
     15  RenderBlock {DIV} at (25,3) size 84x13 [color=#A9A9A9]
    1616    RenderText {#text} at (1,0) size 92x13
    1717      text run at (1,0) width 92: "Search for Events"
  • trunk/LayoutTests/platform/mac/fast/forms/textarea-placeholder-pseudo-style-expected.txt

    r90971 r101742  
    1717  RenderTextControl {TEXTAREA} at (2,20) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    1818    RenderBlock {DIV} at (3,3) size 155x13
     19    RenderBlock {DIV} at (3,3) size 155x13 [color=#640000]
     20      RenderText {#text} at (0,0) size 22x13
     21        text run at (0,0) width 22: "text"
    1922layer at (179,28) size 161x32 clip at (180,29) size 159x30
    2023  RenderTextControl {TEXTAREA} at (171,20) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    2124    RenderBlock {DIV} at (3,3) size 155x13 [color=#545454]
     25    RenderBlock {DIV} at (3,3) size 155x13 [color=#640000]
     26      RenderText {#text} at (0,0) size 70x13
     27        text run at (0,0) width 70: "disabled text"
    2228layer at (348,28) size 161x32 clip at (349,29) size 159x30
    2329  RenderTextControl {TEXTAREA} at (340,20) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    2430    RenderBlock {DIV} at (3,3) size 155x13
     31    RenderBlock {DIV} at (3,3) size 155x13 [color=#A9A9A9]
     32      RenderText {#text} at (0,0) size 38x13
     33        text run at (0,0) width 38: "default"
    2534layer at (517,28) size 161x32 clip at (518,29) size 159x30
    2635  RenderTextControl {TEXTAREA} at (509,20) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
    2736    RenderBlock {DIV} at (3,3) size 155x13 [color=#545454]
    28 layer at (13,31) size 155x13
    29   RenderBlock (relative positioned) {DIV} at (3,3) size 155x13 [color=#640000]
    30     RenderText {#text} at (0,0) size 22x13
    31       text run at (0,0) width 22: "text"
    32 layer at (182,31) size 155x13
    33   RenderBlock (relative positioned) {DIV} at (3,3) size 155x13 [color=#640000]
    34     RenderText {#text} at (0,0) size 70x13
    35       text run at (0,0) width 70: "disabled text"
    36 layer at (351,31) size 155x13
    37   RenderBlock (relative positioned) {DIV} at (3,3) size 155x13 [color=#A9A9A9]
    38     RenderText {#text} at (0,0) size 38x13
    39       text run at (0,0) width 38: "default"
    40 layer at (520,31) size 155x13
    41   RenderBlock (relative positioned) {DIV} at (3,3) size 155x13 [color=#A9A9A9]
    42     RenderText {#text} at (0,0) size 86x13
    43       text run at (0,0) width 86: "default disabled"
     37    RenderBlock {DIV} at (3,3) size 155x13 [color=#A9A9A9]
     38      RenderText {#text} at (0,0) size 86x13
     39        text run at (0,0) width 86: "default disabled"
  • trunk/LayoutTests/platform/qt/test_expectations.txt

    r99656 r101742  
    44
    55BUGWK64526 DEBUG: svg/animations/svgtransform-animation-1.html = CRASH PASS
     6
     7// Need rebaseline.
     8BUGWK67408 : fast/forms/input-placeholder-visibility-1.html = FAIL
     9BUGWK67408 : fast/forms/input-placeholder-visibility-3.html = FAIL
     10BUGWK67408 : fast/forms/placeholder-position.html = FAIL
     11BUGWK67408 : fast/forms/placeholder-pseudo-style.html = FAIL
     12BUGWK67408 : fast/forms/search-styled.html = FAIL
     13BUGWK67408 : fast/forms/textarea-placeholder-pseudo-style.html = FAIL
     14BUGWK67408 : fast/forms/textarea-placeholder-visibility-1.html = FAIL
     15BUGWK67408 : fast/forms/textarea-placeholder-visibility-2.html = FAIL
    616
    717// Slow tests
  • trunk/Source/WebCore/ChangeLog

    r101741 r101742  
     12011-12-01  Kent Tamura  <tkent@chromium.org>
     2
     3        REGRESSION(r90971): Placeholder text of input control is rendered
     4        over positioned elements with z-index:0.
     5        https://bugs.webkit.org/show_bug.cgi?id=67408
     6
     7        Reviewed by Darin Adler.
     8
     9        The bug was caused by "position:relative" in the default style of
     10        -webkit-input-placeholder. If there were other positioned elements
     11        with z-index:0, a placeholder might be rendered over them.
     12
     13        "position:relative" is not needed because RenderTextControlSingleLine
     14        and RenderTextControlMultipleLine lay out the placeholder renderer by
     15        custom layout code.
     16
     17        Tests: fast/forms/placeholder-with-positioned-element.html
     18
     19        * css/html.css:
     20        (::-webkit-input-placeholder): Remove position:relative.
     21
    1222011-12-01  Andreas Kling  <kling@webkit.org>
    223
  • trunk/Source/WebCore/css/html.css

    r101268 r101742  
    506506    display: block !important;
    507507    pointer-events: none !important;
    508     position: relative !important;
    509508}
    510509
Note: See TracChangeset for help on using the changeset viewer.